tourze / open-ai-api-bundle
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:symfony-bundle
pkg:composer/tourze/open-ai-api-bundle
Requires
- doctrine/dbal: ^4.0
- doctrine/doctrine-bundle: ^2.13
- doctrine/orm: ^3.0
- doctrine/persistence: ^4.1
- easycorp/easyadmin-bundle: ^4
- knplabs/knp-menu: ^3.7
- psr/log: ^3|^2|^1
- symfony/config: ^7.3
- symfony/dependency-injection: ^7.3
- symfony/doctrine-bridge: ^7.3
- symfony/event-dispatcher: ^7.3
- symfony/framework-bundle: ^7.3
- symfony/http-foundation: ^7.3
- symfony/http-kernel: ^7.3
- symfony/property-access: ^7.3
- symfony/security-core: ^7.3
- symfony/twig-bundle: ^7.3
- symfony/validator: ^7.3
- symfony/yaml: ^7.3
- tourze/bundle-dependency: 1.*
- tourze/easy-admin-enum-field-bundle: 1.0.*
- tourze/easy-admin-menu-bundle: 1.0.*
- tourze/enum-extra: 1.0.*
Requires (Dev)
- doctrine/data-fixtures: ^2.0
- doctrine/doctrine-fixtures-bundle: ^4.0
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^11.5
- tourze/phpunit-doctrine-entity: 1.*
- tourze/phpunit-enum: 1.*
- tourze/phpunit-symfony-kernel-test: 1.0.*
- tourze/phpunit-symfony-unit-test: 1.*
- tourze/phpunit-symfony-web-test: 1.*
- tourze/symfony-dependency-service-loader: 1.0.*
This package is auto-updated.
Last update: 2025-11-11 16:46:53 UTC
README
Introduction
OpenAI API Bundle is a Symfony Bundle that provides OpenAI API integration support for Symfony applications. This bundle offers convenient service configuration and dependency injection, making it easy to use OpenAI's various AI services in your Symfony projects.
Installation
Install via Composer:
composer require tourze/open-ai-api-bundle
Configuration
Register the bundle in your Symfony application:
// config/bundles.php return [ // ... Tourze\OpenAiApiBundle\OpenAiApiBundle::class => ['all' => true], ];
Features
- =€ Simplified OpenAI API integration
- =' Automated service configuration
- =‰ Dependency injection support
- =Ý Complete API documentation reference
API Documentation Reference
This bundle includes comprehensive OpenAI API reference documentation covering the following modules:
Core Features
- Chat - Chat completions API
- Completions - Text completion API
- Embeddings - Text embeddings API
- Images - Image generation and editing API
- Audio - Speech synthesis, transcription, and translation API
- Moderations - Content moderation API
Advanced Features
- Assistants - AI assistant management
- Fine-tuning - Model fine-tuning
- Batch - Batch operations
- Files - File management
- Vector Stores - Vector store management
- Realtime - Realtime sessions API
Management Features
- Projects - Project management
- Users - User management
- API Keys - API key management
- Rate Limits - Rate limit configuration
- Audit Logs - Audit logging
Requirements
- PHP 8.1 or higher
- Symfony 7.3 or higher
Development
Running Tests
# Run unit tests ./vendor/bin/phpunit packages/open-ai-api-bundle/tests # Run PHPStan static analysis ./vendor/bin/phpstan analyse packages/open-ai-api-bundle
Quality Standards
- PHPStan Level 8
- PHPUnit test coverage
License
MIT License - See LICENSE file for details