mattferris / component
An application component interface
Installs: 165
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/mattferris/component
This package is auto-updated.
Last update: 2025-09-29 01:57:43 UTC
README
composer require mattferris/component
Defines a standard interface for application components. It is used primarily by mattferris/application to define application components for bootloading.
namespace My\Namespace; use MattFerris\ComponentInterface; class MyComponent implements ComponentInterface { /** * Perform any component intialization tasks */ public function init() { // ... } /** * Load the component */ public function load() { // ... } }
Components may define constructors to gather any hard dependencies. init()
should prepare component resources, while load()
should complete any final
tasks to make the component live.