symfony/ai-transformers-php-platform
Symfony AI bridge for TransformersPHP, enabling local transformer models within Symfony apps. Connect TransformersPHP pipelines for embeddings and inference through a platform adapter, with links to docs and the main Symfony AI repo for issues and contributions.
laravel-ai) does not natively support Symfony AI, necessitating a custom integration layer or wrapper.AppServiceProvider).transformers library, adding runtime dependencies (Docker recommended for isolation).transformers library introduces supply-chain risks (e.g., PyPI vulnerabilities).ollama-php, voyage-ai)?symfony/ai-platform) serves as the abstraction layer, while TransformersPHP provides the runtime. Laravel can integrate via:
App\Providers\AIServiceProvider).AI::generateEmbedding()) to abstract Symfony AI’s complexity.Laravel App → [Symfony AI Bridge] → [TransformersPHP] → [Python Transformers]
laravel-transformers to encapsulate both Symfony AI and TransformersPHP (recommended for long-term maintainability).distilbert, tiny-bert) that fit within CPU/memory constraints.AI::embed(), AI::generate()) to simplify usage.config/ai.php) for model paths, fallbacks, and runtime options (CPU/GPU).docker-compose with Python + PHP services).distilbert, mobilebert). GPU required for larger models.bert-base-uncased).transformers library and Python runtime to patch vulnerabilities.How can I help you explore Laravel packages today?