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: 46

Dependents: 9

Suggesters: 0

Stars: 0

Open Issues: 0

0.4.0 2026-03-15 23:52 UTC

This package is auto-updated.

Last update: 2026-03-16 00:40:28 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