PHPackages                             apphp/awesome-php-ml - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. apphp/awesome-php-ml

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

apphp/awesome-php-ml
====================

Awesome list of Machine Learning, Artificial Intelligence, NLP, LLM and Data Science libraries for PHP.

0.5.0(1mo ago)9326MITPHP &gt;=7.4CI passing

Since Jan 12Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/apphp/awesome-php-ml)[ Packagist](https://packagist.org/packages/apphp/awesome-php-ml)[ Docs](https://github.com/apphp/awesome-php-ml)[ RSS](/packages/apphp-awesome-php-ml/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)DependenciesVersions (7)Used By (0)

Awesome PHP Machine Learning &amp; AI
=====================================

[](#awesome-php-machine-learning--ai)

[![Awesome](https://camo.githubusercontent.com/9d49598b873146ec650fb3f275e8a532c765dabb1f61d5afa25be41e79891aa7/68747470733a2f2f617765736f6d652e72652f62616467652e737667)](https://awesome.re)[![GitHub stars](https://camo.githubusercontent.com/9e7d870710abb72f22aec3de0d55b32500b4edbfedb14d94cd6d6e86d51a7aa4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f61707068702f617765736f6d652d7068702d6d6c3f7374796c653d736f6369616c)](https://github.com/apphp/awesome-php-ml)[![Resources](https://camo.githubusercontent.com/153e13e51093d3a872b3436f141c521ebf6a4d806cd02062e31ba7a04b7e2c94/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f61707068702f617765736f6d652d7068702d6d6c2f6d61696e2f62616467652f7265736f75726365732e6a736f6e)](https://github.com/apphp/awesome-php-ml#readme)[![Last commit](https://camo.githubusercontent.com/bd64c6b155c6b5291d6fbc34d644820469e0f9f4d6b8075d191435beb9f92042/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f61707068702f617765736f6d652d7068702d6d6c)](https://github.com/apphp/awesome-php-ml/commits)[![License](https://camo.githubusercontent.com/4f8fcb4d9169b127d036e4ca44b351d4d92a8135fc17599b3dfe7f4bfa39fb47/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f61707068702f617765736f6d652d7068702d6d6c)](https://github.com/apphp/awesome-php-ml/blob/main/LICENSE)[![Link Check](https://github.com/apphp/awesome-php-ml/actions/workflows/link-check.yml/badge.svg)](https://github.com/apphp/awesome-php-ml/actions/workflows/link-check.yml)

The most comprehensive curated list of **Machine Learning, Artificial Intelligence, NLP, LLM and Data Science libraries for PHP**.

Inspired by [awesome-php](https://github.com/ziadoz/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.

Contents
--------

[](#contents)

- [Contents](#contents)
- [Requirements](#requirements)
- [What is this?](#what-is-this)
- [How to use this list](#how-to-use-this-list)
- [Quick Start](#quick-start)
- [Example "recipes"](#example-recipes)
- [Recommended core stack](#recommended-core-stack)
- [Legend](#legend)
- [Machine Learning](#machine-learning)
- [Deep Learning &amp; Neural Networks](#deep-learning--neural-networks)
- [Natural Language Processing](#natural-language-processing)
- [Computer Vision, Image &amp; Video Processing](#computer-vision-image--video-processing)
- [Math, Statistics &amp; Linear Algebra](#math-statistics--linear-algebra)
- [LLMs &amp; AI APIs](#llms--ai-apis)
- [Embeddings &amp; Vector Search](#embeddings--vector-search)
- [Data Processing](#data-processing)
- [Interop &amp; Model Serving](#interop--model-serving)
- [Tools &amp; Utilities](#tools--utilities)
- [Laravel &amp; Framework Integrations](#laravel--framework-integrations)
- [Symfony &amp; Framework Integrations](#symfony--framework-integrations)
- [Resources](#resources)

---

Requirements
------------

[](#requirements)

**PHP Version Requirements:**

- **Minimum**: PHP 7.4+ (most libraries)
- **Recommended**: PHP 8.1+ for best performance and features
- **Latest features**: PHP 8.2+ for some cutting-edge libraries

**Common dependencies:**

- **Extensions**: `mbstring`, `curl`, `json`, `gd` (for image processing)
- **Optional**: `redis`, `pdo_pgsql` (for vector search), `ffi` (for native bindings)

**Memory considerations:**

- **Basic ML**: 256MB+ RAM
- **Neural networks**: 512MB+ RAM
- **Large datasets**: 1GB+ RAM recommended

---

What is this?
-------------

[](#what-is-this)

- Curated list of **PHP libraries and tools** for Machine Learning, AI, NLP, LLMs and Data Science.
- Focused on **code-first resources**: packages, SDKs, frameworks, and building blocks.
- Aimed at **PHP developers** who want to add intelligent features to existing apps or build new AI-powered systems.

How to use this list
--------------------

[](#how-to-use-this-list)

- **Classic ML / traditional models** – start with [php-ai/php-ml](https://gitlab.com/php-ai/php-ml) and [RubixML/RubixML](https://github.com/RubixML/RubixML).
- **LLM-powered apps &amp; agents** – see [LLMs &amp; AI APIs](#llms--ai-apis), [Embeddings &amp; Vector Search](#embeddings--vector-search), and framework integrations (Laravel/Symfony).
- **RAG (Retrieval-Augmented Generation)** – combine [php-rag](https://github.com/mzarnecki/php-rag) with vector databases like [pgvector](https://github.com/pgvector/pgvector) or [Meilisearch](https://github.com/meilisearch/meilisearch-php).
- **Numerical computing &amp; math** – explore [Math, Statistics &amp; Linear Algebra](#math-statistics--linear-algebra) for tensors, matrices, and statistics.
- **Production integration** – use [Interop &amp; Model Serving](#interop--model-serving) and framework integrations to wire models into real apps.

### Quick Start

[](#quick-start)

**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:**

- **Classification**: Use `RubixML/RubixML` with `KNearestNeighbors` for simple classification tasks
- **LLM integration**: Use `openai-php/client` to call GPT models from PHP
- **Text analysis**: Use `php-ai/php-ml` for sentiment analysis and tokenization
- **Vector search**: Use `LLPhant/LLPhant` with `pgvector` for semantic search

### Example "recipes"

[](#example-recipes)

- **I want to build a Laravel RAG app**
    Use an LLM client like 🌟 [openai-php/client](https://github.com/openai-php/client), embeddings + vector search via 🌟 [LLPhant/LLPhant](https://github.com/LLPhant/LLPhant) with 🌟 [pgvector/pgvector](https://github.com/pgvector/pgvector) or 🌟 [meilisearch/meilisearch-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 &amp; Framework Integrations](#laravel--framework-integrations).
- **I only need translation or vision**
    For translation, see 🌟 [deepl-php](https://github.com/DeepLcom/deepl-php) and 🌟 [googleapis/google-cloud-php](https://github.com/googleapis/google-cloud-php) under [Interop &amp; Model Serving](#interop--model-serving). For image/vision workloads, combine [Computer Vision, Image &amp; 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 &amp; AI APIs](#llms--ai-apis).

### Recommended core stack

[](#recommended-core-stack)

These are opinionated defaults you can reach for when you just want something that works in production.

- **General ML:** 🌟 [RubixML/RubixML](https://github.com/RubixML/RubixML) for end-to-end ML pipelines.
- **LLM clients:** 🌟 [openai-php/client](https://github.com/openai-php/client) and 🌟 [google-gemini-php/client](https://github.com/google-gemini-php/client) for major model providers.
- **Embeddings &amp; vector search:** 🌟 [LLPhant/LLPhant](https://github.com/LLPhant/LLPhant) with 🌟 [pgvector/pgvector](https://github.com/pgvector/pgvector), 🌟 [pgvector/pgvector-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).
- **Data processing:** 🌟 [flow-php/flow](https://github.com/flow-php/flow) for typed ETL-style pipelines.
- **Interop with Python ML:** 🌟 [swoole/phpy](https://github.com/swoole/phpy) to call into the Python ecosystem when needed.

Legend
------

[](#legend)

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 projects

---

Machine Learning
----------------

[](#machine-learning)

*Core PHP libraries for supervised/unsupervised learning, classification, regression, and clustering.*

- ⚠️ [danielefavi/brainy](https://github.com/danielefavi/brainy "Link to resource") – Simple PHP class for neural networks and machine learning
- [dr-que/polynomial-regression](https://github.com/jbboehr/PolynomialRegression.php "Link to resource") – Polynomial regression for PHP
- ⚠️ [pecl/svm](https://pecl.php.net/package/svm/0.2.3 "Link to resource") – PHP extension providing bindings to the LIBSVM library for Support Vector Machine classification and regression
- 🌟 [CodeWithKyrian/transformers-php](https://github.com/CodeWithKyrian/transformers-php "Link to resource") — [![GitHub stars](https://camo.githubusercontent.com/9127b113abdb16f3643bc9b9f22699ac8b7fa0d13e59d03be4e4288626ade77f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f436f6465576974684b797269616e2f7472616e73666f726d6572732d7068703f7374796c653d736f6369616c)](https://camo.githubusercontent.com/9127b113abdb16f3643bc9b9f22699ac8b7fa0d13e59d03be4e4288626ade77f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f436f6465576974684b797269616e2f7472616e73666f726d6572732d7068703f7374796c653d736f6369616c) A PHP toolkit for running Hugging Face–style Transformer models with ONNX Runtime (text generation, summarization, classification, etc.)
- 🌟 [php-ai/php-ml](https://gitlab.com/php-ai/php-ml "Link to resource") – Core machine learning algorithms for PHP
- [php-ai/php-ml-examples](https://github.com/php-ai/php-ml-examples "Link to resource") – Practical examples for PHP-ML

---

Deep Learning &amp; Neural Networks
-----------------------------------

[](#deep-learning--neural-networks)

*PHP libraries for neural networks, deep learning architectures, and advanced learners built on tensors.*

- 🧪 [rindow/rindow-neuralnetworks](https://github.com/rindow/rindow-neuralnetworks "Link to resource") – Deep learning framework for PHP providing neural network layers, training utilities, and GPU/accelerated backends via the Rindow numerical computing ecosystem
- 🌟 [RubixML/RubixML](https://github.com/RubixML/RubixML "Link to resource") – [![GitHub stars](https://camo.githubusercontent.com/6d439314e548020cb0a641be3c75e1f9ec6fc878dc7903e81f2d221b0fd45837/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f52756269784d4c2f52756269784d4c3f7374796c653d736f6369616c)](https://camo.githubusercontent.com/6d439314e548020cb0a641be3c75e1f9ec6fc878dc7903e81f2d221b0fd45837/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f52756269784d4c2f52756269784d4c3f7374796c653d736f6369616c) High-level ML framework with pipelines and datasets

---

Natural Language Processing
---------------------------

[](#natural-language-processing)

*Text processing, tokenization, language detection, sentiment analysis and other NLP tasks in PHP.*

- ⚠️ [angeloskath/php-nlp-tools](https://github.com/angeloskath/php-nlp-tools "Link to resource") – Natural Language Processing tools
- [CodeWithKyrian/transformers-php](https://github.com/CodeWithKyrian/transformers-php "Link to resource") – Hugging Face–style Transformer inference in PHP using ONNX
- [davmixcool/php-sentiment-analyzer](https://github.com/davmixcool/php-sentiment-analyzer "Link to resource") – Lightweight PHP library for sentiment analysis using lexical rules
- [friteuseb/nlp\_tools](https://github.com/friteuseb/nlp_tools "Link to resource") – Extension for NLP methods and text analysis
- ⚠️ [googlei18n/myanmar-tools](https://github.com/googlei18n/myanmar-tools "Link to resource") – Myanmar text encoding detection and Zawgyi ↔ Unicode conversion using a trained model (includes PHP support)
- ⚠️ [patrickschur/language-detection](https://github.com/patrickschur/language-detection "Link to resource") – Language detection library
- 🧪 [RubixML/Sentiment](https://github.com/RubixML/Sentiment "Link to resource") — Example project demonstrating sentiment analysis with a neural network (IMDB reviews) using Rubix ML in PHP
- [voku/stop-words](https://github.com/voku/stop-words "Link to resource") – Stop word lists for many languages
- [yooper/php-text-analysis](https://github.com/yooper/php-text-analysis "Link to resource") – Sentiment analysis and NLP tools

---

Computer Vision, Image &amp; Video Processing
---------------------------------------------

[](#computer-vision-image--video-processing)

*Image manipulation, preprocessing, and computer vision workloads from PHP.*

- 🧪 [aschmelyun/subvert](https://github.com/aschmelyun/subvert "Link to resource") - Generate subtitles, summaries, and chapters from videos in seconds
- 🌟 [Intervention/image](https://github.com/Intervention/image "Link to resource") — [![GitHub stars](https://camo.githubusercontent.com/d2b2f960a369b10873bebaacb31ff40e79858d1be4681b46cda049a23c4ba1ff/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f496e74657276656e74696f6e2f696d6167653f7374796c653d736f6369616c)](https://camo.githubusercontent.com/d2b2f960a369b10873bebaacb31ff40e79858d1be4681b46cda049a23c4ba1ff/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f496e74657276656e74696f6e2f696d6167653f7374796c653d736f6369616c) Image manipulation library for CV preprocessing
- [jcupitt/vips](https://github.com/jcupitt/libvips "Link to resource") – Fast image processing library with PHP bindings
- 🧪 [php-opencv/php-opencv](https://github.com/php-opencv/php-opencv "Link to resource") – OpenCV bindings for PHP

---

Math, Statistics &amp; Linear Algebra
-------------------------------------

[](#math-statistics--linear-algebra)

*Numerical computing, matrix operations, statistics, and related math foundations for ML and data science in PHP.*

- 🌟 [brick/math](https://github.com/brick/math "Link to resource") — [![GitHub stars](https://camo.githubusercontent.com/2d2b0f32c76755ac3dd341c4086777b2a94bc7f71c483490302dbc1ad9f4e137/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f627269636b2f6d6174683f7374796c653d736f6369616c)](https://camo.githubusercontent.com/2d2b0f32c76755ac3dd341c4086777b2a94bc7f71c483490302dbc1ad9f4e137/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f627269636b2f6d6174683f7374796c653d736f6369616c) Arbitrary-precision arithmetic for PHP (BigInteger, BigDecimal, BigRational)
- 🌟 [Hi-Folks/statistics](https://github.com/Hi-Folks/statistics "Link to resource") – [![GitHub stars](https://camo.githubusercontent.com/46e8ca435908830118c0659516d11b1b3a743f3ed775e8b7db7bde3d58b8bd55/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f48692d466f6c6b732f737461746973746963733f7374796c653d736f6369616c)](https://camo.githubusercontent.com/46e8ca435908830118c0659516d11b1b3a743f3ed775e8b7db7bde3d58b8bd55/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f48692d466f6c6b732f737461746973746963733f7374796c653d736f6369616c) Probability distributions and statistical functions library for PHP
- 🌟 [markrogoyski/math-php](https://github.com/markrogoyski/math-php "Link to resource") – [![GitHub stars](https://camo.githubusercontent.com/f0091498f1c9e9cfd461e43f56f28c1685300481f66c3f93d391fea6715207ca/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6d61726b726f676f79736b692f6d6174682d7068703f7374796c653d736f6369616c)](https://camo.githubusercontent.com/f0091498f1c9e9cfd461e43f56f28c1685300481f66c3f93d391fea6715207ca/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6d61726b726f676f79736b692f6d6174682d7068703f7374796c653d736f6369616c) Math library for linear algebra, statistics, and calculus
- [mcordingley/LinearAlgebra](https://github.com/mcordingley/LinearAlgebra "Link to resource") – Stand-alone linear algebra library
- ⚠️ [NumPHP/NumPHP](https://github.com/NumPHP/NumPHP "Link to resource") – Math library for scientific computing
- 🧪 [phpmlkit/ndarray](https://github.com/phpmlkit/ndarray "Link to resource") – Multidimensional array (ndarray) implementation for PHP inspired by NumPy, useful for numerical computing and machine learning workloads
- 🧪 [rindow/rindow-math-matrix](https://github.com/rindow/rindow-math-matrix "Link to resource") – Foundational package for scientific matrix operations
- 🌟 [RubixML/numpower](https://github.com/RubixML/numpower "Link to resource") – High-performance numerical computing library inspired by NumPy
- 🌟 [RubixML/Tensor](https://github.com/RubixML/Tensor "Link to resource") – [![GitHub stars](https://camo.githubusercontent.com/6400989b50e206c92fd21edbed9431efb8b054257c178c8c56d1261bf49b1478/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f52756269784d4c2f54656e736f723f7374796c653d736f6369616c)](https://camo.githubusercontent.com/6400989b50e206c92fd21edbed9431efb8b054257c178c8c56d1261bf49b1478/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f52756269784d4c2f54656e736f723f7374796c653d736f6369616c) N-dimensional tensors for numerical computing

---

LLMs &amp; AI APIs
------------------

[](#llms--ai-apis)

*Clients, SDKs, and frameworks for calling hosted LLMs and other AI providers from PHP.*

- 🧪 [adrienbrault/instructrice](https://github.com/adrienbrault/instructrice "Link to resource") — Typed LLM outputs in PHP with flexible schema support (OpenAI, Claude, Gemini, etc.) and type-safe handling of structured responses
- [ArdaGnsrn/ollama-php](https://github.com/ArdaGnsrn/ollama-php "Link to resource") – A PHP client library for the Ollama LLM server, enabling completions, chat, model management, and embeddings via Ollama’s API
- [Clarifai/clarifai-php-grpc](https://github.com/Clarifai/clarifai-php-grpc "Link to resource") – Official Clarifai gRPC PHP client for accessing Clarifai’s AI APIs (vision and text recognition)
- [cognesy/instructor-php](https://github.com/cognesy/instructor-php "Link to resource") – Structured-output helper for LLM responses
- [deepseek-php/deepseek-php-client](https://github.com/deepseek-php/deepseek-php-client "Link to resource") – PHP client library for integrating with the DeepSeek AI API, providing a fluent API for model queries, streaming results, and support for multiple HTTP clients and models
- [elastic/elasticsearch-chatgpt-php](https://github.com/elastic/elasticsearch-chatgpt-php "Link to resource") – Experimental PHP library that uses ChatGPT to translate natural language into Elasticsearch DSL queries and perform semantic search over your indices
- [FunkyOz/mulagent](https://github.com/FunkyOz/mulagent "Link to resource") – Multi-agent orchestration framework for LLM applications
- 🌟 [google-gemini-php/client](https://github.com/google-gemini-php/client "Link to resource") – [![GitHub stars](https://camo.githubusercontent.com/e347bb1d05dafcfef9f792765897c9dcc8112c7d6f7acc806ae570e16e66c886/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f676f6f676c652d67656d696e692d7068702f636c69656e743f7374796c653d736f6369616c)](https://camo.githubusercontent.com/e347bb1d05dafcfef9f792765897c9dcc8112c7d6f7acc806ae570e16e66c886/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f676f6f676c652d67656d696e692d7068702f636c69656e743f7374796c653d736f6369616c) Gemini PHP is a community-maintained PHP API client that allows you to interact with the Gemini AI API
- ⚠️ [HosonoDE/EasyAI-PHP](https://github.com/HosonoDE/EasyAI-PHP "Link to resource") – High-level AI integration library for PHP that simplifies using LLMs
- 🧪 [carmelosantana/php-agents](https://github.com/carmelosantana/php-agents) – PHP framework for building AI agents with tool use, provider abstraction and multi-model support
- 🌟 [kambo-1st/langchain-php](https://github.com/kambo-1st/langchain-php "Link to resource") [![GitHub stars](https://camo.githubusercontent.com/7ae0a2247d26de31952158d9171b86a6ebeb9c11014abb89e23e5331dc8cf069/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6b616d626f2d3173742f6c616e67636861696e2d7068703f7374796c653d736f6369616c)](https://camo.githubusercontent.com/7ae0a2247d26de31952158d9171b86a6ebeb9c11014abb89e23e5331dc8cf069/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6b616d626f2d3173742f6c616e67636861696e2d7068703f7374796c653d736f6369616c) A PHP port of the LangChain framework for building composable LLM-powered applications
- 🌟 [llm-agents-php/agents](https://github.com/llm-agents-php/agents "Link to resource") – [![GitHub stars](https://camo.githubusercontent.com/043b85a931aa19f7d05012827f00c198bcca6ed872bb5c5300b84d492d13af4c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6c6c6d2d6167656e74732d7068702f6167656e74733f7374796c653d736f6369616c)](https://camo.githubusercontent.com/043b85a931aa19f7d05012827f00c198bcca6ed872bb5c5300b84d492d13af4c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6c6c6d2d6167656e74732d7068702f6167656e74733f7374796c653d736f6369616c) LM Agents is a PHP library for building and managing Language Model (LLM) based agents
- [llm-agents-php/prompt-generator](https://github.com/llm-agents-php/prompt-generator "Link to resource") – Prompt generator for LLM agents with interceptors
- [ModelFlow-AI (GitHub org)](https://github.com/modelflow-ai "Link to resource") – Collection of PHP packages for unified access to AI models, embeddings, and chat (OpenAI, Mistral, Ollama)
- [mozex/anthropic-php](https://github.com/mozex/anthropic-php "Link to resource") – Community-maintained PHP API client for the Anthropic (Claude) AI API, supporting messages, streaming, tool use, and batch processing
- [mzarnecki/php-rag](https://github.com/mzarnecki/php-rag "Link to resource") – PHP RAG toolkit for connecting vector search and LLMs in retrieval-augmented workflows
- 🌟 [openai-php/client](https://github.com/openai-php/client "Link to resource") – [![GitHub stars](https://camo.githubusercontent.com/0db9d970cb4081ba954782e48ebcc65cb77305d3500fe6e395b185fe8acf4e7e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6f70656e61692d7068702f636c69656e743f7374796c653d736f6369616c)](https://camo.githubusercontent.com/0db9d970cb4081ba954782e48ebcc65cb77305d3500fe6e395b185fe8acf4e7e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6f70656e61692d7068702f636c69656e743f7374796c653d736f6369616c) Official OpenAI PHP client
- 🌟 [orhanerday/open-ai](https://github.com/orhanerday/open-ai "Link to resource") – [![GitHub stars](https://camo.githubusercontent.com/c171d5417a0db5b6d414001d8aff3b478fbd373b2f5e29be7b4f80c0f5e0cbdf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6f7268616e65726461792f6f70656e2d61693f7374796c653d736f6369616c)](https://camo.githubusercontent.com/c171d5417a0db5b6d414001d8aff3b478fbd373b2f5e29be7b4f80c0f5e0cbdf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6f7268616e65726461792f6f70656e2d61693f7374796c653d736f6369616c) Popular OpenAI PHP SDK
- 🌟 [prism-php/prism](https://github.com/prism-php/prism "Link to resource") – Laravel package offering a unified, expressive interface for integrating Large Language Models (LLMs) and AI tools across multiple providers in your application
- [prism-php/bedrock](https://github.com/prism-php/bedrock "Link to resource") – AWS Bedrock provider for the Prism PHP framework, adding Bedrock LLM and embeddings support to Laravel Prism integrations
- [sarfraznawaz2005/ai-team](https://github.com/sarfraznawaz2005/ai-team "Link to resource") — Package to build and run collaborative teams of AI members with role/task assignments
- [SearchAugmentedLLM](https://github.com/EliasPereirah/SearchAugmentedLLM "Link to resource") – PHP search-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](https://github.com/skito/aipi-php "Link to resource") – Universal API client for common AI models in PHP, offering a unified interface to interact with multiple LLM providers
- [softcreatr/php-mistral-ai-sdk](https://github.com/SoftCreatR/php-mistral-ai-sdk "Link to resource") – PHP SDK for the Mistral AI API, providing an easy wrapper to call Mistral’s LLM and AI endpoints (chat, embeddings, fine-tuning etc.)
- [takaaki-mizuno/php-llm-json-adapter](https://github.com/takaaki-mizuno/php-llm-json-adapter "Link to resource") — Adapter to normalize and return LLM responses as structured JSON using JSON Schema, with support for multiple providers (OpenAI, Gemini, Bedrock, Ollama)
- [thojou/php-llm-documents](https://github.com/thojou/php-llm-documents "Link to resource") — PHP library for LLM-based document processing (splitting, embeddings, vector store, search) inspired by LangChain/DocTran
- [utopia-php/agents](https://github.com/utopia-php/agents "Link to resource") – Simple, lightweight PHP library for AI agent orchestration with multi-provider support (OpenAI, Anthropic, Deepseek, Perplexity, XAI)

### Speech &amp; Text-to-Speech

[](#speech--text-to-speech)

- [b7s/fluentvox](https://github.com/b7s/fluentvox "Link to resource") – Fluent PHP API for state-of-the-art text-to-speech and voice cloning (Resemble AI’s Chatterbox), with CLI, GPU acceleration, and multilingual support
- [b7s/whisper-php](https://github.com/b7s/whisper-php "Link to resource") – PHP wrapper/client for Whisper speech-to-text (ASR), enabling audio transcription via Whisper models

### Tokenizers &amp; Prompt Utilities

[](#tokenizers--prompt-utilities)

- [CodeWithKyrian/tokenizers-php](https://github.com/CodeWithKyrian/tokenizers-php "Link to resource") – PHP bindings for Hugging Face Tokenizers, enabling fast tokenization for transformer and LLM models
- [Gioni06/GPT3Tokenizer](https://github.com/Gioni06/GPT3Tokenizer "Link to resource") – PHP tokenizer compatible with GPT-3 style models
- [yethee/tiktoken-php](https://github.com/yethee/tiktoken-php "Link to resource") – PHP implementation of OpenAI’s *tiktoken* tokenizer for token counting and optimization

---

Embeddings &amp; Vector Search
------------------------------

[](#embeddings--vector-search)

*Libraries for generating embeddings and performing vector similarity search from PHP applications.*

- 🌟 [algolia/algoliasearch-client-php](https://github.com/algolia/algoliasearch-client-php "Link to resource") – [![GitHub stars](https://camo.githubusercontent.com/c069d1c3d3432a88b40f86b4247e74b83017c233783c7087f2db2f5f4dcfe5b3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f616c676f6c69612f616c676f6c69617365617263682d636c69656e742d7068703f7374796c653d736f6369616c)](https://camo.githubusercontent.com/c069d1c3d3432a88b40f86b4247e74b83017c233783c7087f2db2f5f4dcfe5b3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f616c676f6c69612f616c676f6c69617365617263682d636c69656e742d7068703f7374796c653d736f6369616c) Algolia search client
- [CodeWithKyrian/chromadb-php](https://github.com/CodeWithKyrian/chromadb-php "Link to resource") – PHP client for ChromaDB, enabling vector similarity search and embedding storage for AI and RAG applications
- [hkulekci/qdrant-php](https://github.com/hkulekci/qdrant-php "Link to resource") – PHP client for the Qdrant vector database, enabling vector similarity search and embedding storage for AI and RAG applications
- [llm-agents-php/vector-storage](https://github.com/llm-agents-php/vector-storage "Link to resource") – LLM Agents Vector Storage
- 🌟 [LLPhant/LLPhant](https://github.com/LLPhant/LLPhant "Link to resource") – [![GitHub stars](https://camo.githubusercontent.com/de0216cab40dd30074347115f986e7707c5bc119eb7bd36a41b64403781287b2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f4c4c5068616e742f4c4c5068616e743f7374796c653d736f6369616c)](https://camo.githubusercontent.com/de0216cab40dd30074347115f986e7707c5bc119eb7bd36a41b64403781287b2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f4c4c5068616e742f4c4c5068616e743f7374796c653d736f6369616c) Comprehensive PHP generative AI framework supporting LLMs, embeddings, vector search and more
- 🌟 [meilisearch/meilisearch-php](https://github.com/meilisearch/meilisearch-php "Link to resource") – [![GitHub stars](https://camo.githubusercontent.com/245d553d54ebcdfe922f7e6e0301e2dd7c8a35a07343b6faa4b4f8c04212851e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6d65696c697365617263682f6d65696c697365617263682d7068703f7374796c653d736f6369616c)](https://camo.githubusercontent.com/245d553d54ebcdfe922f7e6e0301e2dd7c8a35a07343b6faa4b4f8c04212851e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6d65696c697365617263682f6d65696c697365617263682d7068703f7374796c653d736f6369616c) Client for Meilisearch search engine
- 🌟 [pgvector/pgvector](https://github.com/pgvector/pgvector "Link to resource") – [![GitHub stars](https://camo.githubusercontent.com/6a2ce2b189e9bec37e8b4b2624bbe228346beb32736b2e833eb05d487b4b0240/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f7067766563746f722f7067766563746f723f7374796c653d736f6369616c)](https://camo.githubusercontent.com/6a2ce2b189e9bec37e8b4b2624bbe228346beb32736b2e833eb05d487b4b0240/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f7067766563746f722f7067766563746f723f7374796c653d736f6369616c) Vector similarity search extension for PostgreSQL
- 🌟 [pgvector/pgvector-php](https://github.com/pgvector/pgvector-php "Link to resource") – [![GitHub stars](https://camo.githubusercontent.com/ea591617add3cce8692488ca7690b29b1e193b9baa67cd88cf7bd76fdde5e1dd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f7067766563746f722f7067766563746f722d7068703f7374796c653d736f6369616c)](https://camo.githubusercontent.com/ea591617add3cce8692488ca7690b29b1e193b9baa67cd88cf7bd76fdde5e1dd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f7067766563746f722f7067766563746f722d7068703f7374796c653d736f6369616c) PHP client for pgvector on PostgreSQL
- [probots-io/pinecone-php](https://github.com/probots-io/pinecone-php) – PHP client for Pinecone vector database used in semantic search and RAG pipelines
- [redis-applied-ai/redis-vector-php](https://github.com/redis-applied-ai/redis-vector-php "Link to resource") — PHP client for Redis Vector Library (RedisVL) to support vector similarity search and AI-oriented queries
- [voyanara/milvus-php-sdk](https://github.com/voyanara/milvus-php-sdk "Link to resource") – PHP SDK for Milvus vector database API v2

---

Data Processing
---------------

[](#data-processing)

*ETL, data pipelines, serialization, and transformation utilities for preparing data for ML and analytics in PHP.*

- 🌟 [cocur/slugify](https://github.com/cocur/slugify "Link to resource") — [![GitHub stars](https://camo.githubusercontent.com/cef0b9404e84dfcb11a7ccd9c6510bf3934f10e207823503ff472cc10d5d9c8c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f636f6375722f736c75676966793f7374796c653d736f6369616c)](https://camo.githubusercontent.com/cef0b9404e84dfcb11a7ccd9c6510bf3934f10e207823503ff472cc10d5d9c8c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f636f6375722f736c75676966793f7374796c653d736f6369616c) Converts strings into URL-friendly slugs, includes integrations for many frameworks
- 🌟 [flow-php/flow](https://github.com/flow-php/flow "Link to resource") – [![GitHub stars](https://camo.githubusercontent.com/b168d93a8f3f738e1b45fc1a34b3573bc50f375937f5c4c127daddf0909cd84d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f666c6f772d7068702f666c6f773f7374796c653d736f6369616c)](https://camo.githubusercontent.com/b168d93a8f3f738e1b45fc1a34b3573bc50f375937f5c4c127daddf0909cd84d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f666c6f772d7068702f666c6f773f7374796c653d736f6369616c) Data processing and ETL framework for PHP with typed pipelines
- [league/csv](https://github.com/thephpleague/csv "Link to resource") – CSV data processing
- 🌟 [php-ds/ext-ds](https://github.com/php-ds/ext-ds "Link to resource") — [![GitHub stars](https://camo.githubusercontent.com/594c61a60d98a3e09bf07ed8977949b432c94f402259af0057f2f42b676172b5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f7068702d64732f6578742d64733f7374796c653d736f6369616c)](https://camo.githubusercontent.com/594c61a60d98a3e09bf07ed8977949b432c94f402259af0057f2f42b676172b5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f7068702d64732f6578742d64733f7374796c653d736f6369616c) PHP Data Structures extension: efficient vectors, maps, sets, etc.
- [spatie/data-transfer-object](https://github.com/spatie/data-transfer-object "Link to resource") – Strongly typed DTOs
- [symfony/serializer](https://github.com/symfony/serializer "Link to resource") – Data normalization &amp; serialization

---

Interop &amp; Model Serving
---------------------------

[](#interop--model-serving)

*Bridging PHP with native libraries, external services, and runtimes for deploying and serving ML and LLM models.*

- 🌟 [ankane/onnxruntime-php](https://github.com/ankane/onnxruntime-php "Link to resource") – [![GitHub stars](https://camo.githubusercontent.com/301fcda9315025153853cc0d4c0a29fd48aac435a0bbd84f06356dee4f4f935e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f616e6b616e652f6f6e6e7872756e74696d652d7068703f7374796c653d736f6369616c)](https://camo.githubusercontent.com/301fcda9315025153853cc0d4c0a29fd48aac435a0bbd84f06356dee4f4f935e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f616e6b616e652f6f6e6e7872756e74696d652d7068703f7374796c653d736f6369616c) Run ONNX models from PHP
- 🌟 [deepl-php](https://github.com/DeepLcom/deepl-php "Link to resource") — [![GitHub stars](https://camo.githubusercontent.com/4186df2630ba7c5ae482d3d09bbdc33a7fb178d14116b4e51d98a31fd09e18b5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f446565704c636f6d2f646565706c2d7068703f7374796c653d736f6369616c)](https://camo.githubusercontent.com/4186df2630ba7c5ae482d3d09bbdc33a7fb178d14116b4e51d98a31fd09e18b5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f446565704c636f6d2f646565706c2d7068703f7374796c653d736f6369616c) Official PHP client library for the DeepL API, enabling high-quality language translation via DeepL’s AI/ML service
- [distantmagic/resonance](https://github.com/distantmagic/resonance "Link to resource") – Asynchronous PHP framework with built-in support for serving and integrating machine learning and LLM models
- [FFI](https://www.php.net/manual/en/book.ffi.php "Link to resource") – Native C/C++ bindings for ML inference
- 🧪 [garyblankenship/mcp-php](https://github.com/garyblankenship/mcp-php "Link to resource") – PHP example of a Model Context Protocol (MCP) server for connecting LLMs with application logic
- 🌟 [googleapis/google-cloud-php](https://github.com/googleapis/google-cloud-php "Link to resource") — [![GitHub stars](https://camo.githubusercontent.com/a174193f843f02452c9c7d01a27dfab1602537af9b7df3d0651f430161256cf1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f676f6f676c65617069732f676f6f676c652d636c6f75642d7068703f7374796c653d736f6369616c)](https://camo.githubusercontent.com/a174193f843f02452c9c7d01a27dfab1602537af9b7df3d0651f430161256cf1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f676f6f676c65617069732f676f6f676c652d636c6f75642d7068703f7374796c653d736f6369616c) Official PHP client library for Google Cloud APIs (including ML/AI services like Vision, Translate, AutoML, Vertex AI, etc.)
- [grpc/grpc-php](https://github.com/grpc/grpc-php "Link to resource") – gRPC client for model services
- 🧪 [HossamBalaha/Deep-Learning-Classification-System-using-PHP-and-Keras](https://github.com/HossamBalaha/Deep-Learning-Classification-System-using-PHP-and-Keras "Link to resource") – Example system showing how to integrate a Keras deep learning classifier with a PHP backend
- [logiscape/mcp-sdk-php](https://github.com/logiscape/mcp-sdk-php "Link to resource") – PHP SDK for building Model Context Protocol (MCP) clients and servers to connect LLMs with external tools and services
- 🌟 [neuron-core/neuron-ai](https://github.com/neuron-core/neuron-ai "Link to resource") – [![GitHub stars](https://camo.githubusercontent.com/67730283dd32bae9774885fde2f0d95d330d48c88f3caa4322ba5a42f93d3e66/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6e6575726f6e2d636f72652f6e6575726f6e2d61693f7374796c653d736f6369616c)](https://camo.githubusercontent.com/67730283dd32bae9774885fde2f0d95d330d48c88f3caa4322ba5a42f93d3e66/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6e6575726f6e2d636f72652f6e6575726f6e2d61693f7374796c653d736f6369616c) PHP agentic AI framework for building and orchestrating LLMs, RAG etc
- [nlpcloud/nlpcloud-php](https://github.com/nlpcloud/nlpcloud-php "Link to resource") — PHP client for the NLP Cloud API (access NLP/ML services like NER, sentiment analysis, summarization, text generation, embeddings, translation, and more)

---

Tools &amp; Utilities
---------------------

[](#tools--utilities)

*Supporting tools, debugging helpers, logging, and HTTP/CLI utilities commonly used in ML and AI workflows.*

- 🧪 [apphp/pretty-print](https://github.com/apphp/pretty-print "Link to resource") – Pretty-print PHP arrays and numeric data for ML debugging
- [guanguans/ai-commit](https://github.com/guanguans/ai-commit "Link to resource") — AI-powered CLI to automatically generate conventional Git commit messages
- [joshembling/laragenie](https://github.com/joshembling/laragenie "Link to resource") — AI chatbot/assistant for Laravel that indexes and understands your codebase via the command line (OpenAI + Pinecone)
- [nunomaduro/collision](https://github.com/nunomaduro/collision "Link to resource") – CLI error handling (useful for ML tools)
- [psr/log](https://github.com/php-fig/log "Link to resource") – Logging standard
- 🌟 [swoole/phpy](https://github.com/swoole/phpy "Link to resource") – [![GitHub stars](https://camo.githubusercontent.com/3e1013710e25dd880902b40c3b1f1cc3aa51a1d58ed353e759a6773ddb4005a5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f73776f6f6c652f706870793f7374796c653d736f6369616c)](https://camo.githubusercontent.com/3e1013710e25dd880902b40c3b1f1cc3aa51a1d58ed353e759a6773ddb4005a5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f73776f6f6c652f706870793f7374796c653d736f6369616c) Bridge for calling Python from PHP via a runtime bridge
- [symfony/console](https://github.com/symfony/console "Link to resource") – CLI applications
- [symfony/http-client](https://github.com/symfony/http-client "Link to resource") – Robust HTTP client for AI APIs

---

Laravel &amp; Framework Integrations
------------------------------------

[](#laravel--framework-integrations)

### LLM &amp; AI clients

[](#llm--ai-clients)

- [artisan-build/llm](https://github.com/artisan-build/llm "Link to resource") — Laravel integration for multiple LLM providers (OpenAI, Azure, OpenRouter, etc.), simplifying usage of large language models in Laravel apps
- [BorahLabs/LLM-Port-Laravel](https://github.com/BorahLabs/LLM-Port-Laravel "Link to resource") – Laravel package for interchangeable LLM providers, allowing drop-in replacements of large language models
- [Capevace/llm-magic](https://github.com/Capevace/llm-magic "Link to resource") – Laravel-centric LLM toolkit with support for AI features like chat and structured data extraction
- [coding-wisely/taskallama](https://github.com/coding-wisely/taskallama "Link to resource") – Laravel package for seamless integration with the Ollama LLM API for AI-powered content generation, task assistance, conversation and embeddings
- [grok-php/laravel](https://github.com/grok-php/laravel "Link to resource") – Laravel package for integrating Grok AI models
- 🌟 [laravel/ai](https://github.com/laravel/ai "Link to resource") – [![GitHub stars](https://camo.githubusercontent.com/84edc47210063e9e46f5e96eb8af0531317652f73510cd166c74bf4d2eaf717f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6c61726176656c2f61693f7374796c653d736f6369616c)](https://camo.githubusercontent.com/84edc47210063e9e46f5e96eb8af0531317652f73510cd166c74bf4d2eaf717f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6c61726176656c2f61693f7374796c653d736f6369616c) The Laravel AI SDK: a unified, expressive Laravel API for interacting with AI providers (LLMs, images, embeddings, agents, tools)
- 🌟 [laravel/boost](https://github.com/laravel/boost "Link to resource") – [![GitHub stars](https://camo.githubusercontent.com/6a99e93785cd4123aa2d4556bfc09cf8afe2aefe747e6027ae2abb15692f43cb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6c61726176656c2f626f6f73743f7374796c653d736f6369616c)](https://camo.githubusercontent.com/6a99e93785cd4123aa2d4556bfc09cf8afe2aefe747e6027ae2abb15692f43cb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6c61726176656c2f626f6f73743f7374796c653d736f6369616c) Official Laravel Boost: a development server and AI context provider that accelerates AI-assisted code generation by giving AI tools detailed insight into your Laravel app (MCP server, schema inspection, docs + guidelines)
- [maestroerror/laragent](https://github.com/maestroerror/laragent "Link to resource") – AI agent development framework for Laravel: define agents, tools, workflows, and manage LLM interactions with an Eloquent-style API
- [moe-mizrak/laravel-openrouter](https://github.com/moe-mizrak/laravel-openrouter "Link to resource") – Laravel package to integrate OpenRouter LLM API
- [mozex/anthropic-laravel](https://github.com/mozex/anthropic-laravel "Link to resource") – Laravel integration for the Anthropic (Claude) AI API with Facades, config publishing, and testing fakes
- 🌟 [neuron-core/neuron-laravel](https://github.com/neuron-core/neuron-laravel "Link to resource") – [![GitHub stars](https://camo.githubusercontent.com/fb8b747cccef3f891c4b6d422b3402f4d0bb27af1fc67cf3e45e341777a22169/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6e6575726f6e2d636f72652f6e6575726f6e2d6c61726176656c3f7374796c653d736f6369616c)](https://camo.githubusercontent.com/fb8b747cccef3f891c4b6d422b3402f4d0bb27af1fc67cf3e45e341777a22169/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6e6575726f6e2d636f72652f6e6575726f6e2d6c61726176656c3f7374796c653d736f6369616c) Laravel integration for Neuron Core to build and orchestrate AI/LLM workflows
- [atlas-php/atlas](https://github.com/atlas-php/atlas "Link to resource") – Laravel AI application framework for structuring agents, tools, prompts, and pipelines on top of Prism PHP
- 🌟 [openai-php/laravel](https://github.com/openai-php/laravel "Link to resource") – [![GitHub stars](https://camo.githubusercontent.com/64a1eaacf73261962808413bf12cff5aa1d7d6b9f8ac655edfe8348870568373/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6f70656e61692d7068702f6c61726176656c3f7374796c653d736f6369616c)](https://camo.githubusercontent.com/64a1eaacf73261962808413bf12cff5aa1d7d6b9f8ac655edfe8348870568373/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6f70656e61692d7068702f6c61726176656c3f7374796c653d736f6369616c) Laravel OpenAI integration
- [PapaRascal2020/sidekick](https://github.com/PapaRascal2020/sidekick "Link to resource") – Laravel package offering a unified syntax for working with multiple AI provider APIs (OpenAI, Claude, Cohere, Mistral)
- 🌟 [php-mcp/laravel](https://github.com/php-mcp/laravel "Link to resource") – [![GitHub stars](https://camo.githubusercontent.com/e80d60b3b9df72a9ce0e7e5a91694c4d929a7ae78fb80deee74ccc3115f7da03/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f7068702d6d63702f6c61726176656c3f7374796c653d736f6369616c)](https://camo.githubusercontent.com/e80d60b3b9df72a9ce0e7e5a91694c4d929a7ae78fb80deee74ccc3115f7da03/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f7068702d6d63702f6c61726176656c3f7374796c653d736f6369616c) – Laravel package for building Model Context Protocol (MCP) servers and exposing application tools to LLMs
- [shawnveltman/laravel-openai](https://github.com/shawnveltman/laravel-openai "Link to resource") – Laravel wrapper for OpenAI
- [rahasistiyakofficial/laravel-ai-integration](https://github.com/rahasistiyakofficial/laravel-ai-integration "Link to resource") — This is a comprehensive, enterprise-ready package that provides seamless integration with multiple AI providers through a unified, elegant API

### Data &amp; DTO tools

[](#data--dto-tools)

- [jeremysalmon/LaravelLLMContext](https://github.com/jeremysalmon/LaravelLLMContext "Link to resource") – Laravel package for managing and applying contextual data in LLM interactions
- [prism-php/prism](https://github.com/prism-php/prism "Link to resource") – Laravel interface for working with LLMs and AI providers
- [spatie/laravel-data](https://github.com/spatie/laravel-data "Link to resource") – Typed DTOs for API &amp; AI responses

### Search &amp; vector search

[](#search--vector-search)

- 🌟 [laravel/scout](https://github.com/laravel/scout "Link to resource") – [![GitHub stars](https://camo.githubusercontent.com/a58497fdfd7922b2f81bb03a381a70b9c567a8d11296cb22d95a7b3ee1176b74/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6c61726176656c2f73636f75743f7374796c653d736f6369616c)](https://camo.githubusercontent.com/a58497fdfd7922b2f81bb03a381a70b9c567a8d11296cb22d95a7b3ee1176b74/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6c61726176656c2f73636f75743f7374796c653d736f6369616c) – Search abstraction (useful for vector search)
- [teamtnt/laravel-scout-tntsearch-driver](https://github.com/teamtnt/laravel-scout-tntsearch-driver "Link to resource") – Local full-text search

---

Symfony &amp; Framework Integrations
------------------------------------

[](#symfony--framework-integrations)

- [openai-php/symfony](https://github.com/openai-php/symfony "Link to resource") – OpenAI PHP for Symfony integration
- 🌟 [symfony/ai](https://github.com/symfony/ai) – [![GitHub stars](https://camo.githubusercontent.com/3bfcabe31f2910c1a9134e47fad314167f4213ae7850501121c50c46a1084c5b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f73796d666f6e792f61693f7374796c653d736f6369616c "Link to resource")](https://camo.githubusercontent.com/3bfcabe31f2910c1a9134e47fad314167f4213ae7850501121c50c46a1084c5b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f73796d666f6e792f61693f7374796c653d736f6369616c) – Symfony AI: built-in AI components and bundles for Symfony apps
- [soleinjast/symfony-markdown-response-bundle](https://github.com/soleinjast/symfony-markdown-response-bundle "Link to resource") – Symfony bundle that automatically serves Markdown versions of HTML responses to clients
- [symfony/ai-store](https://github.com/symfony/ai-store "Link to resource") – Symfony AI component providing a vector store abstraction for semantic search and RAG workflows

---

Resources
---------

[](#resources)

### General

[](#general)

- [Awesome PHP](https://github.com/ziadoz/awesome-php "Link to resource")
- 🧪 [dykyi-roman/awesome-claude-code](https://github.com/dykyi-roman/awesome-claude-code "Link to resource") – Curated collection of commands, agents, skills, hooks, and tools for enhancing Claude Code AI workflows

### Courses &amp; Tutorials

[](#courses--tutorials)

- [Fun With OpenAI and Laravel](https://laracasts.com/series/fun-with-openai-and-laravel "Link to resource") – Laracasts series showing how to integrate OpenAI into Laravel apps
- [Laravel Cloud Skills](https://skills.laravel.cloud) – Interactive learning platform for building and deploying Laravel applications, including modern AI and cloud workflows

### ML / AI Platforms

[](#ml--ai-platforms)

- [ONNX Runtime](https://onnxruntime.ai "Link to resource") – Cross-platform, high performance ML inferencing and training accelerator
- [tensorflow/tfjs](https://github.com/tensorflow/tfjs "Link to resource") — JavaScript machine learning platform for training and running models in the browser or Node.js (TensorFlow.js)

### Learning Resources

[](#learning-resources)

- [Artificial Intelligence with PHP (GitBook)](https://apphp.gitbook.io/artificial-intelligence-with-php/ "Link to resource") – Guide and reference for doing AI/ML with PHP
- 🌟 [AI for PHP Developers: Intuitive and Practical (GitBook)](https://apphp.gitbook.io/ai-for-php-developers/ "Link to resource") – Guide on AI with PHP in Russian / English
- [Build Your Own LLM in PHP (GitBook)](https://apphp.gitbook.io/build-your-own-llm-in-php/ "Link to resource") – Guide to building an LLM from scratch in PHP
- [PHP FANN installation](https://www.php.net/manual/en/fann.installation.php "Link to resource") – Official PHP manual page for installing the FANN (Fast Artificial Neural Network) extension
- [PHP and LLMs (eBook)](https://leanpub.com/php_and_llms "Link to resource") – Practical book on integrating and using large language models with PHP
- [PHP-ML Tutorials](https://php-ml.readthedocs.io/en/latest/ "Link to resource") – Documentation for PHP-ML for machine learning
- [Rubix ML Docs](https://rubixml.github.io/ML/latest/ "Link to resource") – Comprehensive documentation for Rubix ML

---

License
-------

[](#license)

This list is licensed under the MIT License – see LICENSE for details.

Contributing
------------

[](#contributing)

Contributions are welcome!
Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details, including criteria for adding new projects (maintenance, documentation, tests, etc).

[↑ Back to top](#Awesome-PHP-Machine-Learning--AI)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance89

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 Bus Factor1

Top contributor holds 95.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~19 days

Total

5

Last Release

44d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9803e512c3636b0cfa0224e247621e178ad0fe34f399a413be9b63148f636b70?d=identicon)[apphp](/maintainers/apphp)

---

Top Contributors

[![apphp](https://avatars.githubusercontent.com/u/5477692?v=4)](https://github.com/apphp "apphp (170 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (6 commits)")[![mozex](https://avatars.githubusercontent.com/u/18025667?v=4)](https://github.com/mozex "mozex (2 commits)")

---

Tags

aiawesome-listllmmachine-learningmlnlpphpphp-aiphp-mlphpainlpmachine learningmlllmawesome-list

### Embed Badge

![Health badge](/badges/apphp-awesome-php-ml/health.svg)

```
[![Health](https://phpackages.com/badges/apphp-awesome-php-ml/health.svg)](https://phpackages.com/packages/apphp-awesome-php-ml)
```

###  Alternatives

[rubix/ml

A high-level machine learning and deep learning library for the PHP language.

2.2k1.4M28](/packages/rubix-ml)[codewithkyrian/transformers

State-of-the-art Machine Learning for PHP. Run Transformers in PHP

749231.8k5](/packages/codewithkyrian-transformers)[davmixcool/php-sentiment-analyzer

PHP Sentiment Analyzer is a lexicon and rule-based sentiment analysis tool that is used to understand sentiments in a sentence using VADER (Valence Aware Dictionary and sentiment Reasoner).

138151.7k1](/packages/davmixcool-php-sentiment-analyzer)[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
