ez-php/contracts

Shared interfaces and abstract base classes for the ez-php framework — zero framework coupling for standalone modules

Maintainers

Package info

github.com/ez-php/contracts

pkg:composer/ez-php/contracts

Statistics

Installs: 2 219

Dependents: 25

Suggesters: 0

Stars: 0

Open Issues: 0

1.3.0 2026-03-29 22:47 UTC

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