ez-php / contracts
Shared interfaces and abstract base classes for the ez-php framework — zero framework coupling for standalone modules
1.12.2
2026-09-11 21:27 UTC
Requires
- php: ^8.5
- ext-pdo: *
- ez-php/http: ^1.0
Requires (Dev)
- ez-php/docker: ^1.0
- ez-php/testing-application: ^1.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
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- 1.12.2
- 1.12.1
- 1.12.0
- 1.11.2
- 1.11.1
- 1.11.0
- 1.10.0
- 1.9.2
- 1.9.1
- 1.9.0
- 1.8.0
- 1.7.1
- 1.7.0
- 1.6.1
- 1.6.0
- 1.5.1
- 1.5.0
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.1
- 1.0.0
- 0.9.3
- 0.9.2
- 0.9.1
- 0.9.0
- 0.8.6
- 0.8.5
- 0.8.4
- 0.8.3
- 0.8.2
- 0.8.1
- 0.8.0
- 0.7.0
- 0.6.1
- 0.6.0
- 0.5.1
- 0.5.0
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.1
- 0.3.0
- 0.2.0
- 0.1.0
This package is auto-updated.
Last update: 2026-09-11 21:31:12 UTC
README
Shared interfaces and abstract base classes for the ez-php framework.
Contracts
| Contract | Type | Purpose |
|---|---|---|
ContainerInterface |
Interface | Dependency injection: bind(), make(), instance() |
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 |
MiddlewareInterface |
Interface | HTTP middleware pipeline contract |
TranslatorInterface |
Interface | Translate keys with placeholder replacements |
JobInterface |
Interface | Queue job contract: handle(), fail(), attempt/retry accessors |
QueueInterface |
Interface | Queue driver contract: push(), pop(), size(), failed() |
RepositoryInterface |
Interface | Generic repository: find(), save(), delete() |
EzPhpException |
Class | Base exception for framework and modules |