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 14 hours ago
JSON representation
-
Resources
-
General
-
ML / AI Platforms
- tensorflow/tfjs
- ONNX Runtime - Cross-platform, high performance ML inferencing and training accelerator
- ONNX Runtime - platform, high performance ML inferencing and training accelerator
- tensorflow/tfjs
-
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
- Artificial Intelligence with PHP (GitBook)
- AI for PHP Developers: Intuitive and Practical (GitBook)
- Build Your Own LLM in PHP (GitBook)
- PHP FANN installation
- PHP and LLMs (eBook)
- PHP-ML Tutorials - ML for machine learning
- Rubix ML Docs
-
-
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
- aschmelyun/subvert - Generate subtitles, summaries, and chapters from videos in seconds
- Intervention/image
- jcupitt/vips
- 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)
- adrienbrault/instructrice - safe handling of structured responses
- ArdaGnsrn/ollama-php
- Clarifai/clarifai-php-grpc
- cognesy/instructor-php - output helper for LLM responses
- deepseek-php/deepseek-php-client
- elastic/elasticsearch-chatgpt-php
- FunkyOz/mulagent - agent orchestration framework for LLM 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
- HosonoDE/EasyAI-PHP - level AI integration library for PHP that simplifies using LLMs
- kambo-1st/langchain-php - 1st/langchain-php?style=social) A PHP port of the LangChain framework for building composable LLM-powered applications
- llm-agents-php/agents - agents-php/agents?style=social) LM Agents is a PHP library for building and managing Language Model (LLM) based agents
- llm-agents-php/prompt-generator
- ModelFlow-AI (GitHub org)
- mzarnecki/php-rag - augmented workflows
- openai-php/client - php/client?style=social) Official OpenAI PHP client
- orhanerday/open-ai - ai?style=social) Popular OpenAI PHP SDK
- prism-php/prism
- prism-php/bedrock
- sarfraznawaz2005/ai-team
- SearchAugmentedLLM - augmented LLM tool that performs web search, extracts, chunks and ranks content to provide context for LLM responses (ideal for RAG applications)
- skito/aipi-php
- softcreatr/php-mistral-ai-sdk - tuning etc.)
- takaaki-mizuno/php-llm-json-adapter
- thojou/php-llm-documents - based document processing (splitting, embeddings, vector store, search) inspired by LangChain/DocTran
- utopia-php/agents - provider support (OpenAI, Anthropic, Deepseek, Perplexity, XAI)
-
Tokenizers & Prompt Utilities
- Gioni06/GPT3Tokenizer - 3 style models
- yethee/tiktoken-php
- 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
- b7s/fluentvox - of-the-art text-to-speech and voice cloning (Resemble AI’s Chatterbox), with CLI, GPU acceleration, and multilingual support
- b7s/whisper-php - to-text (ASR), enabling audio transcription via Whisper models
-
-
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
- apphp/pretty-print - print PHP arrays and numeric data for ML debugging
- guanguans/ai-commit - powered CLI to automatically generate conventional Git commit messages
- joshembling/laragenie
- nunomaduro/collision
- psr/log
- swoole/phpy
- symfony/console
- symfony/http-client
-
-
Natural Language Processing
-
Recommended core stack
- patrickschur/language-detection
- angeloskath/php-nlp-tools
- voku/stop-words
- davmixcool/php-sentiment-analyzer
- googlei18n/myanmar-tools
- CodeWithKyrian/transformers-php
- friteuseb/nlp_tools
- RubixML/Sentiment
- yooper/php-text-analysis
- angeloskath/php-nlp-tools
- davmixcool/php-sentiment-analyzer
- friteuseb/nlp_tools
- googlei18n/myanmar-tools
- patrickschur/language-detection
- RubixML/Sentiment
- voku/stop-words
- yooper/php-text-analysis
-
-
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
- ankane/onnxruntime-php - php?style=social) Run ONNX models from PHP
- deepl-php - php?style=social) Official PHP client library for the DeepL API, enabling high-quality language translation via DeepL’s AI/ML service
- distantmagic/resonance - in support for serving and integrating machine learning and LLM models
- FFI
- garyblankenship/mcp-php
- 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
- HossamBalaha/Deep-Learning-Classification-System-using-PHP-and-Keras
- neuron-core/neuron-ai - core/neuron-ai?style=social) PHP agentic AI framework for building and orchestrating LLMs, RAG etc
- nlpcloud/nlpcloud-php
-
-
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
- algolia/algoliasearch-client-php - client-php?style=social) Algolia search client
- llm-agents-php/vector-storage
- LLPhant/LLPhant
- meilisearch/meilisearch-php - php?style=social) Client for Meilisearch search engine
- pgvector/pgvector
- pgvector/pgvector-php - php?style=social) PHP client for pgvector on PostgreSQL
- redis-applied-ai/redis-vector-php - oriented queries
- voyanara/milvus-php-sdk
-
-
Laravel & Framework Integrations
-
Search & vector search
- teamtnt/laravel-scout-tntsearch-driver - text search
- laravel/scout
- laravel/scout
- teamtnt/laravel-scout-tntsearch-driver - text search
-
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
- artisan-build/llm
- BorahLabs/LLM-Port-Laravel - in replacements of large language models
- 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
- grok-php/laravel
- laravel/ai
- laravel/boost - assisted code generation by giving AI tools detailed insight into your Laravel app (MCP server, schema inspection, docs + guidelines)
- maestroerror/laragent - style API
- moe-mizrak/laravel-openrouter
- neuron-core/neuron-laravel - core/neuron-laravel?style=social) Laravel integration for Neuron Core to build and orchestrate AI/LLM workflows
- atlas-php/atlas
- openai-php/laravel - php/laravel?style=social) Laravel OpenAI integration
- PapaRascal2020/sidekick
- shawnveltman/laravel-openai
- rahasistiyakofficial/laravel-ai-integration - ready package that provides seamless integration with multiple AI providers through a unified, elegant API
-
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
- openai-php/symfony
- soleinjast/symfony-markdown-response-bundle
- 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.
- cocur/slugify - friendly slugs, includes integrations for many frameworks
- flow-php/flow - php/flow?style=social) Data processing and ETL framework for PHP with typed pipelines
- league/csv
- php-ds/ext-ds - ds/ext-ds?style=social) PHP Data Structures extension: efficient vectors, maps, sets, etc.
- spatie/data-transfer-object
- symfony/serializer
-
-
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
- brick/math - precision arithmetic for PHP (BigInteger, BigDecimal, BigRational)
- Hi-Folks/statistics - Folks/statistics?style=social) Probability distributions and statistical functions library for PHP
- markrogoyski/math-php
- mcordingley/LinearAlgebra - alone linear algebra library
- NumPHP/NumPHP
- rindow/rindow-math-matrix
- RubixML/numpower - performance numerical computing library inspired by NumPy
- RubixML/Tensor - dimensional tensors for numerical computing
-
-
Machine Learning
-
Recommended core stack
- kyriansfriends/transformers
- danielefavi/brainy
- dr-que/polynomial-regression
- php-ai/php-ml-examples - ML
- danielefavi/brainy
- dr-que/polynomial-regression
- CodeWithKyrian/transformers-php - php?style=social) A PHP toolkit for running Hugging Face–style Transformer models with ONNX Runtime (text generation, summarization, classification, etc.)
- php-ai/php-ml
- php-ai/php-ml-examples - ML
-
-
Deep Learning & Neural Networks
-
Recommended core stack
- RubixML/RubixML - level ML framework with pipelines and datasets
-
Programming Languages
Categories
LLMs & AI APIs
54
Laravel & Framework Integrations
36
Resources
23
Interop & Model Serving
19
Natural Language Processing
17
Tools & Utilities
15
Math, Statistics & Linear Algebra
15
Embeddings & Vector Search
15
Data Processing
11
Machine Learning
9
Computer Vision, Image & Video Processing
8
How to use this list
8
Symfony & Framework Integrations
6
Deep Learning & Neural Networks
1
Sub Categories
Keywords
php
41
ai
13
laravel
12
openai
10
llm
8
symfony
8
machine-learning
6
nlp
4
matrix
4
language
4
php8
4
client
4
api
4
natural-language-processing
3
vector
3
symfony-component
3
component
3
sdk
3
math
3
linear-algebra
3
anthropic
3
gpt
3
meilisearch
3
php-library
3
api-client
3
gpt-3
3
laravel-package
3
pinecone
2
agent
2
embeddings
2
genai
2
translation
2
deep-learning
2
transformers
2
artificial-intelligence
2
sentiment-analysis
2
vector-database
2
llama
2
ml
2
huggingface
2
neural-network
2
agentic-ai
2
agents
2
openai-api
2
open-ai
2
gemini
2
ollama
2
statistics
2
tensor
2
search
2