ez-php / contracts
Shared interfaces and abstract base classes for the ez-php framework — zero framework coupling for standalone modules
0.4.0
2026-03-15 23:52 UTC
Requires
- php: ^8.5
- ext-pdo: *
- ez-php/http: 0.*
Requires (Dev)
- ez-php/docker: 0.*
- friendsofphp/php-cs-fixer: ^3.94
- phpstan/phpstan: ^2.1
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-strict-rules: ^2.0
- phpunit/phpunit: ^13.0
README
Shared interfaces and abstract base classes for the ez-php framework.
Contracts
| Contract | Type | Purpose |
|---|---|---|
ContainerInterface |
Interface | Dependency injection: bind() and make() |
ServiceProvider |
Abstract class | Two-phase lifecycle: register() and boot() |
ConfigInterface |
Interface | Configuration access via dot-notation keys |
DatabaseInterface |
Interface | Database queries, transactions, PDO access |
ExceptionHandlerInterface |
Interface | Convert exceptions to HTTP responses |
EzPhpException |
Class | Base exception for framework and modules |
MiddlewareInterface |
Interface | HTTP middleware pipeline contract |