Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 386 Bytes

README.md

File metadata and controls

32 lines (20 loc) · 386 Bytes

PHP Formatter

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);