awesome-php-ml
The most comprehensive curated list of Machine Learning, Artificial Intelligence, NLP, LLM, and Data Science libraries for PHP
https://github.com/apphp/awesome-php-ml
Last synced: about 9 hours ago
JSON representation
-
Resources
-
General
-
ML / AI Platforms
- tensorflow/tfjs
- ONNX Runtime - Cross-platform, high performance ML inferencing and training accelerator
-
Courses & Tutorials
-
Learning Resources
- Artificial Intelligence with PHP (GitBook)
- AI для PHP-разработчиков: интуитивно и на практике (GitBook)
- Build Your Own LLM in PHP (GitBook)
- PHP FANN installation
- PHP and LLMs (eBook)
- PHP-ML Tutorials - Documentation for PHP-ML for machine learning
- Rubix ML Docs - Comprehensive documentation for Rubix ML
-
-
Computer Vision, Image & Video Processing
-
Recommended core stack
- Intervention/image
- jcupitt/vips
- aschmelyun/subvert - Generate subtitles, summaries, and chapters from videos in seconds
- php-opencv/php-opencv
-
-
LLMs & AI APIs
-
Recommended core stack
- orhanerday/open-ai - ai?style=social) Popular OpenAI PHP SDK
- cognesy/instructor-php - output helper for LLM responses
- softcreatr/php-mistral-ai-sdk - tuning etc.)
- llm-agents-php/agents -  LM Agents is a PHP library for building and managing Language Model (LLM) based agents
- elastic/elasticsearch-chatgpt-php
- sarfraznawaz2005/ai-team
- adrienbrault/instructrice - safe handling of structured responses
- kambo-1st/langchain-php - 1st/langchain-php?style=social) A PHP port of the LangChain framework for building composable LLM-powered applications
- google-gemini-php/client - gemini-php/client?style=social) Gemini PHP is a community-maintained PHP API client that allows you to interact with the Gemini AI API
- llm-agents-php/prompt-generator - Prompt generator for LLM agents with interceptors
- skito/aipi-php
- deepseek-php/deepseek-php-client
- utopia-php/agents - provider support (OpenAI, Anthropic, Deepseek, Perplexity, XAI)
- takaaki-mizuno/php-llm-json-adapter
- thojou/php-llm-documents - based document processing (splitting, embeddings, vector store, search) inspired by LangChain/DocTran
- FunkyOz/mulagent - agent orchestration framework for LLM applications
- HosonoDE/EasyAI-PHP - level AI integration library for PHP that simplifies using LLMs
- ArdaGnsrn/ollama-php
- SearchAugmentedLLM - augmented LLM tool that performs web search, extracts, chunks and ranks content to provide context for LLM responses (ideal for RAG applications)
- Clarifai/clarifai-php-grpc
- ModelFlow-AI (GitHub org)
-
Tokenizers & Prompt Utilities
- Gioni06/GPT3Tokenizer - 3 style models
- yethee/tiktoken-php
-
Speech & Text-to-Speech
- b7s/whisper-php - to-text (ASR), enabling audio transcription via Whisper models
- b7s/fluentvox - of-the-art text-to-speech and voice cloning (Resemble AI’s Chatterbox), with CLI, GPU acceleration, and multilingual support
-
-
Tools & Utilities
-
Tokenizers & Prompt Utilities
- symfony/console
- guanguans/ai-commit - powered CLI to automatically generate conventional Git commit messages
- nunomaduro/collision
- symfony/http-client
- psr/log
- apphp/pretty-print - print PHP arrays and numeric data for ML debugging
- joshembling/laragenie
-
-
Natural Language Processing
-
Interop & Model Serving
-
Tokenizers & Prompt Utilities
- googleapis/google-cloud-php - cloud-php?style=social) Official PHP client library for Google Cloud APIs (including ML/AI services like Vision, Translate, AutoML, Vertex AI, etc.)
- grpc/grpc-php
- distantmagic/resonance - in support for serving and integrating machine learning and LLM models
- ankane/onnxruntime-php - php?style=social) Run ONNX models from PHP
- garyblankenship/mcp-php
- neuron-core/neuron-ai - core/neuron-ai?style=social) PHP agentic AI framework for building and orchestrating LLMs, RAG etc
- nlpcloud/nlpcloud-php
- FFI
- HossamBalaha/Deep-Learning-Classification-System-using-PHP-and-Keras
-
-
Embeddings & Vector Search
-
Tokenizers & Prompt Utilities
- pgvector/pgvector
- algolia/algoliasearch-client-php - client-php?style=social) Algolia search client
- meilisearch/meilisearch-php - php?style=social) Client for Meilisearch search engine
- llm-agents-php/vector-storage
- pgvector/pgvector-php - php?style=social) PHP client for pgvector on PostgreSQL
- voyanara/milvus-php-sdk
- redis-applied-ai/redis-vector-php - oriented queries
-
-
Laravel & Framework Integrations
-
Search & vector search
- teamtnt/laravel-scout-tntsearch-driver - text search
- laravel/scout
-
LLM & AI clients
- openai-php/laravel - php/laravel?style=social) Laravel OpenAI integration
- moe-mizrak/laravel-openrouter
- artisan-build/llm
- grok-php/laravel
- rahasistiyakofficial/laravel-ai-integration - ready package that provides seamless integration with multiple AI providers through a unified, elegant API
- neuron-core/neuron-laravel - core/neuron-laravel?style=social) Laravel integration for Neuron Core to build and orchestrate AI/LLM workflows
- shawnveltman/laravel-openai
- Capevace/llm-magic - centric LLM toolkit with support for AI features like chat and structured data extraction
- coding-wisely/taskallama - powered content generation, task assistance, conversation and embeddings
- BorahLabs/LLM-Port-Laravel - in replacements of large language models
- PapaRascal2020/sidekick
- atlas-php/atlas
-
Data & DTO tools
-
-
How to use this list
-
Example "recipes"
- openai-php/client - php](https://github.com/meilisearch/meilisearch-php), and orchestrate agents/RAG flows with 🌟 [neuron-core/neuron-ai](https://github.com/neuron-core/neuron-ai), integrating into Laravel using 🌟 [openai-php/laravel](https://github.com/openai-php/laravel) and the packages under [Laravel & Framework Integrations](#laravel--framework-integrations).
- deepl-php - cloud-php](https://github.com/googleapis/google-cloud-php) under [Interop & Model Serving](#interop--model-serving). For image/vision workloads, combine [Computer Vision, Image & Video Processing](#computer-vision-image--video-processing) libraries with cloud AI services via 🌟 [symfony/ai](https://github.com/symfony/ai) or [openai-php/client](https://github.com/openai-php/client) from [LLMs & AI APIs](#llms--ai-apis).
-
Recommended core stack
- flow-php/flow - style pipelines.
- LLPhant/LLPhant - php](https://github.com/pgvector/pgvector-php), 🌟 [meilisearch/meilisearch-php](https://github.com/meilisearch/meilisearch-php) or 🌟 [algolia/algoliasearch-client-php](https://github.com/algolia/algoliasearch-client-php).
- swoole/phpy
- RubixML/RubixML - to-end ML pipelines.
-
- php-ai/php-ml
- php-rag - php).
-
-
Symfony & Framework Integrations
-
Search & vector search
- openai-php/symfony
- symfony/ai - in AI components and bundles for Symfony apps
- symfony/ai-store
-
-
Data Processing
-
Tokenizers & Prompt Utilities
- league/csv
- spatie/data-transfer-object
- cocur/slugify - friendly slugs, includes integrations for many frameworks
- symfony/serializer
- php-ds/ext-ds - ds/ext-ds?style=social) PHP Data Structures extension: efficient vectors, maps, sets, etc.
-
-
Math, Statistics & Linear Algebra
-
Recommended core stack
- brick/math - precision arithmetic for PHP (BigInteger, BigDecimal, BigRational)
- markrogoyski/math-php
- rindow/rindow-math-matrix
- mcordingley/LinearAlgebra - alone linear algebra library
- NumPHP/NumPHP
- RubixML/numpower - performance numerical computing library inspired by NumPy
- RubixML/Tensor - dimensional tensors for numerical computing
-
-
Machine Learning
-
Recommended core stack
-
Programming Languages
Categories
LLMs & AI APIs
25
Laravel & Framework Integrations
17
Resources
11
Natural Language Processing
9
Interop & Model Serving
9
How to use this list
8
Tools & Utilities
7
Math, Statistics & Linear Algebra
7
Embeddings & Vector Search
7
Data Processing
5
Machine Learning
4
Computer Vision, Image & Video Processing
4
Symfony & Framework Integrations
3
Sub Categories
Keywords
php
35
ai
12
laravel
12
openai
10
llm
8
symfony
8
client
4
api
4
language
4
machine-learning
4
gpt
3
api-client
3
php8
3
meilisearch
3
component
3
symfony-component
3
nlp
3
gpt-3
3
laravel-package
3
sdk
3
anthropic
3
agent
2
genai
2
pinecone
2
embeddings
2
artificial-intelligence
2
open-ai
2
llama
2
vector-database
2
chatgpt
2
translation
2
search
2
llms
2
algolia
2
ollama
2
gemini
2
transformers
2
framework
2
openai-api
2
ml
2
huggingface
2
cli
2
php-library
2
console
2
mathematics
2
natural-language-processing
2
agents
2
agentic-ai
2
collision
1
bcmath
1