Prepare your application for the production, greatly reducing the risk of piracy
The target audience: ISVs, freelancers, developers, resellers, all who need a lightweight utility to turn the project into the delivery package. The solution is oriented to the PHP applications, but can be used for your front-end projects too.
There are many minifiers, obfuscators, encoders around. Some commercial encoders are very good, but rather expensive and may require system extensions. The others are limited with a single source type only. The Packer is a simple integrated solution.
How it works
PackApp.php packs the project files: minifies the source (html, css, js, json, php, xml), obfuscates (php) or encodes (js) the code and compresses the resulting files. The php templates are processed for the html, js, css, php code.
The source can be either a single file or a folder which may have sub-folders. The destination is a packed file or a folder with the packed files. The ZIP archives are handled also: folder-to-zip, zip-to-folder, zip-to-zip.
The Packer passes the source to respective minify add-on depending on the file type. The css and js detected inside the html are minified too. The html, css, js are looked for the embedded php to minify. You can create the user add-ons for more file types.
The js and php code can be obfuscated to inhibit its unauthorized use. You must follow certain naming rules for the PHP identifiers to avoid the renaming conflicts. The php obfuscation is supplied by Standard edition.
There are several options to control the processing. Use them for specific cases and rely on defaults generally. Launch the Packer via the GUI or instantiate and call directly. Various statistics is returned about the processing results. You can display and/or save this data.