Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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