imo-tikuwa / laravel-make-with-format
Running the make:●● command will get Pint and laravel-ide-helper working (if installed).
Fund package maintenance!
imo-tikuwa
Requires
- php: ^8.3
- illuminate/contracts: ^11.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1
- orchestra/testbench: ^9.0.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
README
Provides a listener to prevent forgetting to run Laravel Pint and IDE Helper after executing the make:●● command.
Installation
You can install the package via composer:
composer require --dev imo-tikuwa/laravel-make-with-format
You can publish the config file with:
php artisan vendor:publish --tag="make-with-format-config"
Optional Dependencies
This package will use the following tools if they are installed in your project:
- Laravel Pint (for code formatting)
- IDE Helper Generator for Laravel (for improved IDE support)
If you want to take advantage of these features, you can install them manually:
composer require --dev laravel/pint composer require --dev barryvdh/laravel-ide-helper
For detailed installation and setup instructions, please refer to the documentation of each package:
- Laravel Pint: https://github.com/laravel/pint
- IDE Helper Generator: https://github.com/barryvdh/laravel-ide-helper
Usage
After executing the make:●● command, Pint and laravel-ide-helper will work.
$ php artisan make:migration create_examples_table INFO Migration [database/migrations/2025_02_23_072246_create_examples_table.php] created successfully. Running pint on database/migrations ✓... ───────────────────────────────────────────────────────────────────── PSR 12 FIXED ..................................... 4 files, 1 style issue fixed ✓ database/migrations/2025_02_23_072246_create_examples_table.php new_with_…
$ php artisan make:model --test Example INFO Test [tests/Feature/Models/ExampleTest.php] created successfully. INFO Model [app/Models/Example.php] created successfully. Running ide-helper:models on app/Models Written new phpDocBlock to /app/Models/Example.php Written new phpDocBlock to /app/Models/User.php Running pint on app/Models ✓✓ ───────────────────────────────────────────────────────────────────── PSR 12 FIXED .................................... 2 files, 2 style issues fixed ✓ app/Models/Example.php declare_strict_types, blank_line_after_opening_tag… ✓ app/Models/User.php no_trailing_whitespace_in_comment Running pint on tests/Feature/Models ✓ ───────────────────────────────────────────────────────────────────── PSR 12 FIXED ...................................... 1 file, 1 style issue fixed ✓ tests/Feature/Models/ExampleTest.php declare_strict_types, blank_line_aft…
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.