Download the PHP package anax/commons without Composer
On this page you can find all versions of the php package anax/commons. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package commons
Short Description Anax Commons module, stuff used by several modules.
License MIT
Homepage https://github.com/canax/commons
Informations about the package commons
Anax Commons
A place to store common files to have one central copy of the latest version of the file.
This repo is used by scaffolding processes which copies files to set upp fresh installations. The repo also contains development files and various configurations files for external build tools.
The repo also contains commonly used sourcecode like interfaces and traits, such code that is usually shared between several Anax modules.
Functions
The module contains a set of functions that are used by several modules. The functions are available in src/functions.php
and they are autoloaded when this module is used.
Class, interface, trait
The following classes, interfaces and traits exists.
Class, interface, trait | Description |
---|---|
Anax\Commons\AppInjectableInterface |
For classes that wants to be injectable by $app . |
Anax\Commons\AppInjectableTrait |
Implementation of the interface. |
Anax\Commons\ContainerInjectableInterface |
For classes that wants to be injectable by $di . |
Anax\Commons\ContainerInjectableTrait |
Implementation of the interface. |
Exceptions
There are no module specific exceptions supplied by this module.
App injectable
When a class wants to be injectable with $app
it should implement the interface AppInjectableTrait
.
Here is a sample when used together with a controller which can be injected with $app
.
Review the source of the actual interface and the trait to investigate their implementation.
Container injectable
When a class wants to be injectable with the service container $di
it should implement the interface ContainerInjectableTrait
.
Here is a sample when used together with a controller which can be injected with $di
.
Review the source of the actual interface and the trait to investigate their implementation.
Versioning
We use Semantic Versioning 2.0.0.
License
This software carries a MIT license. See LICENSE.txt for details.