Download the PHP package degraciamathieu/laravel-rapid-bind without Composer
On this page you can find all versions of the php package degraciamathieu/laravel-rapid-bind. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download degraciamathieu/laravel-rapid-bind
More information about degraciamathieu/laravel-rapid-bind
Files in degraciamathieu/laravel-rapid-bind
Package laravel-rapid-bind
Short Description Quickly and easily create singletons in the Laravel container with annotations
License
Homepage https://github.com/DeGraciaMathieu/laravel-rapid-bind
Informations about the package laravel-rapid-bind
laravel-rapid-bind
In an architecture based on ports and adapters, we create many bindings between interfaces and implementations.
Often, these bindings are simple and require no additional configuration.
This package facilitates the creation of these bindings, helping you avoid cluttering your AppServiceProvider
.
Installation
Requires >= PHP 8.1
Usage
Provide information on the folders containing the interfaces :
Now, add the Bind annotation on the port with the value of the FQCN of the associated adapter :
From now on, a singleton has been automatically created between the port and the adapter !
All versions of laravel-rapid-bind with dependencies
composer/class-map-generator Version ^1.3
illuminate/contracts Version 10.*|11.*
illuminate/support Version 10.*|11.*