#97 · Primary category: LLM Application Frameworks
php-sdk
The official PHP SDK for Model Context Protocol servers and clients. Maintained in collaboration with The PHP Foundation.
Project last updated:08/29/26
GitHub Stars
1.6K
Forks
167
Contributors
50
License
Other
Why we included this project
PHP teams building applications that need to talk to AI agents get a framework-agnostic path here: one SDK covering both sides of the Model Context Protocol. Use it to build a server that hands parts of your application to agents, such as tools, resources, or prompt templates, or a client that connects to external MCP servers and calls into them. The attribute-based API is refreshingly direct: mark a plain PHP method with a tool attribute and the SDK handles discovery and protocol negotiation for you. It ships with STDIO and HTTP transports and pluggable session backends, so the same code runs as a local CLI process or as a scaled web service. As the official implementation, developed with the PHP Foundation and Symfony, it tracks the protocol closely and follows Symfony's backward-compatibility promise, but it stays experimental until the first major release; for most PHP teams that trade-off still makes it the sensible default.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
langchain
The agent engineering platform.
dify
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
headroom
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
litellm
The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
llama_index
LlamaIndex is the leading document agent and OCR platform