{"id":20077562,"url":"https://github.com/digitaledgeit/php-compression","last_synced_at":"2026-01-28T19:34:32.517Z","repository":{"id":11917209,"uuid":"14483003","full_name":"digitaledgeit/php-compression","owner":"digitaledgeit","description":"High level classes for creating compressed archives in PHP.","archived":false,"fork":false,"pushed_at":"2016-03-18T07:49:39.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-06T23:19:06.141Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digitaledgeit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-18T04:53:26.000Z","updated_at":"2019-06-07T16:33:07.000Z","dependencies_parsed_at":"2022-09-18T04:40:12.935Z","dependency_job_id":null,"html_url":"https://github.com/digitaledgeit/php-compression","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/digitaledgeit/php-compression","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaledgeit%2Fphp-compression","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaledgeit%2Fphp-compression/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaledgeit%2Fphp-compression/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaledgeit%2Fphp-compression/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitaledgeit","download_url":"https://codeload.github.com/digitaledgeit/php-compression/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaledgeit%2Fphp-compression/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28850355,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T15:15:36.453Z","status":"ssl_error","status_checked_at":"2026-01-28T15:15:13.020Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11-13T15:08:57.497Z","updated_at":"2026-01-28T19:34:32.503Z","avatar_url":"https://github.com/digitaledgeit.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-compression\n\nHigh level classes for creating compressed archives in PHP.\n\n# Example\n\nAdd entries to an archive:\n\n\t$jar = new ZipArchive('test.zip');\n\t$jar\n\t\t-\u003eaddFile($dir.'/package.json', 'package.json')\n\t\t-\u003eaddFolder($dir.'/scripts',    'scripts')\n\t\t-\u003eclose()\n\t;\n\t\nIterate entries in an archive:\n\t\t\t\n\t\t$zip = new ZipArchive('test.zip');\n\t\tforeach ($zip as $entry) {\n\t\t\techo $entry-\u003egetName().PHP_EOL;\n\t\t}\n\t\t$zip-\u003eclose();\n\t\nExtract entries from an archive:\n\t\t\t\n\t$zip = new ZipArchive('test.zip');\n    $zip-\u003eextractTo('/tmp'); //all entries\n    $zip['package.json']-\u003eextractTo('/tmp/package.json'); //a single entry\n    $zip-\u003eclose();\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitaledgeit%2Fphp-compression","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitaledgeit%2Fphp-compression","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitaledgeit%2Fphp-compression/lists"}