New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

adamczykpiotr/laravel-ultimate-formatter

Ultimate code formatter for Laravel, taking care of everything
1,706

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 care

Use 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
Maintainer: adamczykpiotr

Ultimate Formatter for Laravel

Latest Version on Packagist GitHub Tests Action Status Total Downloads

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/=== null instead of !, interpolation, early continue guards, and more.
  • PHPStan ruleset: banned calls, class naming and architecture rules, and migration conventions.

Documentation

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

adamczykpiotr/laravel-dag-workflows

This is my package dag-workflows

1,064 0
adamczykpiotr/laravel-balanced-queues

Laravel package designed to optimize the performance and efficiency of your appl...

1,041 1
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440

Version History

Version Released PHP Laravel License
v1.15.0 ^8.3 ^12.0||^13.0 MIT
v1.14.2 ^8.3 ^12.0||^13.0 MIT
v1.14.1 ^8.3 ^12.0||^13.0 MIT
v1.14.0 ^8.3 ^12.0||^13.0 MIT
v1.13.7 ^8.3 ^12.0||^13.0 MIT