0

I would like to format the php files that I have in a directory, so that the code looks tidy and readable. I know how to do this via eclipse php, but is their a way to do several files in one go, via code?

Nathaniel Ford
  • 20,545
  • 20
  • 91
  • 102
ffmsingh
  • 141
  • 2
  • 6

1 Answers1

0

Fabien Potencier (of Symfony fame) has written a small utility that can modify code to comply with PHPCodeSniffer defined standards for PSR-n - PHP-CS-Fixer - although it isn't perfect

Mark Baker
  • 209,507
  • 32
  • 346
  • 385
  • Thanks, but is their another way without using Symfony? – ffmsingh Dec 19 '13 at 15:26
  • This method doesn't require the symphony framework; it's a self-contained application that uses a couple of Symfony components that are included in the "bundle", automatically included via a composer install – Mark Baker Dec 19 '13 at 15:47