CodeWithKyrian/transformers-php
Transformers PHP is a toolkit for PHP developers to add machine learning magic to their projects easily.
Leverages ONNX Runtime via PHP FFI to execute pre-trained transformer models from Hugging Face—supporting tasks like sentiment analysis, translation, and text generation—with an API mirroring the Python library for familiar developer experience. Models are automatically cached locally and can be pre-downloaded via CLI; supports converting PyTorch/TensorFlow models to ONNX using Hugging Face Optimum for custom deployments.
743 stars. No commits in the last 6 months.
Stars
743
Forks
49
Language
PHP
License
Apache-2.0
Category
Last pushed
Sep 15, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/transformers/CodeWithKyrian/transformers-php"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
symfony/ai-platform
PHP library for interacting with AI platform provider.
php-llm/llm-chain
PHP library for building LLM-based and AI-based features and applications.
darkwebdesign/symfony-addon-pack
Symfony Add-on Pack
elapse-annals/laravel-plus
Based on Laravel transformation and expansion, more convenient for practical business use
darkwebdesign/symfony-addon-bundle
Symfony Add-on Bundle