soyhuce / laravel-somake
An opinionated package to generate classes in your Laravel project
Fund package maintenance!
soyhuce
Installs: 9 089
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: ^8.2
- composer-runtime-api: ^2.0
- composer/class-map-generator: ^1.4
- illuminate/console: ^11.0
- illuminate/contracts: ^11.0
- illuminate/filesystem: ^11.0
- illuminate/support: ^11.0
- laravel/prompts: ^0.3.1
- phpstan/phpdoc-parser: ^2.0
- spatie/fork: ^1.1
- spatie/laravel-package-tools: ^1.11
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.7
- larastan/larastan: ^3.0
- nunomaduro/collision: ^8.0
- orchestra/testbench: ^9.0
- pestphp/pest: ^2.12
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^2.0
- spatie/laravel-data: ^4.0
- spatie/pest-plugin-snapshots: ^2.0.1
- test-laravel/test-laravel: *
README
A set of commands to easily generate classes on the right place.
Installation
You can install the package via composer:
composer require --dev soyhuce/laravel-somake
You can publish the config file with:
php artisan vendor:publish --tag="somake-config"
Optionally, you can publish the views using
php artisan vendor:publish --tag="somake-views"
Usage
The commands of this package do not offer options, or the options are designed to be used internally only.
The configuration of generated classes is done via interactive questions.
App
Domain
Support
Other
Open created files in your IDE
To open created files in your IDE, you can just need to define the somake.ide_path
config with the binary path of your IDE.
You can also define the IDE
environment variable (in your .env
file for exemple).
IDE=/usr/bin/phpstorm
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.