kalani/facade-root

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (dev-master) of this package.

Simple Laravel 4 Artisan package shows root class of facade or alias

dev-master 2013-07-25 18:08 UTC

This package is not auto-updated.

Last update: 2015-08-05 09:52:19 UTC


README

This Laravel 4 package will give you an Artisan command to show the root class for a given facade or alias.

Install the package via Composer. Edit your composer.json file to require kalani/facade-root.

"require-dev": {
    "kalani/facade-root": "dev-master"
}

Next, update Composer from the terminal:

composer update

Finally, add the service provider to the providers array in app\config\app.php:

'Kalani\FacadeRoot\FacadeRootServiceProvider',

Usage

At the command line, in your project root folder, enter:

php artisan root <FacadeName>

The facade name should be in StudlyCase. For instance:

$ php artisan root Eloquent

Returns:

Eloquent => (alias) Illuminate\Database\Eloquent\Model

And

$ php artisan root App

Returns:

App => (facade) Illuminate\Foundation\Application

If the given class is neither an alias nor a facade, the package will return a blank value. This:

$ php artisan root Foo

Returns:

Foo =>