Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/soyhuce/service-provider-registrar
Load other service providers based on current environment
https://github.com/soyhuce/service-provider-registrar
environment hacktoberfest laravel serviceprovider
Last synced: 5 days ago
JSON representation
Load other service providers based on current environment
- Host: GitHub
- URL: https://github.com/soyhuce/service-provider-registrar
- Owner: Soyhuce
- License: mit
- Created: 2020-05-11T11:36:00.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-08T15:42:23.000Z (11 months ago)
- Last Synced: 2024-12-31T01:10:08.632Z (about 1 month ago)
- Topics: environment, hacktoberfest, laravel, serviceprovider
- Language: PHP
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Service provider registrar
[![Latest Version on Packagist](https://img.shields.io/packagist/v/soyhuce/service-provider-registrar.svg?style=flat-square)](https://packagist.org/packages/soyhuce/service-provider-registrar)
[![Total Downloads](https://img.shields.io/packagist/dt/soyhuce/service-provider-registrar.svg?style=flat-square)](https://packagist.org/packages/soyhuce/service-provider-registrar)## Objectives
This package allows to load other service providers based on current environment
## Installation
You can install the package via composer:
`composer require soyhuce/service-provider-registrar`Make a ServiceProvider which extend `Soyhuce\ServiceProviderRegistrar\ServiceProvider` :
```php
namespace App\Providers;use Soyhuce\ServiceProviderRegistrar\ServiceProvider;
class RegistrationServiceProvider extends ServiceProvider
{
}
```Don't forget to add this ServiceProvider to your `config/app.php` file!
For each environment you wish, you have to define which service provider you want to use:
```php
class RegistrationServiceProvider extends ServiceProvider
{
public $local = [
\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class
];
}
```### Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.