{"id":27114306,"url":"https://github.com/xenocrat/var2zip","last_synced_at":"2025-10-21T17:56:15.642Z","repository":{"id":80077228,"uuid":"268277084","full_name":"xenocrat/var2zip","owner":"xenocrat","description":"A PHP class for creating simple Zip archives in RAM.","archived":false,"fork":false,"pushed_at":"2024-11-24T11:17:31.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-18T23:05:30.292Z","etag":null,"topics":["archive","php","zip","zip-compression"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xenocrat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2020-05-31T12:38:53.000Z","updated_at":"2024-11-24T11:16:48.000Z","dependencies_parsed_at":"2025-06-10T22:02:45.824Z","dependency_job_id":"f0f09ae2-c1ab-4a34-864d-88ca0e7d7e19","html_url":"https://github.com/xenocrat/var2zip","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/xenocrat/var2zip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xenocrat%2Fvar2zip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xenocrat%2Fvar2zip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xenocrat%2Fvar2zip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xenocrat%2Fvar2zip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xenocrat","download_url":"https://codeload.github.com/xenocrat/var2zip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xenocrat%2Fvar2zip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280308522,"owners_count":26308494,"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","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["archive","php","zip","zip-compression"],"created_at":"2025-04-07T03:56:53.623Z","updated_at":"2025-10-21T17:56:15.587Z","avatar_url":"https://github.com/xenocrat.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## What is this?\n\nvar2zip is a PHP class for creating simple Zip archives in RAM.\n\n## Requirements\n\n* PHP 8.0+\n* ZLIB extension (optional)\n\n## Limitations\n\n* Maximum entry size is 4 GiB\n* Directories are not supported\n\n## Usage\n\nCreate a new instance:\n\n    $var2zip = new \\xenocrat\\var2zip();\n\nAdd an entry read from disk:\n\n    $file = file_get_contents(\"README.md\");\n    $var2zip-\u003eadd(\"README.md\", $file);\n\nAdd an entry with last-modified timestamp:\n\n    $modified = strtotime(\"1982-09-09T20:19:11Z\");\n    $var2zip-\u003eadd(\"hello.txt\", \"Hello, world!\", $modified);\n\nSet the compression level (1-9, or 0 to disable):\n\n    $var2zip-\u003ecompression_level = 9;\n\nExport the Zip archive and write to disk:\n\n    $zip = $var2zip-\u003eexport();\n    file_put_contents(\"archive.zip\", $zip);\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxenocrat%2Fvar2zip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxenocrat%2Fvar2zip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxenocrat%2Fvar2zip/lists"}