Skip to content

Laravel Flint is a PHP code style fixer for near-minimalists.

License

Notifications You must be signed in to change notification settings

capsulescodes/laravel-flint

 
 

Repository files navigation

Laravel Flint

Laravel Flint is a PHP code style fixer for near-minimalists based on Laravel Pint.

Flint is built on top of PHP-CS-Fixer and makes it simple to ensure that your code style stays clean and consistent.


Note

This is in active development. New features will be introduced gradually.


Features


Custom fixers

{
    ...
    "rules" : {

        ...
        "CapsulesCodes/method_chaining_indentation" : { "multi-line" : 4 },
        "CapsulesCodes/multiple_lines_after_imports" : { "lines" : 2 },
        "CapsulesCodes/spaces_inside_square_braces" : { "space" : "single" }
        ...

    },
    "fixers" : [ "CapsulesCodes\\Fixers" ]
    ...

}

Tip

namespaces or imports are functionnal


Empty preset

{
    "preset" : "none",
    ...
}

Tip

the current presets are laravel, none, per, psr12 and symfony


Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

The main branch is in sync with Laravel Pint. The fork branch contains the new features.


Credits


License

MIT

About

Laravel Flint is a PHP code style fixer for near-minimalists.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • PHP 95.9%
  • Blade 4.1%