{"id":19987517,"url":"https://github.com/waithawoo/phpzipper","last_synced_at":"2025-06-13T15:10:24.022Z","repository":{"id":62546045,"uuid":"437565288","full_name":"waithawoo/phpzipper","owner":"waithawoo","description":"To Zip files and data","archived":false,"fork":false,"pushed_at":"2023-10-18T18:08:43.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-08T21:39:59.846Z","etag":null,"topics":["php","php-archive","php-unzip","php-zip","phparchive","phpzip","phpzipper","unzip","zip","zip-helper","ziparchive","zipper"],"latest_commit_sha":null,"homepage":"","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/waithawoo.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":"2021-12-12T14:18:29.000Z","updated_at":"2024-10-30T02:54:45.000Z","dependencies_parsed_at":"2022-11-02T22:01:34.108Z","dependency_job_id":"1f91b947-fcf2-41fe-85ad-71c861b82131","html_url":"https://github.com/waithawoo/phpzipper","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/waithawoo/phpzipper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waithawoo%2Fphpzipper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waithawoo%2Fphpzipper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waithawoo%2Fphpzipper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waithawoo%2Fphpzipper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waithawoo","download_url":"https://codeload.github.com/waithawoo/phpzipper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waithawoo%2Fphpzipper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259668614,"owners_count":22893131,"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":["php","php-archive","php-unzip","php-zip","phparchive","phpzip","phpzipper","unzip","zip","zip-helper","ziparchive","zipper"],"created_at":"2024-11-13T04:36:50.221Z","updated_at":"2025-06-13T15:10:23.983Z","avatar_url":"https://github.com/waithawoo.png","language":"PHP","readme":"# PHP Zipper\n\n[![GitHub issues](https://img.shields.io/github/issues/waithawoo/phpzipper)](https://github.com/waithawoo/phpzipper/issues)\n[![GitHub stars](https://img.shields.io/github/stars/waithawoo/phpzipper)](https://github.com/waithawoo/phpzipper/stargazers)\n[![GitHub forks](https://img.shields.io/github/forks/waithawoo/phpzipper)](https://github.com/waithawoo/phpzipper/network)\n[![GitHub license](https://img.shields.io/github/license/waithawoo/phpzipper)](https://github.com/waithawoo/phpzipper/blob/main/LICENSE)\n\n## To zip/unzip files/folders easily including password protected\n\nCreated for easy use to zip/unzip including password protected (using PHP's native ZipArchive class)\n\n- **[Installation](#installation)**\n- **[Usage](#usage)**\n\n## Installation\n\nInstall this package via [Composer](https://getcomposer.org/).\n\n```php\ncomposer require waithaw/phpzipper\n```\n\n## Usage\n\n### Create Zip object\n\n```php\nuse WaiThaw\\PhpZipper\\Zip;\n\n$zip = new Zip();\n```\n\n### Creating a Zip file from Single file or multiple files with no password\n\n```php\n$zip-\u003ecreateFromFiles('backup.zip', $file);\n//OR\n$zip-\u003ecreateFromFiles('backup.zip', $filelists);\n```\n\n### Creating a Zip file from Single file or multiple files with password\n\n```php\n$zip-\u003ecreateFromFiles('backup.zip', $file, 'password');\n//OR\n$zip-\u003ecreateFromFiles('backup.zip', $filelists, 'password');\n```\n\n### Creating a Zip file from a directory including sub directories\n\n```php\n// Without a password\n$zip-\u003ecreateFromDir('backup.zip', 'D:\\testfolder');\n// With a password\n$zip-\u003ecreateFromDir('backup.zip', 'D:\\testfolder', 'password');\n```\n\n### Extracting a simple or password-protected zip file\n\n```php\n// Extracting a simple zip file.\n$zip-\u003eextractTo('backup.zip', 'D:\\outputpath');\n//Extracting a password-protected zip file\n$zip-\u003eextractTo('backup.zip', 'D:\\outputpath', 'password');\n```\n\n### Downloading zip files\n\n```php\n// You can download the zip file at once archiving.\n$zip-\u003ecreateFromFiles('backup.zip', $file)-\u003edownload();\n$zip-\u003ecreateFromDir('backup.zip', 'D:\\testfolder')-\u003edownload();\n\n// And you can also delete the zip file after downloaded, by passing ‘delete’ string in download() method.\n$zip-\u003ecreateFromFiles('backup.zip', $file)-\u003edownload('delete');\n$zip-\u003ecreateFromDir('backup.zip', 'D:\\testfolder')-\u003edownload('delete');\n```\n\n## Security\n\nIf you discover any security related issues, please email them to [waithawoocw@gmail.com](mailto:waithawoocw@gmail.com) instead of using the issue tracker.\n\n## License\n\nThe MIT License (MIT). Please see the [License File](LICENSE) for more information.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaithawoo%2Fphpzipper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaithawoo%2Fphpzipper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaithawoo%2Fphpzipper/lists"}