adamczykpiotr/laravel-ultimate-formatter
Larablocks Analysis
adamczykpiotr/laravel-ultimate-formatter works with Laravel 12 and 13 (latest release v1.15.0, Nov 15, 2026).
Laravel 11 in earlier releases.
Recommendation checks
Use with careUse with care: meets 2 of 5 checks.
- Works with Laravel 13, the current version
- Released in the last 12 months (Nov 15, 2026)
- First released under 90 days ago
- 1,405 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Too new to judge- Last stable release: Nov 15, 2026.
- 27 releases in the last 12 months.
- First released: Oct 25, 2026.
- Monthly downloads: 1,405.
- 8 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.
| Install | |
|---|---|
composer require adamczykpiotr/laravel-ultimate-formatter |
|
| Latest Version: | v1.15.0 |
| PHP: | ^8.3 |
| Laravel: | 12 · 13 |
| Older releases: | 11 |
| License: | MIT |
| Last Updated: | Nov 28, 2026 |
| Links: | GitHub · Packagist |
Ultimate Formatter for Laravel
Ultimate code formatter for Laravel, taking care of everything: one package that ships Rector and PHP CS Fixer with a shared, opinionated configuration, so every project formats its code the same way. A PHPStan ruleset reports what the formatters can't fix: banned calls and architecture rules.
Installation
composer require --dev adamczykpiotr/laravel-ultimate-formatter
vendor/bin/ultimate-formatter install
Supports Laravel 12–13 on PHP 8.3+.
install detects whether the project is an application or a package and publishes .php-cs-fixer.php,
rector.php, phpstan.neon and .git-blame-ignore-revs, plus config/ultimate-formatter.php in an
application. Existing files are skipped unless you pass --force, and --ci adds a GitHub Actions
workflow. See Setup for the paths it picks and how to add the ruleset to an existing
PHPStan config, and Adopting it in an existing project for the first run on a
large codebase.
Usage
vendor/bin/ultimate-formatter format # Rector, then PHP CS Fixer
vendor/bin/ultimate-formatter check # dry run of both, then PHPStan; stops at the first failure (CI)
check runs PHPStan only when the project has a phpstan.neon, phpstan.neon.dist or phpstan.dist.neon.
Before anything else it asks PHPStan whether that config loads the PHPStan ruleset,
and fails with the includes to add when it doesn't, since the ruleset's rules would silently never run.
Pass --without-phpstan-ruleset to run PHPStan without it.
format --models regenerates model docblocks with laravel-ide-helper first, which is installed with the package. In a Laravel app the
same commands are available as php artisan formatter:install, formatter:format and
formatter:check.
| Flag | Effect |
|---|---|
-q |
Silences every step, so only the exit code reports the result |
-v, -vv |
Prints each command before it runs and passes the same level to each step |
-vvv |
As above, and passes --debug to Rector, which has no other verbosity flags |
These flags replace any --quiet or -v in the configured arguments.
What it enforces
- PHP CS Fixer: strict types, next-line braces, ordered imports and docblock tags, one sorted trait statement.
- Rector: type declarations, Laravel sets,
match, arrow functions, Carbon, and debug calls removed. - Custom rules: grouped numeric literals,
=== false/=== nullinstead of!, interpolation, earlycontinueguards, and more. - PHPStan ruleset: banned calls, class naming and architecture rules, and migration conventions.
Documentation
- Setup: layout detection, published files, PHPStan and Larastan, CI
- Adopting it in an existing project: the first format, blame, and getting PHPStan to pass
- Configuration: tool arguments, formatter rules, pre steps, ruleset flags, performance
- Upgrading: how
migrate-configkeeps your published config current - Formatting rules: everything
formatrewrites - PHPStan ruleset: every rule the ruleset reports, with its identifier
Changelog
See CHANGELOG for what changed in each release.
Contributing
See CONTRIBUTING for running the tests and how releases work.
License
The MIT License (MIT). Please see License File for more information.
Related Packages
Laravel package designed to optimize the performance and efficiency of your appl...
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.15.0 | ^8.3 | ^12.0|| | MIT | |
| v1.14.2 | ^8.3 | ^12.0|| | MIT | |
| v1.14.1 | ^8.3 | ^12.0|| | MIT | |
| v1.14.0 | ^8.3 | ^12.0|| | MIT | |
| v1.13.7 | ^8.3 | ^12.0|| | MIT | |
| v1.13.6 | ^8.3 | ^12.0|| | MIT | |
| v1.13.5 | ^8.3 | ^12.0|| | MIT | |
| v1.13.4 | ^8.3 | ^12.0|| | MIT | |
| v1.13.3 | ^8.3 | ^12.0|| | MIT | |
| v1.13.2 | ^8.3 | ^12.0|| | MIT | |
| v1.13.1 | ^8.3 | ^12.0|| | MIT | |
| v1.13.0 | ^8.3 | ^12.0|| | MIT | |
| v1.12.0 | ^8.3 | ^12.0|| | MIT | |
| v1.11.0 | ^8.3 | ^12.0|| | MIT | |
| v1.10.0 | ^8.3 | ^12.0|| | MIT | |
| v1.9.0 | ^8.3 | ^12.0|| | MIT | |
| v1.8.0 | ^8.3 | ^12.0|| | MIT | |
| v1.7.0 | ^8.3 | ^12.0|| | MIT | |
| v1.6.1 | ^8.3 | ^12.0|| | MIT | |
| v1.6.0 | ^8.3 | ^12.0|| | MIT | |
| v1.5.0 | ^8.3 | ^12.0|| | MIT | |
| v1.4.0 | ^8.3 | ^11.0|| | MIT | |
| v1.3.0 | ^8.3 | ^11.0|| | MIT | |
| v1.2.1 | ^8.3 | ^11.0|| | MIT | |
| v1.2.0 | ^8.3 | ^11.0|| | MIT | |
| v1.1.0 | ^8.3 | ^11.0|| | MIT | |
| v1.0.0 | ^8.3 | ^11.0|| | MIT |