1tomany / php-ai
A single, unified, framework-independent library for integration with many popular AI platforms and large language models
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/1tomany/php-ai
Requires
- php: >=8.4
- ext-fileinfo: *
- fakerphp/faker: ^1.24
- phpdocumentor/reflection-docblock: ^5.6
- psr/container: ^2.0
- symfony/http-client: ^7.2|^8.0
- symfony/property-access: ^7.0|^8.0
- symfony/serializer: ^7.2|^8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.93
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^12.5
README
This library provides a single, unified, framework-independent library for integration with many popular AI platforms and large language models.
Supported platforms
- Gemini
- Mock
- OpenAI
Platform feature support
| Feature | Gemini | Mock | OpenAI |
|---|---|---|---|
| Caching files | ✅ | ✅ | ✅ |
| Compiling prompts | ✅ | ✅ | ✅ |
| Sending prompts | ✅ | ✅ | ❌ |
Credits
License
The MIT License