A very basic PHP parser to minify and art-ify PHP code.
php minify.php <file or folder>
minifies your codephp box.php <file> [desired_line_width = 80]
turns your code into a boxphp parse.php <file>
prints all sections of the parsed code
Rest assured that Phine will not modify your code directly and instead create a copy, e.g. if you run php box.php test.php
it will create a boxified version of test.php
at test.box.php
.
If you have Cone, you can install Phine to get the global phine-minify
, phine-box
, and phine-parse
commands:
cone add-source https://raw.githubusercontent.com/timmyRS/Phine/master/cone.json
cone update
cone get phine