This file contains hidden or 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
| <?php | |
| /** | |
| * PHP & JavaScript File Compressor | |
| * | |
| * Recursively finds and compresses all PHP and JavaScript files | |
| * from the parent directory into a tar.gz archive. | |
| * | |
| * Features: | |
| * - Recursive file discovery | |
| * - Secure error reporting |
This file contains hidden or 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
| /** | |
| * SimpleStringify - Convert objects to JSON while filtering out complex types | |
| * | |
| * @param {Object} object - The object to stringify | |
| * @param {Object} options - Configuration options | |
| * @param {Boolean} options.includeNulls - Include null values (default: true) | |
| * @param {Boolean} options.includeUndefined - Include undefined values (default: false) | |
| * @param {Number} options.spaces - Number of spaces for indentation (default: 2) | |
| * @returns {String} Cleaned JSON string representation of the object | |
| */ |