Download the PHP package monkeyscloud/monkeyslegion-contracts without Composer
On this page you can find all versions of the php package monkeyscloud/monkeyslegion-contracts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download monkeyscloud/monkeyslegion-contracts
More information about monkeyscloud/monkeyslegion-contracts
Files in monkeyscloud/monkeyslegion-contracts
Package monkeyslegion-contracts
Short Description Lightweight contracts (interfaces & abstract bases) for the MonkeysLegion framework — zero framework coupling.
License MIT
Homepage https://github.com/MonkeysCloud/MonkeysLegion-Contracts
Informations about the package monkeyslegion-contracts
MonkeysLegion Contracts
Lightweight contracts (interfaces & abstract base classes) for the MonkeysLegion framework.
This package exists so that external packages and third-party bundles can implement framework contracts (like ServiceProviderInterface) without pulling in the entire monkeyscloud/monkeyslegion meta-package.
Installation
Dependencies
| Package | Version |
|---|---|
php |
^8.4 |
psr/container |
^2.0 |
That's it. No framework packages required.
Provided Contracts
ServiceProviderInterface
The contract for modular service providers. Implement this to register DI definitions, specify context (http, cli, all), and hook into the container boot lifecycle.
AbstractServiceProvider
Convenience base class with sensible defaults — only getDefinitions() is required:
How It Fits Together
| Layer | Package | What it does |
|---|---|---|
| Contract | monkeyslegion-contracts |
Defines ServiceProviderInterface |
| Framework | monkeyslegion |
Discovers & boots providers via ProviderScanner |
| Your Package | your-vendor/your-package |
Implements the interface, requires only contracts |
| App | monkeyslegion-skeleton |
Registers package providers in Bootstrap |
External packages require only monkeyslegion-contracts. The consuming application registers them during bootstrap:
License
MIT © MonkeysCloud