Loading repository data…
Loading repository data…
apphp / repository
The most comprehensive curated list of Machine Learning, Artificial Intelligence, NLP, LLM, and Data Science libraries for PHP
The most comprehensive curated list of Machine Learning, Artificial Intelligence, NLP, LLM and Data Science libraries for PHP.
Inspired by awesome-php and the broader Awesome ecosystem.
Goal: make it easy to build intelligent systems with PHP — from classic ML to modern LLM-based workflows.
Want to add a project? See the Contributing section below for inclusion criteria and submission guidance.
PHP Version Requirements:
Common dependencies:
mbstring, curl, json, gd (for image processing)redis, pdo_pgsql (for vector search), ffi (for native bindings)Memory considerations:
For beginners new to PHP ML/AI:
# Install a core ML library
composer require rubix/ml
composer require php-ai/phpml
# Install LLM client
composer require openai-php/client
# Install vector search for RAG
composer require llphant/llphant
Basic examples:
RubixML/RubixML with KNearestNeighbors for simple classification tasksopenai-php/client to call GPT models from PHPphp-ai/php-ml for sentiment analysis and tokenizationLLPhant/LLPhant with pgvector for semantic searchI want to build a Laravel RAG app
Use an LLM client like 🌟 openai-php/client, embeddings + vector search via 🌟 LLPhant/LLPhant with 🌟 pgvector/pgvector or 🌟 meilisearch/meilisearch-php, and orchestrate agents/RAG flows with 🌟 neuron-core/neuron-ai, integrating into Laravel using 🌟 openai-php/laravel and the packages under Laravel & Framework Integrations.
I only need translation or vision
For translation, see 🌟 deepl-php and 🌟 googleapis/google-cloud-php under Interop & Model Serving. For image/vision workloads, combine Computer Vision, Image & Video Processing libraries with cloud AI services via 🌟 symfony/ai or openai-php/client from LLMs & AI APIs.
These are opinionated defaults you can reach for when you just want something that works in production.
Not all projects are tagged yet – we're gradually adding markers as the ecosystem evolves. Treat them as rough guidance, not strict rules.
🌟 – widely used / production-ready projects🧪 – experimental or research-oriented projects⚠️ – projects with limited maintenance, older APIs, or niche usage; review before using in new projectsCore PHP libraries for supervised/unsupervised learning, classification, regression, and clustering.
PHP libraries for neural networks, deep learning architectures, and advanced learners built on tensors.
Text processing, tokenization, language detection, sentiment analysis and other NLP tasks in PHP.
Image manipulation, preprocessing, and computer vision workloads from PHP.