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: 4 days ago
JSON representation
-
Computer Vision, Image & Video Processing
-
Recommended core stack
- aschmelyun/subvert - Generate subtitles, summaries, and chapters from videos in seconds
- Intervention/image
- jcupitt/vips
- php-opencv/php-opencv
- aschmelyun/subvert - Generate subtitles, summaries, and chapters from videos in seconds
- Intervention/image
- jcupitt/vips
- php-opencv/php-opencv
- mailmug/php-dlib
-
-
Core ML Infrastructure
-
Ecosystems
- phpmlkit (GitHub org) - performance ML infrastructure libraries for PHP, including NDArray (NumPy-like arrays) and ONNX Runtime bindings
-
Model execution & runtimes
- phpmlkit/onnxruntime - performance ONNX Runtime bindings for PHP using FFI, enabling inference of models from PyTorch, TensorFlow, scikit-learn and other frameworks
- phpmlkit/onnxruntime-gpu - accelerated ONNX Runtime bindings for PHP using CUDA, enabling high-performance inference of models from PyTorch, TensorFlow, and other frameworks
-
-
Data Processing
-
Tokenizers & Prompt Utilities
- cocur/slugify - friendly slugs, includes integrations for many frameworks
- 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
- 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
-
-
Deep Learning & Neural Networks
-
Recommended core stack
- RubixML/RubixML - level ML framework with pipelines and datasets
- rindow/rindow-neuralnetworks
-
-
Embeddings & Vector Search
-
Tokenizers & Prompt Utilities
- algolia/algoliasearch-client-php - client-php?style=social) Algolia search client
- llm-agents-php/vector-storage
- 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
- 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
- CodeWithKyrian/chromadb-php
- hkulekci/qdrant-php
- probots-io/pinecone-php
-
-
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
- RubixML/RubixML - to-end ML 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).
- flow-php/flow - style pipelines.
- swoole/phpy
-
- php-ai/php-ml
- php-rag - php).
-
-
Interop & Model Serving
-
Tokenizers & Prompt Utilities
- ankane/onnxruntime-php - php?style=social) Run ONNX models from PHP
- 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
- 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
- logiscape/mcp-sdk-php
-
-
Laravel & Framework Integrations
-
Data & DTO tools
-
LLM & AI clients
- 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
- 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
- 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
- mozex/anthropic-laravel
- php-mcp/laravel - mcp/laravel?style=social) – Laravel package for building Model Context Protocol (MCP) servers and exposing application tools to LLMs
- jayeshmepani/laravel-gemini-translator
- opgginc/laravel-mcp-server - time communication between LLM agents and application tools
- vizra-ai/vizra-adk - powered multi-model support
-
Localization & Translation
-
MCP / Tooling
- RedberryProducts/mcp-client-laravel - native MCP client for connecting to Model Context Protocol servers via HTTP or STDIO, retrieving tools and resources, and integrating external agent capabilities into Laravel apps
-
Monitoring / Cost Control
- subhashladumor1/laravel-ai-guard - user or per-tenant budgets, and preventing unexpected AI billing spikes
-
Prompt Management
- prismaticoder/laravel-prompt-manager - powered applications
- SabatinoMasala/laravel-llm-prompt
-
Search & vector search
- laravel/scout
- teamtnt/laravel-scout-tntsearch-driver - text search
- laravel/scout
- teamtnt/laravel-scout-tntsearch-driver - text search
-
-
LLMs & AI APIs
-
Agents & Tooling / MCP
-
Ecosystems
- aiaccess/ai-access
- dtyq/magic - source enterprise AI agent platform with generalist agents, workflow orchestration, IM integration, collaborative office features, and support for multiple LLMs
-
Recommended core stack
- 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 -  LM Agents is a PHP library for building and managing Language Model (LLM) based agents
- llm-agents-php/prompt-generator - Prompt generator for LLM agents with interceptors
- ModelFlow-AI (GitHub org)
- orhanerday/open-ai - ai?style=social) Popular OpenAI PHP SDK
- 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)
- 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)
- carmelosantana/php-agents - model support
- mozex/anthropic-php - maintained PHP API client for the Anthropic (Claude) AI API, supporting messages, streaming, tool use, and batch processing
-
Speech & Text-to-Speech
- 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
- 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
-
Tokenizers & Prompt Utilities
- Gioni06/GPT3Tokenizer - 3 style models
- yethee/tiktoken-php
- Gioni06/GPT3Tokenizer - 3 style models
- yethee/tiktoken-php
- CodeWithKyrian/tokenizers-php
- HelgeSverre/toon-php
-
-
Machine Learning
-
Recommended core stack
- danielefavi/brainy
- dr-que/polynomial-regression
- kyriansfriends/transformers
- 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
- pecl/svm
- sphamster/bayes
-
-
Math, Statistics & Linear Algebra
-
Recommended core stack
- brick/math - precision arithmetic for PHP (BigInteger, BigDecimal, BigRational)
- 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
- brick/math - precision arithmetic for PHP (BigInteger, BigDecimal, BigRational)
- Hi-Folks/statistics - Folks/statistics?style=social) Probability distributions and statistical functions library for PHP
-
Programming Languages
Categories
LLMs & AI APIs
63
Laravel & Framework Integrations
46
Resources
24
Interop & Model Serving
20
Embeddings & Vector Search
18
Tools & Utilities
17
Natural Language Processing
17
Math, Statistics & Linear Algebra
16
Data Processing
11
Machine Learning
11
Symfony & Framework Integrations
10
Computer Vision, Image & Video Processing
9
How to use this list
8
Core ML Infrastructure
3
Deep Learning & Neural Networks
2
Support this project
1
WordPress Integrations
1
Sub Categories
Recommended core stack
107
Tokenizers & Prompt Utilities
72
LLM & AI clients
32
Learning Resources
15
Search & vector search
15
Data & DTO tools
5
Speech & Text-to-Speech
4
ML / AI Platforms
4
Agents & Tooling / MCP
3
General
3
Ecosystems
3
Courses & Tutorials
3
Example "recipes"
2
Model execution & runtimes
2
Prompt Management
2
Monitoring / Cost Control
1
Localization & Translation
1
MCP / Tooling
1
Keywords
php
41
ai
14
laravel
12
openai
10
symfony
8
llm
8
machine-learning
6
client
4
api
4
matrix
4
php8
4
language
4
nlp
4
linear-algebra
3
component
3
symfony-component
3
meilisearch
3
anthropic
3
math
3
vector
3
natural-language-processing
3
gpt-3
3
api-client
3
gpt
3
agents
3
php-library
3
laravel-package
3
sdk
3
chatgpt
2
llms
2
huggingface
2
neural-network
2
mathematics
2
pinecone
2
agent
2
embeddings
2
deep-learning
2
ml
2
artificial-intelligence
2
genai
2
llama
2
sentiment-analysis
2
algolia
2
agentic-ai
2
tensor
2
openai-api
2
vector-database
2
cli
2
translation
2
console
2