2017 © Pedro Peláez
 

laravel-package providers

Laravel package to load providers and aliases use a config file.

image

juy/providers

Laravel package to load providers and aliases use a config file.

  • Friday, March 17, 2017
  • by angelside
  • Repository
  • 1 Watchers
  • 1 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 2 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Providers Laravel Package

Latest Version on Packagist ![Software License][ico-license], (*1)

Laravel package to load providers and aliases use a config file., (*2)

We usually use a providers file for load local providers, package providers, aliases, etc. to try keep clean config/app.php file. We have developed this idea and make a package for this., (*3)


Supported Laravel versions

  • Laravel 5.1 | 5.2 | 5.3

Requirements

  • Laravel >= 5.1 : Laravel 5.1 or above.
  • PHP >= 5.5.9 : PHP 5.5.9 or above on your machine.

Installation

Step:1 Install through composer

Install

➜ composer require juy/providers:1.*

Manual install (alternative)

Simply add the following to the "require" section of your composer.json file, and run composer update command., (*4)

"juy/providers": "1.*"
  

Remove

➜ composer remove juy/providers

Step 2: Add the service provider

Append this line to your service providers array in config/app.php., (*5)

Juy\Providers\ServiceProvider::class,

3. Step 3: Publish config

Publish config file., (*6)

➜ php artisan vendor:publish --provider="Juy\Providers\ServiceProvider" --tag="config"

Usage

You can add providers to config/providers.php file., (*7)

A config sample

<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Autoloaded Service Providers
    |--------------------------------------------------------------------------
    */

   'providers' => [
       /*
        * Application Service Providers
        */
       'app' => [
           // ...
       ],

       /*
        * Package Service Providers
        */
       'package' => [
            Collective\Html\HtmlServiceProvider::class,
            Juy\CharacterSolver\ServiceProvider::class,
            Juy\ActiveMenu\ServiceProvider::class,
       ],

       /*
        * Development/Local Service Providers
        */
        'local' => [
            Barryvdh\Debugbar\ServiceProvider::class,
            Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
            Clockwork\Support\Laravel\ClockworkServiceProvider::class,
        ],

       /*
        * Production Service Providers
        */
        'production' => [
            GrahamCampbell\HTMLMin\HTMLMinServiceProvider::class,
        ]
   ],

    /*
    |--------------------------------------------------------------------------
    | Class Aliases
    |--------------------------------------------------------------------------
    */

    'aliases' => [
        /*
         * Application Aliases
         */
        'app' => [
            // ...
        ],

        /*
         * Package Aliases
         */
        'package' => [
            'Html' => Collective\Html\HtmlFacade::class
        ],

        /*
         * Development/Local Aliases
         */
        'local' => [
            'Debugbar' => Barryvdh\Debugbar\Facade::class,
        ],

       /*
        * Production Aliases
        */
        'production' => [
            'HTMLMin' => GrahamCampbell\HTMLMin\Facades\HTMLMin::class,
        ]
    ]
];


License

This project is open-sourced software licensed under the MIT License., (*8)

The Versions

17/03 2017

dev-develop

dev-develop https://github.com/juy/Providers

Laravel package to load providers and aliases use a config file.

  Sources   Download

MIT

The Requires

 

laravel alias config provider

16/03 2017

dev-master

9999999-dev https://github.com/juy/Providers

Laravel package to load providers and aliases use a config file.

  Sources   Download

MIT

The Requires

 

laravel alias config provider

23/12 2016

1.0.6

1.0.6.0 https://github.com/juy/Providers

Laravel package to load providers and aliases use a config file.

  Sources   Download

MIT

The Requires

 

laravel alias config provider

23/09 2016

1.0.5

1.0.5.0 https://github.com/juy/Providers

Laravel package to load providers and aliases use a config file.

  Sources   Download

MIT

The Requires

 

laravel alias config provider

18/09 2016

1.0.4

1.0.4.0 https://github.com/juy/Providers

Laravel package to load providers and aliases use a config file.

  Sources   Download

MIT

The Requires

 

laravel alias config provider

02/08 2016

1.0.3

1.0.3.0 https://github.com/juy/Providers

Laravel package to load providers and aliases use a config file.

  Sources   Download

MIT

The Requires

 

laravel alias config provider

05/04 2016

1.0.2

1.0.2.0

Laravel package to load providers and aliases use a config file.

  Sources   Download

MIT

The Requires

 

04/04 2016

1.0.1

1.0.1.0

Laravel package to load providers and aliases use a config file.

  Sources   Download

MIT

The Requires

 

04/04 2016

1.0.0

1.0.0.0

Laravel package to load providers and aliases use a config file.

  Sources   Download

MIT

The Requires