garyblankenship/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.
الذكاء الاصطناعي وتعلّم الآلةالنمو المقاس للنجوم
- خلال 24 ساعة
- +١
- خلال 7 أيام
- +١
- خلال 15 يومًا
- ٠
- خلال شهر
- +٢
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلAwesome PHP AI 
A curated list of awesome PHP libraries and tools for AI, Machine Learning, and Natural Language Processing.
Contributions welcome! Read the contributing guidelines to get started.
Table of Contents
- LLM Frameworks
- LLM Clients & Adapters
- Natural Language Processing
- Machine Learning
- Computer Vision
- Vector Storage & RAG
- Command Line Tools
- Video Processing
- API Clients
- Learning Resources
LLM Frameworks
Full-featured frameworks for building LLM-powered applications.
| Repo | Description |
|---|---|
| Magic | Open-source all-in-one AI productivity platform with agents, workflows, and collaboration. |
| Prism | Unified interface for working with LLMs in Laravel applications. |
| Neuron AI | PHP Agentic Framework for production-ready AI applications with RAG and multi-agent workflows. |
| LLPhant | Comprehensive PHP Generative AI Framework using OpenAI GPT-4. Inspired by Langchain. |
| langchain-php | Building applications with LLMs through composability in PHP. |
| Vizra ADK | Build, test, and deploy intelligent AI agents the Laravel way. |
| EasyAI-PHP | Simplifies AI entry for PHP developers (LangChain-style). Based on PHP 8.1+. |
| EleLLM | A PHP framework that makes working with LLMs more pleasurable and accessible. |
LLM Clients & Adapters
Client libraries and provider integrations.
| Repo | Description |
|---|---|
| OpenAI PHP | Supercharged community-maintained PHP API client for OpenAI. |
| OpenAI PHP SDK | Most downloaded PHP SDK for OpenAI GPT-3, DALL-E, and ChatGPT with streaming support. |
| DeepSeek PHP | Community PHP client for the DeepSeek API. |
| Gemini PHP | Community-maintained PHP API client for Gemini AI. |
| WordPress PHP AI Client | Provider-agnostic PHP AI client SDK for any generative AI model. |
| Ollama PHP | PHP client for Ollama, enabling local LLM deployment and interaction. |
| Anthropic Official SDK | Official PHP SDK for the Anthropic Claude API. |
| grok-php/laravel | Integrate Grok AI into Laravel with an elegant, developer-friendly package. |
| Laravel OpenRouter | Laravel integration for OpenRouter's unified LLM API interface. |
| AI Access | Flexible PHP library for Gemini, OpenAI, Anthropic, DeepSeek, Grok via consistent interface. |
| Anthropic PHP | Community-maintained PHP API client for Anthropic (Claude) API with streaming, tool use, and batch processing. |
| aipi-php | Universal API client for common AI models. |
| Sidekick | Laravel package with common syntax for Claude, Mistral, Cohere and OpenAI APIs. |
| Jev-PHP | A tiny PHP library to provide typed access to Jev and Laya decision and classification APIs. |
| LLM-Port-Laravel | Drop-in replacement wrapper for popular LLMs in Laravel. |
| RunAPI PHP SDK | Core Composer package for using RunAPI in PHP applications. |
Natural Language Processing
Structured Output & Validation
| Repo | Description |
|---|---|
| Instructor PHP | Unified LLM API, structured data outputs with LLMs, and agent SDK - in PHP. |
| instructrice | Typed LLM outputs in PHP. Supports GPT, Claude, Gemini or any OpenAI-compatible provider. |
AI Agents & Orchestration
| Repo | Description |
|---|---|
| LLM Agents | Build and manage LLM-based autonomous agents that perform complex tasks. |
| ai-team | Create teams of AI members that collaborate to achieve common goals. |
| mulagent | Multi-agent orchestration with routines and handoffs. |
MCP & Agent Tooling
| Repo | Description |
|---|---|
| Laravel Boost | Laravel-focused MCP server for augmenting AI-powered local development. |
| MCP PHP SDK | Official Model Context Protocol SDK for PHP clients and servers. |
| php-mcp/server | PHP SDK for building Model Context Protocol servers with tools, resources, and prompts. |
| Laravel MCP | Build MCP servers for Laravel applications. |
| php-mcp/laravel | Laravel SDK for building Model Context Protocol servers. |
| mcp-sdk-php | Model Context Protocol SDK for PHP. |
| CTX Generator | Tool that solves context management when working with LLMs - organizes codebase info for AI assistants. |
| Laravel MCP Server | Laravel package for implementing Model Context Protocol servers. |
| Prism Relay | MCP client tool for Prism applications. |
| Laravel Agent Detector | Detect whether PHP code is running inside an AI agent or automated development environment. |
| Xdebug MCP | PHP Xdebug MCP server with AI-optimized debugging support. |
| php-mcp/client | PHP client for the Model Context Protocol. |
| Symfony MCP Bundle | Official Symfony integration bundle for Model Context Protocol. |
| mcp-php | Setting up a Model Context Protocol (MCP) Server in Laravel. |
| MCP Client Laravel | Laravel-native client for MCP servers. |
Laravel Integrations
| Repo | Description |
|---|---|
| OpenAI PHP Laravel | Laravel integration for the OpenAI PHP client. |
| Laravel AI | Official Laravel package for AI integration. |
| LarAgent | Build AI agents inside Laravel applications. |
| Gemini PHP Laravel | Laravel integration for the Gemini PHP client. |
| Neuron Laravel | Official Neuron AI Laravel SDK. |
| Laravel AI Guard | Control and optimize AI costs in Laravel - track token usage, enforce budgets. |
| ai-translations-for-laravel | Automatically translate Laravel language files using LLMs. |
| laravel-prompt-manager | Simplify prompt management for AI engineers using Laravel. |
| laravel-llm-prompt | Laravel LLM prompt manager. |
| llm-magic | LLM-agnostic AI toolkit for Laravel. |
| LaravelLLMContext | Artisan command to generate LLM context for a Laravel project. |
| llm | Laravel integrations for various LLM providers. |
| hindsight-php | Long-term memory for Laravel AI SDK agents and Laravel MCP servers, on the open-source Hindsight memory server. |
Symfony Integrations
| Repo | Description |
|---|---|
| Symfony AI Platform | PHP library for interacting with AI platform providers. |
| Symfony AI Agent | PHP library for building agentic applications. |
| Symfony AI Bundle | Integration bundle for Symfony AI components. |
Utilities & Tools
| Repo | Description |
|---|---|
| cocur/slugify | Converts strings into slugs. |
| transformers-php | Toolkit for PHP developers to add machine learning magic easily. |
| NlpTools | Collection of NLP tools and APIs for working with text. |
| whisper.php | Local speech-to-text in PHP using Whisper.cpp. |
| tiktoken-php | PHP implementation of OpenAI token counting with tiktoken. |
| TOON PHP | Token-Oriented Object Notation - compact data format for reducing token consumption with LLMs. |
| Prompt Deck | Laravel package for versioned AI prompt management with variables and tracking. |
| php-ai-tool-bridge | AI integration to interact with your own code and services. |
| single-file-php-ai | Drop-in, single-file PHP chat interface for Ollama/OpenAI. No Node.js, no Docker. |
| prompt-generator | Prompt generator for LLM agents with interceptors. |
| php-llm-documents | Brings LLM functionality for document processing. |
| fabric-pattern | Slim PHP wrapper for Daniel Miessler's fabric pattern. |
| fireworksai-adapter | Adapter for open-source models hosted by fireworks.ai. |
| php-llm-json-adapter | JSON output adapter for LLMs that lack native function calling. |
Machine Learning
| Repo | Description |
|---|---|
| Rubix ML | Machine learning library for building algorithms and models. |
| php-ml | A PHP machine learning library. |
Computer Vision
| Repo | Description |
|---|
Vector Storage & RAG
| Repo | Description |
|---|---|
| qdrant-php | PHP client for the Qdrant vector similarity search engine. |
| chromadb-php | PHP client for the Chroma open-source embedding database. |
| php-rag | LLM-powered text generation with database-backed retrieval. |
| redis-vector-php | Redis Vector Library for LLM applications, based on Predis. |
| vector-storage | LLM Agents Vector Storage. |
Command Line Tools
| Repo | Description |
|---|---|
| ai-commit | Automagically generate conventional git commit messages with AI. |
| Laragenie | AI bot for the command line that reads and understands Laravel codebases. |
Video Processing
| Repo | Description |
|---|---|
| Subvert | Generate subtitles, summaries, and chapters from videos in seconds. |
API Clients
| Repo | Description |
|---|---|
| Google Cloud AI | Google Cloud AI services in PHP. |
| DeepL PHP | Official PHP library for the DeepL language translation API. |
| AWS Rekognition | Amazon Rekognition API for image and video analysis. |
Learning Resources
| Repo | Description |
|---|---|
| onnxruntime-php | ONNX Runtime - high performance scoring engine for ML models - for PHP. |
| YouTube AI Agent | AI agents for YouTube video summarization (Neuron framework example). |
| Elasticsearch ChatGPT PHP | Use ChatGPT to search in Elasticsearch using natural language. |
| PHP LLMs Book | Practical guide for PHP developers on integrating LLMs into projects. |
| Deep Research Agent | Deep research agent built with Neuron PHP AI framework. |
| PHP LLM Examples | Examples demonstrating GenAI and LLM usage in PHP. |
| SearchAugmentedLLM | Empowers LLMs with information from the web. |
| neuranotes-api | Note-taking app showcasing LLM, RAG integration, and scalable architecture. |
Tutorials & Documentation
- Fun With OpenAI and Laravel - Laracasts series on OpenAI with PHP and Laravel.
- PHP-ML Tutorials - Learn how to use PHP-ML for machine learning.
- Rubix ML Docs - Comprehensive documentation for Rubix ML.
Data Manipulation
| Repo | Description |
|---|---|
| brick/math | Arbitrary precision mathematics in PHP. |
| php-ds/ext-ds | PHP data structures extension for performance. |
Contributing
Contributions are welcome! Please follow these steps:
- Fork the repository
- Add your library/tool to
readme.json - Include
name,url,description,stars, andtags - Run
php generate-readme.php - Commit
readme.json,README.md, anddocs/index.html - Submit a pull request
Please ensure your submission is relevant to PHP and AI/ML/NLP.
License
To the extent possible under law, the contributors have waived all copyright and related rights to this work.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…