{"id":106083,"url":"https://github.com/garyblankenship/awesome-php-ai","name":"awesome-php-ai","description":"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.","projects_count":107,"last_synced_at":"2026-09-04T22:00:16.835Z","repository":{"id":268965795,"uuid":"906012902","full_name":"garyblankenship/awesome-php-ai","owner":"garyblankenship","description":"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.","archived":false,"fork":false,"pushed_at":"2026-08-01T14:43:19.000Z","size":109,"stargazers_count":46,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-08-16T04:06:01.846Z","etag":null,"topics":["ai","artificial-intelligence","awesome","awesome-list","computer-vision","generative-ai","llm","machine-learning","nlp","openai","php","rag","vector-database"],"latest_commit_sha":null,"homepage":"https://garyblankenship.github.io/awesome-php-ai/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/garyblankenship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-20T01:25:04.000Z","updated_at":"2026-08-01T14:43:24.000Z","dependencies_parsed_at":"2026-04-01T02:00:26.652Z","dependency_job_id":null,"html_url":"https://github.com/garyblankenship/awesome-php-ai","commit_stats":null,"previous_names":["garyblankenship/awesome-php-ai"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/garyblankenship/awesome-php-ai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garyblankenship%2Fawesome-php-ai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garyblankenship%2Fawesome-php-ai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garyblankenship%2Fawesome-php-ai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garyblankenship%2Fawesome-php-ai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/garyblankenship","download_url":"https://codeload.github.com/garyblankenship/awesome-php-ai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garyblankenship%2Fawesome-php-ai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":336071963,"owners_count":37021944,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-08-22T15:14:58.755Z","status":"online","status_checked_at":"2026-09-04T02:00:06.169Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"created_at":"2026-01-12T16:02:42.002Z","updated_at":"2026-09-04T22:00:16.836Z","primary_language":"PHP","list_of_lists":false,"displayable":true,"categories":["License","API Clients","LLM Clients \u0026 Adapters","Command Line Tools","Machine Learning","Libraries","Video Processing","Natural Language Processing","Data Manipulation","LLM Frameworks","Learning Resources","Vector Storage \u0026 RAG","Computer Vision"],"sub_categories":["Tutorials \u0026 Documentation","Utilities \u0026 Tools","Machine Learning","Laravel Integrations","Structured Output \u0026 Validation","AI Agents \u0026 Orchestration","Symfony Integrations","MCP \u0026 Agent Tooling"],"readme":"# Awesome PHP AI [![Awesome](https://awesome.re/badge.svg)](https://awesome.re)\n\n\u003e A curated list of awesome PHP libraries and tools for AI, Machine Learning, and Natural Language Processing.\n\nContributions welcome! Read the [contributing guidelines](#contributing) to get started.\n\n---\n\n## Table of Contents\n\n- [LLM Frameworks](#llm-frameworks)\n- [LLM Clients \u0026 Adapters](#llm-clients--adapters)\n- [Natural Language Processing](#natural-language-processing)\n- [Machine Learning](#machine-learning)\n- [Computer Vision](#computer-vision)\n- [Vector Storage \u0026 RAG](#vector-storage--rag)\n- [Command Line Tools](#command-line-tools)\n- [Video Processing](#video-processing)\n- [API Clients](#api-clients)\n- [Learning Resources](#learning-resources)\n\n---\n\n## LLM Frameworks\n\nFull-featured frameworks for building LLM-powered applications.\n\n| Repo | Description |\n|---------|-------------|\n| [Magic](https://github.com/dtyq/magic) | Open-source all-in-one AI productivity platform with agents, workflows, and collaboration. |\n| [Prism](https://github.com/prism-php/prism) | Unified interface for working with LLMs in Laravel applications. |\n| [Neuron AI](https://github.com/neuron-core/neuron-ai) | PHP Agentic Framework for production-ready AI applications with RAG and multi-agent workflows. |\n| [LLPhant](https://github.com/theodo-group/llphant) | Comprehensive PHP Generative AI Framework using OpenAI GPT-4. Inspired by Langchain. |\n| [langchain-php](https://github.com/kambo-1st/langchain-php) | Building applications with LLMs through composability in PHP. |\n| [Vizra ADK](https://github.com/vizra-ai/vizra-adk) | Build, test, and deploy intelligent AI agents the Laravel way. |\n| [Resonance](https://github.com/distantmagic/resonance) | High-performance PHP framework optimized for IO-intensive LLM applications. |\n| [LLM Chain](https://github.com/php-llm/llm-chain) | PHP library for building LLM-based and AI-based features and applications. |\n| [Lugha](https://github.com/devscast/lugha) | PHP Generative AI Framework to build chatbots, RAG systems and AI-powered applications. |\n| [EasyAI-PHP](https://github.com/HosonoDE/EasyAI-PHP) | Simplifies AI entry for PHP developers (LangChain-style). Based on PHP 8.1+. |\n| [EleLLM](https://github.com/wpai-inc/EleLLM) | A PHP framework that makes working with LLMs more pleasurable and accessible. |\n\n---\n\n## LLM Clients \u0026 Adapters\n\nClient libraries and provider integrations.\n\n| Repo | Description |\n|---------|-------------|\n| [OpenAI PHP](https://github.com/openai-php/client) | Supercharged community-maintained PHP API client for OpenAI. |\n| [OpenAI PHP SDK](https://github.com/orhanerday/open-ai) | Most downloaded PHP SDK for OpenAI GPT-3, DALL-E, and ChatGPT with streaming support. |\n| [DeepSeek PHP](https://github.com/deepseek-php/deepseek-php-client) | Community PHP client for the DeepSeek API. |\n| [Gemini PHP](https://github.com/google-gemini-php/client) | Community-maintained PHP API client for Gemini AI. |\n| [WordPress PHP AI Client](https://github.com/WordPress/php-ai-client) | Provider-agnostic PHP AI client SDK for any generative AI model. |\n| [Ollama PHP](https://github.com/ArdaGnsrn/ollama-php) | PHP client for Ollama, enabling local LLM deployment and interaction. |\n| [grok-php/laravel](https://github.com/grok-php/laravel) | Integrate Grok AI into Laravel with an elegant, developer-friendly package. |\n| [Anthropic Official SDK](https://github.com/anthropics/anthropic-sdk-php) | Official PHP SDK for the Anthropic Claude API. |\n| [Laravel OpenRouter](https://github.com/moe-mizrak/laravel-openrouter) | Laravel integration for OpenRouter's unified LLM API interface. |\n| [AI Access](https://github.com/aiaccess/ai-access) | Flexible PHP library for Gemini, OpenAI, Anthropic, DeepSeek, Grok via consistent interface. |\n| [Anthropic PHP](https://github.com/mozex/anthropic-php) | Community-maintained PHP API client for Anthropic (Claude) API with streaming, tool use, and batch processing. |\n| [aipi-php](https://github.com/skito/aipi-php) | Universal API client for common AI models. |\n| [Sidekick](https://github.com/PapaRascal2020/sidekick) | Laravel package with common syntax for Claude, Mistral, Cohere and OpenAI APIs. |\n| [LLM-Port-Laravel](https://github.com/BorahLabs/LLM-Port-Laravel) | Drop-in replacement wrapper for popular LLMs in Laravel. |\n| [RunAPI PHP SDK](https://github.com/runapi-ai/core-php) | Core Composer package for using RunAPI in PHP applications. |\n\n---\n\n## Natural Language Processing\n\n### Structured Output \u0026 Validation\n\n| Repo | Description |\n|---------|-------------|\n| [Instructor PHP](https://github.com/cognesy/instructor-php) | Unified LLM API, structured data outputs with LLMs, and agent SDK - in PHP. |\n| [instructrice](https://github.com/adrienbrault/instructrice) | Typed LLM outputs in PHP. Supports GPT, Claude, Gemini or any OpenAI-compatible provider. |\n\n### AI Agents \u0026 Orchestration\n\n| Repo | Description |\n|---------|-------------|\n| [LLM Agents](https://github.com/llm-agents-php/agents) | Build and manage LLM-based autonomous agents that perform complex tasks. |\n| [ai-team](https://github.com/sarfraznawaz2005/ai-team) | Create teams of AI members that collaborate to achieve common goals. |\n| [mulagent](https://github.com/FunkyOz/mulagent) | Multi-agent orchestration with routines and handoffs. |\n\n### MCP \u0026 Agent Tooling\n\n| Repo | Description |\n|---------|-------------|\n| [Laravel Boost](https://github.com/laravel/boost) | Laravel-focused MCP server for augmenting AI-powered local development. |\n| [MCP PHP SDK](https://github.com/modelcontextprotocol/php-sdk) | Official Model Context Protocol SDK for PHP clients and servers. |\n| [php-mcp/server](https://github.com/php-mcp/server) | PHP SDK for building Model Context Protocol servers with tools, resources, and prompts. |\n| [Laravel MCP](https://github.com/laravel/mcp) | Build MCP servers for Laravel applications. |\n| [php-mcp/laravel](https://github.com/php-mcp/laravel) | Laravel SDK for building Model Context Protocol servers. |\n| [mcp-sdk-php](https://github.com/logiscape/mcp-sdk-php) | Model Context Protocol SDK for PHP. |\n| [Laravel MCP Server](https://github.com/opgginc/laravel-mcp-server) | Laravel package for implementing Model Context Protocol servers. |\n| [CTX Generator](https://github.com/context-hub/generator) | Tool that solves context management when working with LLMs - organizes codebase info for AI assistants. |\n| [Prism Relay](https://github.com/prism-php/relay) | MCP client tool for Prism applications. |\n| [Laravel Agent Detector](https://github.com/laravel/agent-detector) | Detect whether PHP code is running inside an AI agent or automated development environment. |\n| [php-mcp/client](https://github.com/php-mcp/client) | PHP client for the Model Context Protocol. |\n| [Xdebug MCP](https://github.com/koriym/xdebug-mcp) | PHP Xdebug MCP server with AI-optimized debugging support. |\n| [Symfony MCP SDK](https://github.com/symfony/mcp-sdk) | Model Context Protocol SDK for Client and Server applications in PHP. |\n| [Symfony MCP Bundle](https://github.com/symfony/mcp-bundle) | Official Symfony integration bundle for Model Context Protocol. |\n| [mcp-php](https://github.com/garyblankenship/mcp-php) | Setting up a Model Context Protocol (MCP) Server in Laravel. |\n| [MCP Client Laravel](https://github.com/RedberryProducts/mcp-client-laravel) | Laravel-native client for MCP servers. |\n\n### Laravel Integrations\n\n| Repo | Description |\n|---------|-------------|\n| [OpenAI PHP Laravel](https://github.com/openai-php/laravel) | Laravel integration for the OpenAI PHP client. |\n| [Laravel AI](https://github.com/laravel/ai) | Official Laravel package for AI integration. |\n| [LarAgent](https://github.com/MaestroError/LarAgent) | Build AI agents inside Laravel applications. |\n| [Gemini PHP Laravel](https://github.com/google-gemini-php/laravel) | Laravel integration for the Gemini PHP client. |\n| [Neuron Laravel](https://github.com/neuron-core/neuron-laravel) | Official Neuron AI Laravel SDK. |\n| [Laravel AI Guard](https://github.com/subhashladumor1/laravel-ai-guard) | Control and optimize AI costs in Laravel - track token usage, enforce budgets. |\n| [Taskallama](https://github.com/coding-wisely/taskallama) | Laravel integration with Ollama's LLM API for content generation. |\n| [ai-translations-for-laravel](https://github.com/Capevace/ai-translations-for-laravel) | Automatically translate Laravel language files using LLMs. |\n| [laravel-prompt-manager](https://github.com/prismaticoder/laravel-prompt-manager) | Simplify prompt management for AI engineers using Laravel. |\n| [laravel-llm-prompt](https://github.com/SabatinoMasala/laravel-llm-prompt) | Laravel LLM prompt manager. |\n| [laravel-prompt-alchemist](https://github.com/moe-mizrak/laravel-prompt-alchemist) | Versatile LLM Tool Use (Function Calling) for Laravel, compatible with all LLMs. |\n| [llm-magic](https://github.com/Capevace/llm-magic) | LLM-agnostic AI toolkit for Laravel. |\n| [LaravelLLMContext](https://github.com/jeremysalmon/LaravelLLMContext) | Artisan command to generate LLM context for a Laravel project. |\n| [llm](https://github.com/artisan-build/llm) | Laravel integrations for various LLM providers. |\n\n### Symfony Integrations\n\n| Repo | Description |\n|---------|-------------|\n| [Symfony AI Platform](https://github.com/symfony/ai-platform) | PHP library for interacting with AI platform providers. |\n| [LLM Chain Bundle](https://github.com/php-llm/llm-chain-bundle) | Symfony bundle for seamless integration of the LLM Chain library. |\n| [Symfony AI Agent](https://github.com/symfony/ai-agent) | PHP library for building agentic applications. |\n| [Symfony AI Bundle](https://github.com/symfony/ai-bundle) | Integration bundle for Symfony AI components. |\n\n### Utilities \u0026 Tools\n\n| Repo | Description |\n|---------|-------------|\n| [cocur/slugify](https://github.com/cocur/slugify) | Converts strings into slugs. |\n| [NlpTools](https://github.com/angeloskath/php-nlp-tools) | Collection of NLP tools and APIs for working with text. |\n| [transformers-php](https://github.com/CodeWithKyrian/transformers-php) | Toolkit for PHP developers to add machine learning magic easily. |\n| [whisper.php](https://github.com/CodeWithKyrian/whisper.php) | Local speech-to-text in PHP using Whisper.cpp. |\n| [tiktoken-php](https://github.com/yethee/tiktoken-php) | PHP implementation of OpenAI token counting with tiktoken. |\n| [TOON PHP](https://github.com/HelgeSverre/toon-php) | Token-Oriented Object Notation - compact data format for reducing token consumption with LLMs. |\n| [Prompt Deck](https://github.com/promptphp/deck) | Laravel package for versioned AI prompt management with variables and tracking. |\n| [php-ai-tool-bridge](https://github.com/manuelkiessling/php-ai-tool-bridge) | AI integration to interact with your own code and services. |\n| [single-file-php-ai](https://github.com/mariorazo97/single-file-php-ai) | Drop-in, single-file PHP chat interface for Ollama/OpenAI. No Node.js, no Docker. |\n| [php-llm-documents](https://github.com/thojou/php-llm-documents) | Brings LLM functionality for document processing. |\n| [prompt-generator](https://github.com/llm-agents-php/prompt-generator) | Prompt generator for LLM agents with interceptors. |\n| [fabric-pattern](https://github.com/php-llm/fabric-pattern) | Slim PHP wrapper for Daniel Miessler's fabric pattern. |\n| [fireworksai-adapter](https://github.com/modelflow-ai/fireworksai-adapter) | Adapter for open-source models hosted by fireworks.ai. |\n| [php-llm-json-adapter](https://github.com/takaaki-mizuno/php-llm-json-adapter) | JSON output adapter for LLMs that lack native function calling. |\n\n---\n\n## Machine Learning\n\n| Repo | Description |\n|---------|-------------|\n| [Rubix ML](https://github.com/RubixML/ML) | Machine learning library for building algorithms and models. |\n| [php-ml](https://github.com/jorgecasas/php-ml) | A PHP machine learning library. |\n\n---\n\n## Computer Vision\n\n| Repo | Description |\n|---------|-------------|\n| [opencv/opencv-php](https://github.com/php-opencv/php-opencv) | OpenCV bindings for PHP for image processing and computer vision. |\n\n---\n\n## Vector Storage \u0026 RAG\n\n| Repo | Description |\n|---------|-------------|\n| [qdrant-php](https://github.com/hkulekci/qdrant-php) | PHP client for the Qdrant vector similarity search engine. |\n| [chromadb-php](https://github.com/CodeWithKyrian/chromadb-php) | PHP client for the Chroma open-source embedding database. |\n| [php-rag](https://github.com/rzarno/php-rag) | LLM-powered text generation with database-backed retrieval. |\n| [redis-vector-php](https://github.com/redis-applied-ai/redis-vector-php) | Redis Vector Library for LLM applications, based on Predis. |\n| [vector-storage](https://github.com/llm-agents-php/vector-storage) | LLM Agents Vector Storage. |\n\n---\n\n## Command Line Tools\n\n| Repo | Description |\n|---------|-------------|\n| [ai-commit](https://github.com/guanguans/ai-commit) | Automagically generate conventional git commit messages with AI. |\n| [Laragenie](https://github.com/joshembling/laragenie) | AI bot for the command line that reads and understands Laravel codebases. |\n\n---\n\n## Video Processing\n\n| Repo | Description |\n|---------|-------------|\n| [Subvert](https://github.com/aschmelyun/subvert) | Generate subtitles, summaries, and chapters from videos in seconds. |\n\n---\n\n## API Clients\n\n| Repo | Description |\n|---------|-------------|\n| [Google Cloud AI](https://github.com/googleapis/google-cloud-php) | Google Cloud AI services in PHP. |\n| [DeepL PHP](https://github.com/DeepLcom/deepl-php) | Official PHP library for the DeepL language translation API. |\n| [AWS Rekognition](https://aws.amazon.com/rekognition/) | Amazon Rekognition API for image and video analysis. |\n\n---\n\n## Learning Resources\n\n| Repo | Description |\n|---------|-------------|\n| [onnxruntime-php](https://github.com/ankane/onnxruntime-php) | ONNX Runtime - high performance scoring engine for ML models - for PHP. |\n| [Elasticsearch ChatGPT PHP](https://github.com/elastic/elasticsearch-chatgpt-php) | Use ChatGPT to search in Elasticsearch using natural language. |\n| [YouTube AI Agent](https://github.com/neuron-core/youtube-ai-agent) | AI agents for YouTube video summarization (Neuron framework example). |\n| [PHP LLMs Book](https://github.com/alnutile/php-llms) | Practical guide for PHP developers on integrating LLMs into projects. |\n| [Deep Research Agent](https://github.com/neuron-core/deep-research-agent) | Deep research agent built with Neuron PHP AI framework. |\n| [PHP LLM Examples](https://github.com/ezimuel/php-llm-examples) | Examples demonstrating GenAI and LLM usage in PHP. |\n| [SearchAugmentedLLM](https://github.com/EliasPereirah/SearchAugmentedLLM) | Empowers LLMs with information from the web. |\n| [neuranotes-api](https://github.com/waponix/neuranotes-api) | Note-taking app showcasing LLM, RAG integration, and scalable architecture. |\n\n### Tutorials \u0026 Documentation\n\n- [Fun With OpenAI and Laravel](https://laracasts.com/series/fun-with-openai-and-laravel) - Laracasts series on OpenAI with PHP and Laravel.\n- [PHP-ML Tutorials](https://php-ml.readthedocs.io/en/latest/tutorials/) - Learn how to use PHP-ML for machine learning.\n- [Rubix ML Docs](https://docs.rubixml.com/) - Comprehensive documentation for Rubix ML.\n\n---\n\n## Data Manipulation\n\n| Repo | Description |\n|---------|-------------|\n| [brick/math](https://github.com/brick/math) | Arbitrary precision mathematics in PHP. |\n| [php-ai/php-ds](https://github.com/php-ds) | PHP data structures extension for performance. |\n\n---\n\n## Contributing\n\nContributions are welcome! Please follow these steps:\n\n1. Fork the repository\n2. Add your library/tool to `readme.json`\n3. Include `name`, `url`, `description`, `stars`, and `tags`\n4. Run `php generate-readme.php`\n5. Commit `readme.json`, `README.md`, and `docs/index.html`\n6. Submit a pull request\n\nPlease ensure your submission is relevant to PHP and AI/ML/NLP.\n\n---\n\n## License\n\n[![CC0](https://mirrors.creativecommons.org/presskit/buttons/88x31/svg/cc-zero.svg)](https://creativecommons.org/publicdomain/zero/1.0/)\n\nTo the extent possible under law, the contributors have waived all copyright and related rights to this work.\n","projects_url":"https://awesome.ecosyste.ms/api/v1/lists/garyblankenship%2Fawesome-php-ai/projects"}