awesome-php-ai
A curated list of PHP libraries and tools for AI, Machine Learning, and Natural Language Processing. Find everything you need to integrate modern AI capabilities into your PHP applications.
https://github.com/garyblankenship/awesome-php-ai
Last synced: about 8 hours ago
JSON representation
-
API Clients
-
Utilities & Tools
-
-
Command Line Tools
-
Computer Vision
-
Utilities & Tools
-
-
Data Manipulation
-
Tutorials & Documentation
-
-
Learning Resources
-
Tutorials & Documentation
- Fun With OpenAI and Laravel - Laracasts series on OpenAI with PHP and Laravel.
- Rubix ML Docs - Comprehensive documentation for Rubix ML.
-
Utilities & Tools
- PHP LLMs Book
- Elasticsearch ChatGPT PHP
- SearchAugmentedLLM
- neuranotes-api - taking app showcasing LLM, RAG integration, and scalable architecture. |
- onnxruntime-php - high performance scoring engine for ML models - for PHP. |
- PHP LLM Examples
- YouTube AI Agent
- Deep Research Agent
-
-
Libraries
-
Machine Learning
- **TensorFlow PHP** - PHP bindings for TensorFlow.
-
-
LLM Clients & Adapters
- grok-php/laravel - friendly package. |
- Laravel OpenRouter
- aipi-php
- Ollama PHP
- LLM-Port-Laravel - in replacement wrapper for popular LLMs in Laravel. |
- Sidekick
- Gemini PHP - maintained PHP API client for Gemini AI. |
- OpenAI PHP SDK - 3, DALL-E, and ChatGPT with streaming support. |
- OpenAI PHP - maintained PHP API client for OpenAI. |
- WordPress PHP AI Client - agnostic PHP AI client SDK for any generative AI model. |
- AI Access
- Anthropic PHP - maintained PHP API client for Anthropic (Claude) API with streaming, tool use, and batch processing. |
- DeepSeek PHP
- Anthropic Official SDK
- RunAPI PHP SDK
-
LLM Frameworks
- LLM Chain - based and AI-based features and applications. |
- Lugha - powered applications. |
- EasyAI-PHP - style). Based on PHP 8.1+. |
- Resonance - performance PHP framework optimized for IO-intensive LLM applications. |
- EleLLM
- langchain-php
- Magic - source all-in-one AI productivity platform with agents, workflows, and collaboration. |
- Prism
- Neuron AI - ready AI applications with RAG and multi-agent workflows. |
- Vizra ADK
- LLPhant - 4. Inspired by Langchain. |
-
Machine Learning
-
Natural Language Processing
-
AI Agents & Orchestration
- mulagent - agent orchestration with routines and handoffs. |
- LLM Agents - based autonomous agents that perform complex tasks. |
- ai-team
-
Laravel Integrations
- llm-magic - agnostic AI toolkit for Laravel. |
- Taskallama
- LaravelLLMContext
- laravel-llm-prompt
- laravel-prompt-alchemist
- llm
- Laravel AI
- Neuron Laravel
- Laravel AI Guard - track token usage, enforce budgets. |
- ai-translations-for-laravel
- laravel-prompt-manager
- OpenAI PHP Laravel
- LarAgent
- Gemini PHP Laravel
-
MCP & Agent Tooling
- mcp-php
- Laravel MCP Server
- MCP Client Laravel - native client for MCP servers. |
- Symfony MCP SDK
- Symfony MCP Bundle
- CTX Generator - organizes codebase info for AI assistants. |
- Laravel Boost - focused MCP server for augmenting AI-powered local development. |
- MCP PHP SDK
- php-mcp/server
- Laravel MCP
- php-mcp/laravel
- mcp-sdk-php
- Prism Relay
- Laravel Agent Detector
- php-mcp/client
- Xdebug MCP - optimized debugging support. |
-
Structured Output & Validation
- Instructor PHP - in PHP. |
- instructrice - compatible provider. |
-
Symfony Integrations
-
Utilities & Tools
- fireworksai-adapter - source models hosted by fireworks.ai. |
- transformers-php
- fabric-pattern
- prompt-generator
- cocur/slugify
- NlpTools
- php-llm-json-adapter
- php-llm-documents
- TOON PHP - Oriented Object Notation - compact data format for reducing token consumption with LLMs. |
- php-ai-tool-bridge
- single-file-php-ai - in, single-file PHP chat interface for Ollama/OpenAI. No Node.js, no Docker. |
- whisper.php - to-text in PHP using Whisper.cpp. |
- tiktoken-php
- Prompt Deck
-
-
Vector Storage & RAG
-
Utilities & Tools
- redis-vector-php
- vector-storage
- qdrant-php
- chromadb-php - source embedding database. |
-
-
Video Processing
-
Utilities & Tools
-
Programming Languages
Categories
Sub Categories
Keywords
php
29
ai
27
llm
24
laravel
15
openai
12
symfony
8
api
7
laravel-package
7
anthropic
6
gpt
5
mcp
5
gemini
5
language
4
artificial-intelligence
4
client
4
prompt-engineering
4
ai-agents
4
symfony-ai
4
ollama
4
agent
4
php8
3
sdk
3
framework
3
chatbot
3
translation
3
llms
3
openai-api
3
machine-learning
3
openrouter
3
claude-ai
2
deep-learning
2
agents
2
deepseek
2
neural-network
2
huggingface
2
llama
2
nlp
2
mcp-client
2
gpt-3
2
prompt
2
chatgpt
2
llama3
2
ai-assistant
2
processing
2
natural
2
laravel-ai
2
google-ai-studio
2
google-ai-client-sdk
2
google-ai
2
gemini-api
2