PHP Classes

Check Curly Braces: Check matching curly brackets in text files

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 399 All time: 6,568 This week: 59Up
Version License PHP version Categories
check-curly-braces 0.4.5GNU General Publi...5.0PHP 5, Files and Folders, Text proces...


This class can be used to check matching curly brackets in text files.

It opens a text file and finds the curly brackets that open and close.

The class can display a summary of the brackets that open and the line where they close, also with the column number. Very useful with large files.

Use this class with source files written in php, java, javascript, c, c++, python, perl...

Any feedback is appreciated.

Innovation Award
PHP Programming Innovation award nominee
January 2009
Number 13

Prize: One book of choice by Packt
Sometimes you need to change PHP or other source files very quickly, making sure that the syntax of your changes is correct before updating your live system with the changes you made.

This class can be used to quickly check the curly brackets syntax of files with source code in PHP or any other language that employs that kind of brackets.

This way you do not need to test the code in the live system to figure that you made a mistake.

Manuel Lemos
Picture of andrea bernardi
  Performance   Level  
Name: andrea bernardi <contact>
Classes: 3 packages by
Country: Italy Italy
Age: 47
All time rank: 2608101 in Italy Italy
Week rank: 550 Up21 in Italy Italy Up
Innovation award
Innovation award
Nominee: 1x


*-----------------------------------------------------------* | name Check Curly Braces | | author raenkrus | | version 0.4.1 | | Copyright (c) 2009 raenkrus - droidseven at libero dot it | | tested with PHP 5.2.6 (cli) (built: Jul 17 2008 23:04:49) | *-----------------------------------------------------------* SUMMARY ======= CheckCurlyBraces is useful when you need to check matching curly braces in your code. The class displays a summary with the opening and the closing line for every curly braces found, with column line also. NOTES ===== Check Curly Braces is made to run in Command Line mode (yes, into a shell). The class was never tested through a web server. USAGE ===== Open a shell, cd to the directory containing the class and type: php CheckCurlyBraces.php filetocheck [ENTER] That's it. "filetocheck" must be a valid file.

  Files folder image Files  
File Role Description
Plain text file CheckCurlyBraces.php Class main class
Accessible without login Plain text file readme.txt Doc. class info and usage

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:6,568
This week:59Up