{"id":15678957,"url":"https://github.com/mevdschee/compress.php","last_synced_at":"2025-05-07T09:07:28.320Z","repository":{"id":151764563,"uuid":"197895313","full_name":"mevdschee/compress.php","owner":"mevdschee","description":"Lossless compression of PHP files","archived":false,"fork":false,"pushed_at":"2019-07-30T09:07:21.000Z","size":5,"stargazers_count":15,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T09:07:21.745Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mevdschee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-20T07:24:56.000Z","updated_at":"2024-06-25T17:52:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"c19161ca-c355-451d-9b48-fb73d0e52810","html_url":"https://github.com/mevdschee/compress.php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mevdschee%2Fcompress.php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mevdschee%2Fcompress.php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mevdschee%2Fcompress.php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mevdschee%2Fcompress.php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mevdschee","download_url":"https://codeload.github.com/mevdschee/compress.php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252847491,"owners_count":21813453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T16:25:36.266Z","updated_at":"2025-05-07T09:07:28.315Z","avatar_url":"https://github.com/mevdschee.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# compress.php\n\nLossless compression of PHP files using 'halt_compiler' and 'gzdeflate'.\n\n### Usage\n\nCopy the code below to a file called 'compress.php' and then on the command line run it like this:\n\n    $ php compress.php api.php \n    compressed 'api.php' from 259 to 41 kbyte (16%)\n\nAs you can see compressing 'api.php' reduces it's file size to 16% of the original, which is typical for PHP code and the 'deflate' algorithm. And now run it again:\n\n    $ php compress.php api.php \n    uncompressed 'api.php' from 41 to 259 kbyte (624%)\n\nThe script will detect operating on an already compressed file (it looks for the 'halt_compiler' statement) and will automatically switch to uncompression mode. Since the compression is lossless you will end up with the exact same file you started with.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmevdschee%2Fcompress.php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmevdschee%2Fcompress.php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmevdschee%2Fcompress.php/lists"}