PHPackages                             ez-php/framework - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. ez-php/framework

ActiveLibrary[Framework](/categories/framework)

ez-php/framework
================

Lightweight PHP framework core — dependency injection, routing, middleware, and database migrations

1.11.1(1mo ago)03.6k↓90%7MITPHPPHP ^8.5CI passing

Since Mar 15Pushed 1mo agoCompare

[ Source](https://github.com/ez-php/framework)[ Packagist](https://packagist.org/packages/ez-php/framework)[ Docs](https://github.com/ez-php/framework)[ RSS](/packages/ez-php-framework/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (26)Versions (47)Used By (7)

ez-php/framework
================

[](#ez-phpframework)

Lightweight PHP framework core — dependency injection, routing, middleware, and database migrations.

[![CI](https://github.com/ez-php/framework/actions/workflows/ci.yml/badge.svg)](https://github.com/ez-php/framework/actions/workflows/ci.yml)

Requirements
------------

[](#requirements)

- PHP 8.5+
- ext-pdo

Installation
------------

[](#installation)

```
composer require ez-php/framework
```

What's included
---------------

[](#whats-included)

ModuleDescription`Application`Runtime kernel, bootstrap lifecycle, service provider loading`Container`Dependency injection with autowiring`ServiceProvider`Register/boot pattern for modular configuration`Http`Immutable `Request` / `Response`, `RequestFactory``Routing`Router with named routes, route groups, and URL parameter support`Middleware`Pipeline-based middleware with terminable support`Database`Thin PDO wrapper with transactions`Migration`File-based migration runner with batch rollback`Config`Dot-notation config loader`Console`CLI kernel with command registration`Env``.env` file parser with variable interpolation`Exceptions`Exception handler with service provider integrationQuick start
-----------

[](#quick-start)

```
$app = new \EzPhp\Application\Application(basePath: __DIR__);
$app->register(AppServiceProvider::class);
$app->bootstrap();

$response = $app->handle(\EzPhp\Http\RequestFactory::fromGlobals());
(new \EzPhp\Http\ResponseEmitter())->emit($response);
```

Routing
-------

[](#routing)

### Basic routes

[](#basic-routes)

```
$router->get('/users', fn (Request $r): Response => ...);
$router->post('/users', [UserController::class, 'store']);
$router->put('/users/{id}', fn (Request $r): Response => ...);
$router->patch('/users/{id}', fn (Request $r): Response => ...);
$router->delete('/users/{id}', fn (Request $r): Response => ...);
```

### Route groups

[](#route-groups)

```
$router->group('/admin', function (Router $r): void {
    $r->get('/dashboard', fn (): Response => ...);
    $r->get('/users', fn (): Response => ...);
}, middleware: [AuthMiddleware::class]);
```

### Named routes and URL generation

[](#named-routes-and-url-generation)

```
$router->get('/users/{id}', fn (): Response => ...)->name('users.show');

$url = $router->route('users.show', ['id' => 42]); // '/users/42'
```

### HTTP method override (`_method`)

[](#http-method-override-_method)

HTML forms only support `GET` and `POST`. To send `PUT`, `PATCH`, or `DELETE` from a form, add a hidden `_method` field to a `POST` form:

```

```

The router reads `_method` from the parsed request body and overrides the HTTP method before route matching.

> **Security note:** `_method` is only evaluated for `POST` requests. Because it is read from the parsed body (`$_POST`), it is only effective when the form is submitted as `application/x-www-form-urlencoded` or `multipart/form-data`. JSON requests and requests with other content types are **not** affected.

Optional modules
----------------

[](#optional-modules)

- [ez-php/orm](https://github.com/ez-php/orm) — Data Mapper ORM, Query Builder, Schema Builder
- [ez-php/auth](https://github.com/ez-php/auth) — Session, Bearer token, JWT, and personal access token authentication
- [ez-php/cache](https://github.com/ez-php/cache) — Array, File, Redis, and Memcached drivers; tags, locks, stampede protection
- [ez-php/events](https://github.com/ez-php/events) — Synchronous event bus, static `Event` façade, stoppable events
- [ez-php/i18n](https://github.com/ez-php/i18n) — Locale-based translator, dot-notation keys, `LocaleFormatter`
- [ez-php/validation](https://github.com/ez-php/validation) — Rule-based validator, `FormRequest`, optional DB/translator integration
- [ez-php/http-client](https://github.com/ez-php/http-client) — Fluent cURL HTTP client, static `Http` façade, pluggable transport
- [ez-php/logging](https://github.com/ez-php/logging) — Structured logger, File/JSON/Stack/Null drivers, `RequestContextMiddleware`
- [ez-php/mail](https://github.com/ez-php/mail) — Transactional email, SMTP/Mailgun/SendGrid/Log/Null drivers
- [ez-php/view](https://github.com/ez-php/view) — PHP template engine, layouts, sections, partials
- [ez-php/queue](https://github.com/ez-php/queue) — Async job queue, database and Redis drivers, failed-job management
- [ez-php/rate-limiter](https://github.com/ez-php/rate-limiter) — Rate limiting, Array/Redis/CacheDelegate drivers, `ThrottleMiddleware`
- [ez-php/scheduler](https://github.com/ez-php/scheduler) — Cron-based job scheduler with File/Database mutex overlap prevention
- [ez-php/broadcast](https://github.com/ez-php/broadcast) — Real-time event broadcasting, SSE helpers, Null/Log/Redis/Array drivers
- [ez-php/search](https://github.com/ez-php/search) — Full-text search, Meilisearch/Elasticsearch/Typesense drivers
- [ez-php/notification](https://github.com/ez-php/notification) — Multi-channel notifications (mail, broadcast, database)
- [ez-php/storage](https://github.com/ez-php/storage) — File storage abstraction, Local and S3 drivers
- [ez-php/health](https://github.com/ez-php/health) — `/health` endpoint with DB, Redis, and Queue probes
- [ez-php/feature-flags](https://github.com/ez-php/feature-flags) — Feature flag evaluation, File/Database/Array drivers
- [ez-php/audit](https://github.com/ez-php/audit) — Event-driven audit log, `AuditLogger`, `AuditQuery`
- [ez-php/metrics](https://github.com/ez-php/metrics) — Prometheus metrics endpoint, Counter/Gauge/Histogram
- [ez-php/websocket](https://github.com/ez-php/websocket) — RFC 6455 WebSocket server, PHP 8.5 Fibers
- [ez-php/bignum](https://github.com/ez-php/bignum) — Arbitrary-precision integers and decimals
- [ez-php/graphql](https://github.com/ez-php/graphql) — GraphQL endpoint, SchemaBuilder
- [ez-php/money](https://github.com/ez-php/money) — Monetary values, Currency, CurrencyRegistry
- [ez-php/opcache](https://github.com/ez-php/opcache) — OPcache preloading
- [ez-php/openapi](https://github.com/ez-php/openapi) — OpenAPI 3.x spec generation, attribute-driven
- [ez-php/two-factor](https://github.com/ez-php/two-factor) — TOTP two-factor authentication

License
-------

[](#license)

MIT — [Andreas Uretschnig](mailto:andreas.uretschnig@gmail.com)

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance91

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 93.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

46

Last Release

43d ago

Major Versions

0.9.3 → 1.0.02026-03-24

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/122030400?v=4)[AU9500](/maintainers/AU9500)[@AU9500](https://github.com/AU9500)

---

Top Contributors

[![AU9500](https://avatars.githubusercontent.com/u/122030400?v=4)](https://github.com/AU9500 "AU9500 (174 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (12 commits)")

---

Tags

phpmiddlewareframeworkmigrationdependency-injectionrouting

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ez-php-framework/health.svg)

```
[![Health](https://phpackages.com/badges/ez-php-framework/health.svg)](https://phpackages.com/packages/ez-php-framework)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
