2017 © Pedro Peláez
 

library module-interface

Interfaces for modules

image

dhii/module-interface

Interfaces for modules

  • Monday, May 7, 2018
  • by XedinUnknown
  • Repository
  • 3 Watchers
  • 0 Stars
  • 930 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 7 Versions
  • 50 % Grown

The README.md

Dhii - Module Interface

Build Status Code Climate Test Coverage Latest Stable Version This package complies with Dhii standards, (*1)

Details

This package contains interfaces that are useful in describing modules and their attributes and behaviour., (*2)

Interfaces

  • ModuleInterface - Represents a module. A module MUST have a key, and MUST be able to be set up and run separately in order to have the chance to prepare itself and let other potential modules to do the same. The setup() method MAY return a container with the services provided by that module. The run() method MAY accept an optional container with the services provided by the application, but MUST handle the case where no container is provided. The container provided to run() MAY be the same container returned from setup(). Implementations that consume their own services SHOULD therefore rely only on what is provided to run(), which gives the application the means to add or override services. Nevertheless, implementations MUST NOT assume that the container received by run() is the same container returned from setup().

Requirements

This package officially supports PHP 5.3 until PHP 7.3. Theoretically, it should work on higher versions of PHP just the same, at the very least until PHP 8. However, it does not appear possible to build on PHP 5.3 and 7.4 at the same time, because there seems to be no distro which has both of those in its toolchain., (*3)

The Versions

14/03 2018

dev-task/6_expand-dependencies-return-type

dev-task/6_expand-dependencies-return-type

Interfaces for modules

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dhii Team

19/01 2018

dev-task/2_up-to-standard

dev-task/2_up-to-standard

Interfaces for modules

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dhii Team

19/06 2017

dev-master

9999999-dev

Interfaces for modules

  Sources   Download

MIT

The Requires

  • php ^5.3 | ^7.0

 

The Development Requires

by Dhii Team