https://github.com/nauvalazhar/facade-please
Laravel 5 Facade Generator
https://github.com/nauvalazhar/facade-please
facade laravel php php-framework
Last synced: about 1 month ago
JSON representation
Laravel 5 Facade Generator
- Host: GitHub
- URL: https://github.com/nauvalazhar/facade-please
- Owner: nauvalazhar
- License: mit
- Created: 2017-08-31T13:42:34.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-05T10:05:53.000Z (about 8 years ago)
- Last Synced: 2025-08-11T21:45:55.663Z (about 2 months ago)
- Topics: facade, laravel, php, php-framework
- Language: PHP
- Size: 12.7 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Facade, please!
Sometimes you want to create a facade for globally accessible method, but you don't like doing it because you have to take a few steps. Facade, please! is a laravel package to solve your problem, just one command and your facade is ready to use!# Requirements
- PHP >= 5.6.*
- Laravel 5# Installation
```
composer require nauvalazhar/facade-please
```
Add to `config/app.php`
```
'providers' => [
...
Nauvalazhar\FacadePlease\FacadePleaseServiceProvider::class,
```# Usage
### Usage List
```
php artisan facade usage
```### Create
```
php artisan facade:please YourFacade
```
The Generated facade will be stored in the `app/MyFacades` folder by default, but you can change the destination folder in the `config/facadeplease.php` file. Before doing that, you need to do [this step](#configuration).### Delete
```
php artisan facade:delete YourFacade
```### List All Facades
```
php artisan facade:list
```### Get Facade Information
```
php artisan facade:diag YourFacade [--methods] [--public] [--private]
```### Configuration
```
php artisan vendor:publish --tag=facadeplease
```# Changelogs
```
0.2.0 - Hope you love this
-----
New
---
- Optional argument for command: php artisan facade
- Automatically adds a comma at the end of the provider array element and aliases array in `config/app.php`
- Added a new command to list all facades
- Added a new command to diagnose the facade
- Added new command for usageChanges
-------
- Add 'require' in composer.json
- Some changes to the 'php artisan facade' command
- Some changes to the 'php artisan facade:delete' command0.1.1 - Initial release
-----
Fix
---
- fix Composer.json0.1.0 - First release (Don't use this)
- First commit
```# Credits
Thanks to [@rizalio](https://github.com/rizalio) for any help!# License
MIT License