Skip to content

garyblankenship/awesome-php-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Awesome PHP AI Awesome

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

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.
Resonance High-performance PHP framework optimized for IO-intensive LLM applications.
LLM Chain PHP library for building LLM-based and AI-based features and applications.
Lugha PHP Generative AI Framework to build chatbots, RAG systems and AI-powered applications.
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.
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.
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.
LLM-Port-Laravel Drop-in replacement wrapper for popular LLMs in Laravel.

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.

Laravel Integrations

Repo Description
Laravel AI Official Laravel package for AI integration.
Laravel MCP Server Laravel package for implementing Model Context Protocol servers.
Neuron Laravel Official Neuron AI Laravel SDK.
Laravel AI Guard Control and optimize AI costs in Laravel - track token usage, enforce budgets.
MCP Client Laravel Laravel-native client for MCP servers.
Taskallama Laravel integration with Ollama's LLM API for content generation.
ai-translations-for-laravel Automatically translate Laravel language files using LLMs.
laravel-prompt-manager Simplify prompt management for AI engineers using Laravel.
llm-magic LLM-agnostic AI toolkit for Laravel.
laravel-llm-prompt Laravel LLM prompt manager.
laravel-prompt-alchemist Versatile LLM Tool Use (Function Calling) for Laravel, compatible with all LLMs.
LaravelLLMContext Artisan command to generate LLM context for a Laravel project.
llm Laravel integrations for various LLM providers.

Symfony Integrations

Repo Description
Symfony AI Platform PHP library for interacting with AI platform providers.
Symfony MCP SDK Model Context Protocol SDK for Client and Server applications in PHP.
LLM Chain Bundle Symfony bundle for seamless integration of the LLM Chain library.
Symfony MCP Bundle Official Symfony integration bundle for Model Context Protocol.
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.
NlpTools Collection of NLP tools and APIs for working with text.
transformers-php Toolkit for PHP developers to add machine learning magic easily.
CTX Generator Tool that solves context management when working with LLMs - organizes codebase info for AI assistants.
TOON PHP Token-Oriented Object Notation - compact data format for reducing token consumption with LLMs.
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.
mcp-php Setting up a Model Context Protocol (MCP) Server in Laravel.
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.
php-llm-json-adapter JSON output adapter for LLMs that lack native function calling.
fireworksai-adapter Adapter for open-source models hosted by fireworks.ai.

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
opencv/opencv-php OpenCV bindings for PHP for image processing and computer vision.

Vector Storage & RAG

Repo Description
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.
Elasticsearch ChatGPT PHP Use ChatGPT to search in Elasticsearch using natural language.
YouTube AI Agent AI agents for YouTube video summarization (Neuron framework example).
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


Data Manipulation

Repo Description
brick/math Arbitrary precision mathematics in PHP.
php-ai/php-ds PHP data structures extension for performance.

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Add your library/tool to the appropriate section
  3. Include the library name, GitHub link, and a brief description
  4. Submit a pull request

Please ensure your submission is relevant to PHP and AI/ML/NLP.


License

CC0

To the extent possible under law, the contributors have waived all copyright and related rights to this work.

About

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.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages