{"id":19357739,"url":"https://github.com/joomla-framework/archive","last_synced_at":"2025-09-12T00:36:24.505Z","repository":{"id":7094431,"uuid":"8385710","full_name":"joomla-framework/archive","owner":"joomla-framework","description":"Joomla Framework Archive Package","archived":false,"fork":false,"pushed_at":"2024-12-10T06:59:35.000Z","size":5510,"stargazers_count":3,"open_issues_count":0,"forks_count":9,"subscribers_count":11,"default_branch":"3.x-dev","last_synced_at":"2025-03-24T06:09:16.197Z","etag":null,"topics":["extraction","joomla","joomla-framework","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joomla-framework.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"joomla","custom":"https://community.joomla.org/sponsorship-campaigns.html"}},"created_at":"2013-02-24T03:14:00.000Z","updated_at":"2024-12-10T06:59:41.000Z","dependencies_parsed_at":"2025-01-14T13:12:01.699Z","dependency_job_id":"1da63d96-06cc-4b14-9124-3bec46ac224c","html_url":"https://github.com/joomla-framework/archive","commit_stats":{"total_commits":147,"total_committers":23,"mean_commits":6.391304347826087,"dds":0.7210884353741497,"last_synced_commit":"7002a078118b95d0e5fffe0f9198b3bddee9440e"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joomla-framework%2Farchive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joomla-framework%2Farchive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joomla-framework%2Farchive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joomla-framework%2Farchive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joomla-framework","download_url":"https://codeload.github.com/joomla-framework/archive/tar.gz/refs/heads/3.x-dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246443536,"owners_count":20778248,"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":["extraction","joomla","joomla-framework","php"],"created_at":"2024-11-10T07:09:01.824Z","updated_at":"2025-09-12T00:36:24.490Z","avatar_url":"https://github.com/joomla-framework.png","language":"PHP","funding_links":["https://github.com/sponsors/joomla","https://community.joomla.org/sponsorship-campaigns.html"],"categories":[],"sub_categories":[],"readme":"# The Archive Package [![Build Status](https://github.com/joomla-framework/archive/actions/workflows/ci.yml/badge.svg?branch=3.x-dev)](https://github.com/joomla-framework/archive)\n\n[![Latest Stable Version](https://poser.pugx.org/joomla/archive/v/stable)](https://packagist.org/packages/joomla/archive)\n[![Total Downloads](https://poser.pugx.org/joomla/archive/downloads)](https://packagist.org/packages/joomla/archive)\n[![Latest Unstable Version](https://poser.pugx.org/joomla/archive/v/unstable)](https://packagist.org/packages/joomla/archive)\n[![License](https://poser.pugx.org/joomla/archive/license)](https://packagist.org/packages/joomla/archive)\n\nThe archive package will intelligently load the correct adapter for the specified archive type. It knows how to properly handle the following archive types:\n\n- zip\n- tar | tgz | tbz2\n- gz | gzip\n- bz2 | bzip2\n\nLoading files of the `t*` archive type will uncompress the archive using the appropriate adapter, and then extract via tar.\n\n## Requirements\n\n- PHP 8.1 or later\n- zlib extension for GZip support\n- bz2 extension for BZip2 support\n\n## Usage\n\n```php\n$options = array('tmp_path' =\u003e '/tmp');\n\n$archive = new Joomla\\Archive\\Archive($options)\n\n$archive-\u003eextract(__DIR__ . '/archive.zip', __DIR__ . '/destination');\n```\n\n## Overriding Adapters\n\nIf you have a custom adapter you would like to use for extracting, this package allows you to override the defaults. Just implement `ExtractableInterface` when creating your adapter, and then use the `setAdapter` method to override.\n\n```php\n\nclass MyZipAdapter implements \\Joomla\\Archive\\ExtractableInterface\n{\n\tpublic static function isSupported()\n\t{\n\t\t// Do you test\n\t\treturn true;\n\t}\n\n\tpublic function extract($archive, $destination)\n\t{\n\t\t// Your code\n\t}\n}\n\n$archive = new Archive;\n\n// You need to pass the fully qualified class name.\n$archive-\u003esetAdapter('zip', '\\\\MyZipAdapter');\n\n// This will use your\n$archive-\u003eextract('archive.zip', 'destination');\n```\n\n## Installation via Composer\n\nAdd `\"joomla/archive\": \"~3.0\"` to the require block in your composer.json and then run `composer install`.\n\n```json\n{\n\t\"require\": {\n\t\t\"joomla/archive\": \"~3.0\"\n\t}\n}\n```\n\nAlternatively, you can simply run the following from the command line:\n\n```sh\ncomposer require joomla/archive \"~3.0\"\n```\n\nIf you want to include the test sources, use\n\n```sh\ncomposer require --prefer-source joomla/archive \"~3.0\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoomla-framework%2Farchive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoomla-framework%2Farchive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoomla-framework%2Farchive/lists"}