Download the PHP package opheus2/laravel-makeclass without Composer
On this page you can find all versions of the php package opheus2/laravel-makeclass. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download opheus2/laravel-makeclass
More information about opheus2/laravel-makeclass
Files in opheus2/laravel-makeclass
Package laravel-makeclass
Short Description A laravel package that makes the creating of php classes faster
License MIT
Informations about the package laravel-makeclass
Laravel Make Class
Features
- Create a php class from the command for any directory in the root name-space;
- Store a custom path as an alias and use alias instead of full path.
- Create interface | class | enum | trait.
- Create final and abstract classes
- Create class with a declare strict_type
Installation
Usages
File is created in root name-space. E.b App
Default type is class.
File is created in test folder in root name-space. E.b App/Test
Create an interface type of class
Available types | flags |
---|---|
class | (default no flag) |
interface | (-i or --interface) |
trait | (-T or --trait) |
enum | (-e or --enum) |
Using custom path with alias
Please note: You always need to add a trailing slash at the end for it to work properly. I would surely fix that soon.
Then you can use alias as path
This would use the same old/saved path for subsequent file names
Using modifiers
This would create a final class with declare strict_types at the top You can use the -x flag to always add the strict type to any class type
Available modifiers | flags |
---|---|
strict | (-x or --strict) |
final | (-f or --final) |
abstract | (-a or --abstract) |
For more info you can do
Thank you
TODO
- [ ] Add check for trailing slash and auto fix