echo-fusion / contracts
Core interfaces and contracts for the EchoFusion framework, providing shared, standardized interfaces for cross-package interoperability and modular design.
Requires
- php: ~8.1.0 || ~8.2.0 || ~8.3.0
- psr/container: ^2.0
- psr/http-message: ^2.0@dev
- psr/http-server-middleware: ^1.0@dev
Requires (Dev)
- echo-fusion/codestandard: ^1.0
- friendsofphp/php-cs-fixer: dev-master
README
Welcome to the EchoFusion Contracts repository! This package defines the core interfaces and abstractions that are shared across the EchoFusion framework, ensuring consistency and flexibility in how components interact with each other.
Install
Via Composer
$ composer require echo-fusion/contracts
Requirements
The following versions of PHP are supported by this version.
- PHP 8.1
- PHP 8.2
- PHP 8.3
Usage
The EchoFusion Contracts package provides interfaces that are widely used across the EchoFusion ecosystem. The goal is to provide a set of reusable and extensible contracts to ensure all EchoFusion components follow a consistent structure and behavior.
For example, to use the ServiceProviderInterface in your application, you can implement it within your custom service providers:
use EchoFusion\Contracts\ServiceProviderInterface; use EchoFusion\Contracts\ServiceManagerInterface; class MyServiceProvider implements ServiceProviderInterface { public function register(ServiceManagerInterface $container): void { // Register your services here } public function boot(ServiceManagerInterface $container, array $config): void { // Boot your services here } }
Credits
Developed and maintained by Amir Shadanfar.
Connect on LinkedIn.
License
The MIT License (MIT). Please see License File for more information.