Download the PHP package stephenjude/extended-artisan-commands without Composer
On this page you can find all versions of the php package stephenjude/extended-artisan-commands. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stephenjude/extended-artisan-commands
More information about stephenjude/extended-artisan-commands
Files in stephenjude/extended-artisan-commands
Package extended-artisan-commands
Short Description Generate plain PHP files using artisan console commands.
License MIT
Homepage https://github.com/stephenjude/extended-artisan-commands
Informations about the package extended-artisan-commands
Extended Artisan Commands
Have you ever enjoyed the assistance of artisan commands? This package brings more of it :)
You can now generate PHP classes and traits using artisan make:class
, make:interface
, make:trait
or make:abstract-class
console commands.
Installation
Step 1: Install Through Composer
Step 2: Run Artisan!
You're all set. Run php artisan from the console, and you'll see the new commands in the make:* namespace section.
- make:interface
- make:class
- make:abstract-class
- make:trait
- make:enum
Usage
Here's a few other examples of commands that you might write:
Option for all the commands
--force This will overide the existing file, if it exist
Options for the make:class
command
--interface
OR-i
This will generate an interface for the generated class.--trait
OR-t
This will generate a trait for the generated class.--abstract
OR-c
This will generate an abstract class for the generated class.--all
OR-a
This will generate an interface, a trait and an abstract class for the generated class.
Example:
This will generate an interface for this class.
This will generate a trait for this class.
Default Namespaces
- All interfaces are generated under the
App/Contracts
namespace. - All traits are generated under the
App/Traits
namespace. - All enums are generated under the
App/Enums
namespace. - Classes and abstract classes are generated under the
App
namespace.
Default namespaces can be configured inside the package config file.
Configurations
You can configure default namespace by publishing the package config file:
Configuring Default Namespace
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Stephen Jude
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.