oliverearl/nomiai-php-laravel
Composer 安装命令:
composer require oliverearl/nomiai-php-laravel
包简介
Laravel library for interacting with the Nomi.ai API
README 文档
README
This is a wrapper for the Nomi.ai PHP library for easy integration into Laravel applications. Nomi.ai is a companionship application that uses artificial intelligence.
You will need at least PHP 8.3 with the JSON extension, and Laravel 11 or above.
Installation
You can install the package via composer:
composer require oliverearl/nomiai-php-laravel
You can publish the config file with:
php artisan vendor:publish --tag="nomiai-php-laravel-config"
Usage
To get started, you simply need to add your Nomi.ai API key to your .env. file under NOMIAI_API_KEY. You can also
provide a custom endpoint under NOMIAI_ENDPOINT if you need this functionality.
From here, you can access the Nomi.ai PHP library using its facade. Laravel will automatically use your default HTTP library, however that might be configured.
use \Nomiai\PhpSdk\Laravel\Facades\NomiAI; /** @var array<int, \Nomiai\PhpSdk\Resources\Nomi> $nomis */ $nomis = NomiAI::getNomis(); $conversation = NomiAi::sendMessageToNomi(collect($nomis)->first(), 'Hello Nomi!');
Please check the PHP library documentation for more information on available functionality.
Testing
Tests are run using the Pest testing framework. You can run the suite like so:
composer test
Code Style
Laravel Pint is used to maintain the PER coding style. The linter can be run using:
composer format
There are Pest architecture tests that also attempt to maintain certain conventions, including the use of strict typing where possible.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Your contributions are warmly welcomed! Anything from documentation, to optimisations, and additional tests. Pull requests must pass the existing test suite and conform to the required code style.
For new functionality, adequate tests must be included!
Please see CONTRIBUTING.md for detailed contribution guidelines.
Security
If you discover a security vulnerability, please review our Security Policy for responsible disclosure procedures.
Credits
License
The MIT License (MIT). Please see License File for more information.
oliverearl/nomiai-php-laravel 适用场景与选型建议
oliverearl/nomiai-php-laravel 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 1, 最近一次更新时间为 2024 年 12 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「artificial intelligence」 「nomi ai」 「nomi」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 oliverearl/nomiai-php-laravel 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 oliverearl/nomiai-php-laravel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 oliverearl/nomiai-php-laravel 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
AI Content Translation for Laravel powered by SharpAPI.com
AI SEO Meta Tag Generator for Laravel powered by SharpAPI.com
PHP client for the IPLocate.io geolocation API
A laravel plugin to interact with AI providers
Boxalino Magento 2 plugin
PHP library for interacting with the Nomi.ai API
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-12-02