PHPackages                             sassnowski/yii-provider-registry - 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. [Framework](/categories/framework)
4. /
5. sassnowski/yii-provider-registry

ActiveLibrary[Framework](/categories/framework)

sassnowski/yii-provider-registry
================================

A Laravel inspired way to register services into your yii application.

1.0.0(10y ago)2161MITPHP

Since May 12Pushed 10y agoCompare

[ Source](https://github.com/ksassnowski/yii-provider-registry)[ Packagist](https://packagist.org/packages/sassnowski/yii-provider-registry)[ RSS](/packages/sassnowski-yii-provider-registry/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

Yii Provider Registry
=====================

[](#yii-provider-registry)

Provides a Laravel-inspired way to register services into a Yii application.

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

[](#installation)

Require the library via Composer.

```
composer require sassnowski/yii-provider-registry
```

Setup
-----

[](#setup)

Change the last few lines in your `web/index.php` to this:

```
$app = new yii\web\Application($config)

(new \Sassnowski\Yii2\ProviderRegistry\ProviderRegistry(\Yii::$container))->bootstrap();

$app->run();
```

Create a `bootstrap` folder in your application root and put a `services.php`file into it. This file should simply return an array of **Bootstrapper**classes.

```
