contal / formatter
A library for formatting php code
2.1.0
2017-10-24 03:34 UTC
Requires
- php: >=7.0
- ext-tokenizer: *
Requires (Dev)
- phpunit/php-code-coverage: ^2.0
- symfony/console: ^3.0
README
A library for formatting php code.
Features
- K&R style
- New lines
- Indentation (on curly braces only)
- Equals align
- Array nested
Getting started
Installation
Via composer:
composer require contal/formatter
From Code
This simple code snippet is all you need:
use Contal\Formatter; $clean = Formatter::format($uglyCode);