How Taphra compares
A fair comparison with the PHP frameworks you are most likely to consider. Where another framework is the better choice, this page says so. Versions were checked on 29 November 2026.
The short version
Taphra trades ecosystem size for speed, a complete stack in one install, and explicit code. On our benchmarks it serves about twice the requests per second of Symfony and four to six times those of Laravel, and it ships billing, AI providers, an agent loop and an MCP server in the same install. It has less convention to lean on than Laravel or CakePHP, far fewer third-party packages and learning resources than Laravel or Symfony, and none of their years in production.
If those years and that ecosystem are what your project needs, choose one of them. If you want speed, AI and billing in one install, with defaults that keep agent-written code safe, Taphra is built for that.
When Taphra is the better choice
- Coding agents write much of your code. The framework is small enough for an agent to read instead of guess, every starter ships an
AGENTS.md, the docs are published as llms.txt, and the safe path is the default, so review is about decisions rather than plumbing. - You want AI features or an MCP server in a PHP app. Providers, streaming, an agent loop, structured output and an MCP server over stdio and HTTP are in the same install, using the same DataStores, validation and auth as the rest of the app.
- You want speed on ordinary hosting. On our benchmarks (php-fpm, each framework in its production setup, same machine) Taphra served about 2 times the requests per second of Symfony and 4 to 6 times those of Laravel. Method and raw results.
- You want one install, not a parts list. Auth with two-factor login, queues, email, localisation, a scheduler and Stripe billing come together, tested and versioned together.
- You want to reuse the parts. The database layer, validator, container, crypt, localisation, AI and billing libraries also install on their own, in any PHP app.
- You deploy where PHP already runs. Shared hosting, php-fpm behind nginx or Apache, Docker, or FrankenPHP's worker mode, with no build step.
Features side by side
What each framework gives you, and how: in the framework itself, as an official package, or through a community package. Each cell links to its source; hover a cell for notes.
| Feature | Taphra 1.0 | Laravel 13 | Symfony 8.2 | CodeIgniter 4.7 | Slim 4.15 |
|---|---|---|---|---|---|
| HTML templates | Built in: Plain PHP views, layouts | Built in: Blade | Built in: Twig | Built in: Views, View Parser | Official package: Twig-View, PHP-View |
| ORM and query builder | Built in: DataStores, query builder | Built in: Eloquent ORM | Built in: Doctrine ORM | Built in: Model, Query Builder | Community package: Doctrine |
| Migrations | Built in: Migrations, SchemaBuilder | Built in: Migrations | Built in: Doctrine Migrations | Built in: Migrations | Community package: Phinx |
| Validation | Built in: Validator, form requests | Built in: Validator, form requests | Built in: Validator component | Built in: Validation library | Community package: Respect Validation |
| Login and auth | Built in: Session and JWT, TOTP, policies | Built in: Auth guards, starter kits | Built in: Security bundle | Official package: Shield | None: None |
| Background jobs | Built in: Queues: Redis, database, Beanstalkd | Built in: Queues | Built in: Messenger | Official package: CodeIgniter Queue | None: None |
| Real-time push | Built in: Server-Sent Events (no WebSockets) | Official package: Reverb (WebSockets) | Official package: Mercure (server push) | None: None | None: None |
| Admin panel | None: Planned for 1.2 | Official package: Nova (paid) | Community package: EasyAdmin | None: None | None: None |
| OpenAPI from code | Built in: route:openapi | Community package: Scramble | Community package: NelmioApiDocBundle | Community package: swagger-php | Community package: swagger-php |
| LLM providers and agents | Built in: Anthropic, OpenAI, Ollama, agent loop | Official package: Laravel AI SDK | Official package: Symfony AI (beta) | Community package: Neuron AI | Community package: Neuron AI |
| MCP server | Built in: stdio and Streamable HTTP | Official package: Laravel MCP | Official package: MCP bundle (beta) | Community package: MCP PHP SDK | Community package: MCP PHP SDK |
| Subscription billing | Built in: Stripe | Official package: Cashier | None: None | None: None | None: None |
| Worker mode | Built in: FrankenPHP worker mode | Official package: Octane | Built in: Runtime, FrankenPHP worker | Built in: Worker mode (FrankenPHP) | Community package: FrankenPHP worker script |
- Built in
- Official package
- Community package
- None
Checked against each project's documentation on 29 November 2026. Where a community package is named, it is the most used one we found, not the only one.
Laravel 13
A widely used full-stack framework with a very large ecosystem around it.
Where Laravel is stronger
- A very large ecosystem, with first-party packages for queue monitoring (Horizon), billing (Cashier), worker mode (Octane), WebSockets (Reverb), search (Scout) and API auth, plus AI and MCP packages.
- A polished developer experience. Eloquent and Blade are more expressive than DataStores and plain PHP views, and starter kits get a full app with auth running in minutes.
- Livewire and Inertia for interactive interfaces without a separate API.
- Courses, books, hosting services and a large pool of developers to hire.
Where Taphra is stronger
- Explicit wiring: helpers such as Auth and Request are plain classes, so "go to definition" lands on the code that runs.
- More requests per second on our benchmarks: about 6 times Laravel on the plain response and 4 times on the database test (php-fpm, each framework in its production setup, same machine).
- AI providers, an agent loop, an MCP server and Stripe billing in the one install, sharing its DataStores, validation and auth.
- An AGENTS.md in every starter and the docs as llms.txt, so coding agents follow its conventions from the first prompt.
Taphra is smaller and more explicit, with fewer layers between the code you write and the code that runs. Billing, AI providers and the MCP server are part of the one install rather than separate packages.
Choose Laravel if ecosystem, hiring and speed of building CRUD-heavy apps matter most to you.
Choose Taphra if you want a faster, lighter stack with AI, MCP and billing in the one install.
Symfony 8.2
A set of reusable components and a full-stack framework built from them.
Where Symfony is stronger
- Components used across the PHP world, including inside Laravel and Taphra, which uses Symfony Console and YAML.
- Long-term support releases with published end dates, which large organisations plan around.
- Doctrine ORM for complex domain models, Messenger for queues, and a mature profiler.
- Structure that holds up in large, long-lived codebases with big teams.
Where Taphra is stronger
- Fewer concepts: no bundles, no compiled container, one YAML file per concern.
- More requests per second on our benchmarks: about twice Symfony on every test (php-fpm, each framework in its production setup, same machine).
- AI providers, an agent loop and an MCP server that are part of the 1.0 release, not experimental.
- Billing, queues, auth with TOTP and generators in one install, without assembling components.
Taphra has fewer concepts to learn: no bundles, no compiled container and less configuration. It suits teams that want one small stack rather than a toolkit to assemble. Symfony AI and its MCP bundle exist but are marked experimental; in Taphra the AI layer is part of the framework.
Choose Symfony for large, long-lived applications, complex domains and when LTS guarantees matter.
Choose Taphra if you want one stack with AI included, rather than a toolkit to assemble and configure.
Slim 4.15
A micro-framework: routing, PSR-7 messages and PSR-15 middleware.
Where Slim is stronger
- Minimal and unopinionated. You pick every other library yourself.
- A very small surface to learn and audit for a small API or a single service.
Where Taphra is stronger
- The rest of the stack included and tested together: ORM, migrations, validation, auth, queues, email, a CLI with generators, AI and MCP.
- More requests per second than Slim on three of our four benchmarks (plain response, JSON and HTML). Slim is faster on the database test.
- Starters that run with one command, with safe defaults already wired.
Taphra uses the same PSR-7 and PSR-15 model, so the concepts carry over, and adds what you would otherwise assemble: an ORM, migrations, validation, auth, queues, a CLI with generators and the AI layer.
Choose Slim when you want routing and middleware only, and prefer to build the rest of your stack yourself.
Choose Taphra if you like the PSR model but would rather not pick and wire ten libraries yourself.
CodeIgniter 4.7
A lightweight full-stack framework known for being easy to learn.
Where CodeIgniter is stronger
- A gentle learning curve and clear, thorough documentation.
- A long history and a large community, with many tutorials and answers online.
- A small footprint that runs comfortably on shared hosting.
Where Taphra is stronger
- PSR-7 requests, PSR-15 middleware and a PSR-11 container, so libraries from other projects plug in.
- 1.6 to 2 times the requests per second of CodeIgniter on our benchmarks (php-fpm, each framework in its production setup, same machine).
- JWT and session auth, TOTP, billing, AI providers and an MCP server in the one install.
Both are light, full-stack and easy to deploy. Taphra builds on PSR-7, PSR-15 and PSR-11, so middleware and containers from other projects plug in, and it includes billing, AI providers and an MCP server.
Choose CodeIgniter if a gentle start and a large, established community matter more than built-in AI and billing.
Choose Taphra if you want the same lightness with PSR interfaces, AI and billing included.
CakePHP 5.4
A convention-over-configuration framework with a long track record.
Where CakePHP is stronger
- Strong conventions applied across the whole framework, so apps look alike.
- A mature ORM with rich associations.
- Bake, which generates complete CRUD including templates.
Where Taphra is stronger
- Fewer concepts to learn, explicit wiring, and 21 generators for the usual files.
- AI providers, an agent loop and an MCP server in the same install as the rest of the app.
Taphra also leans on conventions and generators, but keeps wiring explicit and the codebase small, and adds the AI and MCP layer.
Choose CakePHP if you want strict conventions and generated CRUD screens.
Choose Taphra if you want conventions and generators with less framework to learn, and AI built in.
Yii 2.0 and Yii3
Yii 2 is a mature full-stack framework; Yii3 is a set of independent PSR-based packages.
Where Yii is stronger
- Yii 2: Gii code generation, Active Record, role-based access control and years of production use.
- Yii3: a modern, package-by-package design built on PSR standards, released at the end of 2025.
Where Taphra is stronger
- One install with everything tested together, unlike Yii3's packages that you compose yourself.
- AI providers, an agent loop and an MCP server built in.
Taphra sits between the two: one install like Yii 2, PSR interfaces like Yii3, with the AI layer included.
Choose Yii 2 for an established full-stack framework with a long record, or Yii3 if you want to compose PSR packages.
Choose Taphra if you want PSR interfaces and a full stack in one install.
AI and MCP in PHP
PHP has several good options for AI features and MCP servers. Taphra's are built into the framework and share its DataStores, validation and auth. The others below are well worth knowing.
| Option | What it is |
|---|---|
| Taphra | Anthropic, OpenAI, OpenAI-compatible servers and Ollama with token streaming, conversations, an agent loop, structured output, and an MCP server over stdio and Streamable HTTP, all in the framework. taphra/ai also installs on its own. |
| laravel/mcp | First-party package for building MCP servers in Laravel apps. v1.3.0, 23 November 2026. |
| laravel/ai | First-party AI SDK for Laravel. v1.4.2, 23 November 2026. |
| mcp/sdk | The official PHP SDK for the Model Context Protocol, built with the PHP Foundation. Marked experimental; v0.10.0, 10 November 2026. |
| Symfony AI | Agent, Platform and Store components plus AI and MCP bundles. Marked experimental; 1.0.0-BETA1 on 26 October 2026. |
| Prism | Community package for working with LLM providers in Laravel. v0.103.0, 7 November 2026. |
On Laravel, laravel/mcp is the natural choice. For an MCP server in any PHP app, the official SDK is framework-neutral. Choose Taphra's if you want the AI layer and the rest of the app in one small codebase.
Next to Rails, Django, FastAPI and NestJS
The same features in the frameworks most often chosen in Ruby, Python and TypeScript.
| Feature | Taphra 1.0 | Rails 8.1 | Django 6.1 | FastAPI 0.165 | NestJS 12.6 |
|---|---|---|---|---|---|
| HTML templates | Built in: Plain PHP views, layouts | Built in: Action View (ERB) | Built in: Django templates | Built in: Jinja2 via Starlette | Community package: Express or Fastify view engine |
| ORM and query builder | Built in: DataStores, query builder | Built in: Active Record | Built in: Django ORM | Official package: SQLModel | Community package: TypeORM, Prisma, others |
| Migrations | Built in: Migrations, SchemaBuilder | Built in: Migrations | Built in: Migrations | Community package: Alembic | Community package: TypeORM migrations |
| Validation | Built in: Validator, form requests | Built in: Validations | Built in: Forms, validators | Built in: Pydantic | Built in: ValidationPipe |
| Login and auth | Built in: Session and JWT, TOTP, policies | Built in: Authentication generator | Built in: django.contrib.auth | Built in: Security utilities only | Official package: @nestjs/authentication |
| Background jobs | Built in: Queues: Redis, database, Beanstalkd | Built in: Active Job, Solid Queue | Built in: Tasks API, no worker | Built in: Background tasks, in-process | Official package: @nestjs/bullmq |
| Real-time push | Built in: Server-Sent Events (no WebSockets) | Built in: Action Cable | Official package: Channels | Built in: WebSockets | Official package: WebSocket gateways |
| Admin panel | None: Planned for 1.2 | Community package: ActiveAdmin | Built in: Django admin | Community package: SQLAdmin | Community package: AdminJS |
| OpenAPI from code | Built in: route:openapi | Community package: rswag | Community package: drf-spectacular | Built in: Automatic | Official package: @nestjs/swagger |
| LLM providers and agents | Built in: Anthropic, OpenAI, Ollama, agent loop | Community package: RubyLLM | Community package: LangChain | Community package: LangChain | Official package: @nestjs/ai (0.x) |
| MCP server | Built in: stdio and Streamable HTTP | Community package: MCP Ruby SDK | Community package: MCP Python SDK | Community package: FastMCP | Official package: @nestjs/mcp (0.x) |
| Subscription billing | Built in: Stripe | Community package: Pay | Community package: dj-stripe | None: None | None: None |
| Worker mode | Built in: FrankenPHP worker mode | Not needed: Long-running by default | Not needed: Long-running by default | Not needed: Long-running by default | Not needed: Long-running by default |
- Built in
- Official package
- Community package
- None
When another language fits better
- Real-time apps built around WebSockets. Node.js or Go handle many long-lived connections in one process. A common pattern is a Taphra app for requests plus a small WebSocket service, sharing Redis.
- Data science, RAG pipelines and model work. Python's libraries for embeddings, vector stores and evaluation are far broader.
- Types shared between server and browser. A TypeScript stack shares types end to end; PHP and JavaScript cannot.
Who Taphra is for
A good fit for PHP teams who want speed and a complete stack in one install, use coding agents and review what they write, want AI features or an MCP server without a second language, and deploy where PHP already runs.
Not a good fit if you need the largest ecosystem and hiring pool, WebSockets at the core of the product, a mature queue dashboard for heavy background pipelines, or long-term support guarantees beyond what a 1.0 project can offer today.