Download the PHP package ixmanuel/nexus without Composer
On this page you can find all versions of the php package ixmanuel/nexus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ixmanuel/nexus
More information about ixmanuel/nexus
Files in ixmanuel/nexus
Download ixmanuel/nexus
More information about ixmanuel/nexus
Files in ixmanuel/nexus
Vendor ixmanuel
Package nexus
Short Description It manages object's dependencies for internal builders collaborators.
License MIT
Homepage https://github.com/ixmanuel/nexus
Package nexus
Short Description It manages object's dependencies for internal builders collaborators.
License MIT
Homepage https://github.com/ixmanuel/nexus
Please rate this library. Is it a good library?
Informations about the package nexus
Mapping dependencies at construction time
This registers collaborators (dependencies) in the constructors in order to decouple the object creation in methods.
Keywords
inversion control, dependency injection, builder
Goal
Testable, reusable and maintainable code by avoiding hard-coded references in methods.
Benefits
- Creating collaborators (a.k.a. dependencies) only in constructors.
- Avoiding a global dependency injection container.
- Switching default implementations with alternatives and test's objects.
Advantages of the language
- Referencing of classes and interfaces with its namespace.
Alternatives
- Usage of mapping.
- Anonymous classes.
- Passing empty objects that create those which are fully identifiable.
- Defining and implementing an interface for each collaboration.
Here is an example that reconstitutes an entity from a data store.
You just need to pass the interface and its implementation.
A proposal for the php community.
Now, we can create objects from their interfaces and thus, we have no more hard-coded dependencies in the methods.
All versions of nexus with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0.0
The package ixmanuel/nexus contains the following files
Loading the files please wait ....