Skip to content

Converts in PHP files any standard control-structure sytax to the alternative syntax

License

Notifications You must be signed in to change notification settings

oranfry/php-syntax-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Add the bin subdirectory to your PATH, or create a symlink to bin/psc in a directory already on your PATH.

Usage

psc [-p] [--infile=INFILE|-i INFILE] [--outfile=OUTFILE|-o OUTFILE] conversion1 [conversion 2] [...]
psc [--help|-h]

Examples

Get help and see available conversions:

psc --help

Perform the conversions to_alternative and one_tag_per_statement on the file my_file.php in place:

psc -p -i my_file.php to_alternative one_tag_per_statement

Explain on stdout, the code given to stdin:

psc explain

Mark up the file my_file.php, saving the result my_file.php.html:

psc -i my_file -o my_file.php.html mark_up

About

Converts in PHP files any standard control-structure sytax to the alternative syntax

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages