ez-php/framework

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

Maintainers

Package info

github.com/ez-php/framework

pkg:composer/ez-php/framework

Statistics

Installs: 48

Dependents: 8

Suggesters: 0

Stars: 0

Open Issues: 0

0.2.0 2026-03-15 03:47 UTC

This package is auto-updated.

Last update: 2026-03-15 04:18:02 UTC


README

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

CI

Requirements

  • PHP 8.5+
  • ext-pdo

Installation

composer require ez-php/framework

What's included

Module Description
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 integration

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);

Optional modules

License

MIT — Andreas Uretschnig