{"id":17160824,"url":"https://github.com/dimsav/unix-zipper","last_synced_at":"2025-04-13T14:11:18.492Z","repository":{"id":10565169,"uuid":"12768898","full_name":"dimsav/unix-zipper","owner":"dimsav","description":"A simple zip compression library for Unix operating systems. UnixZipper is ideal for creating backups of your projects in unix servers.","archived":false,"fork":false,"pushed_at":"2014-01-18T22:57:45.000Z","size":1064,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T05:12:34.383Z","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/dimsav.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}},"created_at":"2013-09-11T21:59:18.000Z","updated_at":"2017-09-05T09:05:27.000Z","dependencies_parsed_at":"2022-08-21T10:20:45.373Z","dependency_job_id":null,"html_url":"https://github.com/dimsav/unix-zipper","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimsav%2Funix-zipper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimsav%2Funix-zipper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimsav%2Funix-zipper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimsav%2Funix-zipper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimsav","download_url":"https://codeload.github.com/dimsav/unix-zipper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248504355,"owners_count":21115152,"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-14T22:26:09.537Z","updated_at":"2025-04-13T14:11:18.468Z","avatar_url":"https://github.com/dimsav.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UnixZipper\n\n[![Latest Stable Version](https://poser.pugx.org/dimsav/unix-zipper/v/stable.png)](https://packagist.org/packages/dimsav/unix-zipper) [![Build Status](https://travis-ci.org/laravel/framework.png)](https://travis-ci.org/dimsav/unix-zipper)\n\nA simple zip compression library for Unix operating systems.\nUnixZipper is ideal for creating backups of your projects in unix servers.\n\n## Features\n1. Easy to use\n2. Password protection\n2. Tested for stability\n\n## How does it work\n\nHere is a simple example. Feel free to check the tests to see the class in action.\n\n```php\n// Instantiate the class\n$zipper = new UnixZipper();\n\n// Add absolute paths of directories or files for compression\n$zipper-\u003eadd('/absolute/path/to/some/directory');\n$zipper-\u003eadd('/absolute/path/to/file.txt');\n\n// Exclude directories and files\n$zipper-\u003eexclude('/absolute/path/to/some/directory');\n$zipper-\u003eexclude('/absolute/path/to/some/file.txt');\n\n// Add a password if you wish\n$zipper-\u003esetPassword('my_password');\n\n// The path of the file that will be generated\n// If the given path doesn't exist, it will be created automatically.\n$zipper-\u003esetDestination('/file/after/compression/test.zip');\n\n// Do the magic\n$zipper-\u003ecompress();\n```\n\nSince version 1.2, you can set a base path, and provide the files to be compressed relatively.\n\n```php\n$zipper = new UnixZipper();\n\n// Set base path\n$zipper-\u003esetAbsolutePathAsBase('/absolute/projects');\n\n// Add relative paths of directories or files for compression\n$zipper-\u003eadd('project-1');     // /absolute/projects/project-1\n$zipper-\u003eadd('logs/file.txt'); // /absolute/projects/logs/file.txt\n\n$zipper-\u003esetDestination('/file/after/compression/test.zip');\n\n// Compress\n$zipper-\u003ecompress();\n```\n\n## Why unix\n\nThe reason I chose to make this package unix-only is because I wanted to rely\non the system's zip function, that offers stability and flexibility. It also\noffers the possibility to exclude directories recursively, a feature I couldn't\nfind in other php classes.\n\n\n## Installation\n\nInstall using composer:\n\n1. Add `\"dimsav/unix-zipper\": \"1.*\"` to your composer.json file\n2. Run `composer update`\n\n## Dependencies\n\nThe only requirements are: \n* executing the code on a unix system \n* composer for installing/autoloading\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimsav%2Funix-zipper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimsav%2Funix-zipper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimsav%2Funix-zipper/lists"}