Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/degraciamathieu/laravel-rapid-bind
Quickly and easily create singletons in the Laravel container
https://github.com/degraciamathieu/laravel-rapid-bind
container ioc laravel php
Last synced: about 1 month ago
JSON representation
Quickly and easily create singletons in the Laravel container
- Host: GitHub
- URL: https://github.com/degraciamathieu/laravel-rapid-bind
- Owner: DeGraciaMathieu
- Created: 2024-06-24T21:05:34.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-03T12:29:54.000Z (7 months ago)
- Last Synced: 2024-12-13T13:41:33.270Z (about 1 month ago)
- Topics: container, ioc, laravel, php
- Language: PHP
- Homepage:
- Size: 49.8 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# laravel-rapid-bind
[![testing](https://github.com/DeGraciaMathieu/laravel-rapid-bind/actions/workflows/testing.yml/badge.svg)](https://github.com/DeGraciaMathieu/laravel-rapid-bind/actions/workflows/testing.yml)
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
```
composer require degraciamathieu/laravel-rapid-bind
```## Usage
Provide information on the folders containing the interfaces :
```php