PHP Classes

PHP Formatter: Reformat PHP source code using the PHP tokenizer

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 35%Total: 2,098 All time: 1,865 This week: 673Up
Version License Categories
phpformatter 1.0GNU General Publi...Tools, Text processing
Description 

Author

This class is meant to reformat PHP source code.

It uses the PHP tokenizer functions to parse PHP source and rewrites the same code using consistent indentation).

Picture of Filippo Toso
Name: Filippo Toso <contact>
Classes: 20 packages by
Country: Italy Italy
Innovation award
Innovation award
Nominee: 5x

  Files folder image Files (2)  
File Role Description
Plain text file phpformatter.class.php Class Class file
Accessible without login Plain text file sample.php Example Sample file

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,098
This week:0
All time:1,865
This week:673Up
User Ratings User Comments (1)
 All time
Utility:45%StarStarStar
Consistency:54%StarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:35%StarStar
Rank:4115
 
- Obviously does not work on php 5.
14 years ago (M. C. Skinner)
15%Star