PHPackages                             soyhuce/service-provider-registrar - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. soyhuce/service-provider-registrar

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

soyhuce/service-provider-registrar
==================================

Load other service providers based on current environment

1.6.0(2y ago)06.6kMITPHPPHP ^8.2CI failing

Since May 11Pushed 2y ago3 watchersCompare

[ Source](https://github.com/Soyhuce/service-provider-registrar)[ Packagist](https://packagist.org/packages/soyhuce/service-provider-registrar)[ RSS](/packages/soyhuce-service-provider-registrar/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (8)Dependencies (5)Versions (10)Used By (0)

Service provider registrar
==========================

[](#service-provider-registrar)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d24dcf261fe04a1f1148df1c73870a8e5e039bd5ec790c478338e94b48ccef54/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f79687563652f736572766963652d70726f76696465722d7265676973747261722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/soyhuce/service-provider-registrar)[![Total Downloads](https://camo.githubusercontent.com/cca0fca54b41cc70b5183edbdf76e28fae4c9f06fd85cde8a006bfd936651f03/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f79687563652f736572766963652d70726f76696465722d7265676973747261722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/soyhuce/service-provider-registrar)

Objectives
----------

[](#objectives)

This package allows to load other service providers based on current environment

Installation
------------

[](#installation)

You can install the package via composer:

`composer require soyhuce/service-provider-registrar`

Make a ServiceProvider which extend `Soyhuce\ServiceProviderRegistrar\ServiceProvider` :

```
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:

```
class RegistrationServiceProvider extends ServiceProvider
{
    public $local = [
        \Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class
    ];
}
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 74.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~199 days

Total

8

Last Release

795d ago

Major Versions

0.3.0 → 1.0.02020-08-28

PHP version history (5 changes)0.3.0PHP ^7.4

1.1.0PHP ^7.4 || ^8.0

1.2.0PHP ^8.0

1.3.0PHP ^8.1

1.5.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/206cfbf866a463f7e7d1e86946d59b82f4191b9c89f9981fb03eeb264d77af79?d=identicon)[SoyHuCe](/maintainers/SoyHuCe)

---

Top Contributors

[![bastien-phi](https://avatars.githubusercontent.com/u/10199039?v=4)](https://github.com/bastien-phi "bastien-phi (23 commits)")[![ElRochito](https://avatars.githubusercontent.com/u/1737307?v=4)](https://github.com/ElRochito "ElRochito (6 commits)")[![EdenMl](https://avatars.githubusercontent.com/u/70885551?v=4)](https://github.com/EdenMl "EdenMl (2 commits)")

---

Tags

environmenthacktoberfestlaravelserviceproviderlaravelenvironmentservice providers

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/soyhuce-service-provider-registrar/health.svg)

```
[![Health](https://phpackages.com/badges/soyhuce-service-provider-registrar/health.svg)](https://phpackages.com/packages/soyhuce-service-provider-registrar)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[msztorc/laravel-env

Laravel env helper commands

7855.4k](/packages/msztorc-laravel-env)[sven/env-providers

Load Laravel service providers based on your application's environment.

769.7k](/packages/sven-env-providers)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[harmonic/laravel-envcoder

:description

414.1k](/packages/harmonic-laravel-envcoder)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
