TRYNT PHP Compression Web Service
The TRYNT PHP Compression Web Service provides free PHP compression and obfuscation. Compression can reduce your storage expenses and obsfucation can make it harder to reverse engineer your code.
While the packing algorithm is forgiving of all forms of PHP, you must correctly terminate all PHP statements with semi-colons. This includes function declarations. If you neglect to do so your resulting compressed PHP may fail.
Please note that while we provide this service TRYNT did not develop the PHP compression engine. The original engine was developed by Warren Smith. We have modified the original code to provide an additional level of "security."
New! Since compressing/obfuscating PHP can take a few seconds we've included a caching mechanism to store the resulting compressed PHP. You can however force a cache refresh through arguments.
If you use this free TRYNT API/Web Service you must provide proper attribution to comply with our terms of service.
Request URL
http://www.trynt.com/php-compression-api/v1/
Note that due to the php value being a potentially lengthy string, compression requests should be submitted using the POST protocol rather than the GET protocol.
Request parameters
| Parameter | Value | Description |
|---|---|---|
| u | string (optional) | The url of your PHP source (prior to being compiled by PHP) |
| php | string (optional) | The body of your PHP |
| f | integer (optional) | Should we force a cache flush |
* While both arguments are optional, the PHP Compression API will not function without out at least one argument being passed. If you would like to test the API but don't have any PHP handy why not test it using the XML generation class XMLWriter, from Simon Willison. Click here to see the results.
Sample Request (URL: http://www.trynt.com/php-compression-api/v1/):