Download the PHP package patienceman/deper without Composer
On this page you can find all versions of the php package patienceman/deper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download patienceman/deper
More information about patienceman/deper
Files in patienceman/deper
Package deper
Short Description One line Dependencies Injections for laravel and php
License MIT
Informations about the package deper
Deper from Patienceman
Deper is a dependency injector, which is able to inject even more than 4 classes in a simple way and is reliable, So now we are able to use multiple classes functions at once, :100: :fireworks:
Installation
Installing the package doesn't require much requirement except to paste the following command in the laravel terminal, and you're good to go.
Usage
It is easy to deal with this package, however, when you start to inject heavy classes, like thousand functions, it will take a while to find your function, and adds up to API / execution time. So once the installation is done! you need to create a new class file! for example
You can apply even to many classes to be injected, Just put it inside the injection return array. So now on let's use our dependencies anywhere we want!
Woow :smile: :star: :star2: , that amazing step forward we made! See!, easy-peasy!
class inheritance
So now that was the easy step to use!, let see how the inheritance work for dependencies!, Note: we will use the above example
That was awesome right? :+1: :call_me_hand: :ambulance:
Let use trait
So now on let's use traits to make it easier, Note: with current example
This is so amazing! :100: :smile:
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.