forked from technosophos/PHPCompactor
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Spellcheck, added TODO, better CLI output (including percentage), sma…
…ll fixes
- Loading branch information
1 parent
01204da
commit 114df87
Showing
3 changed files
with
25 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
phpcompressor | ||
Author: M Butcher (matt@aleph-null.tv) | ||
Copyright 2009 | ||
Licensed under an MIT-style license. See COPYING-MIT. | ||
phpcompactor | ||
Authors: M Butcher (matt@aleph-null.tv), J Pruis (email@jurriaanpruis.nl) | ||
Copyright 2009-2010 | ||
Licensed under an MIT-style license. See COPYING-MIT.txt | ||
|
||
This package provides a very simple PHP code compressor. | ||
|
||
Usage: | ||
php ./phpcompactor.php compressed_file.php source_file.php | ||
php ./src/phpcompactor.php compressed_file.php source_file.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- @Matt: fix COPYING, licence is for Querypath, not for PHPCompactor | ||
- make testcases | ||
- more tokens.. for example T_PRINT & T_ECHO (Problems when printing constants) echo'test'; and echo$test; are allowed, echoENT_QUOTES; not (of course) | ||
- merge the two foreach structures (is this possible?, maybe by making a for loop previous == $tokens[$i-1]) | ||
- strip require/include (_once) paths from source | ||
- make OO compactor lib | ||
- create function for single files | ||
- treat inline HTML better (also HTML compression?, internally i'm using a simple regexp: /(?<=>)\s+(?=<)/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters