https://github.com/csidirop/h5packer
This script provides functions to create and extract H5P archives.
https://github.com/csidirop/h5packer
Last synced: about 1 year ago
JSON representation
This script provides functions to create and extract H5P archives.
- Host: GitHub
- URL: https://github.com/csidirop/h5packer
- Owner: csidirop
- License: gpl-3.0
- Created: 2025-03-13T10:12:16.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-13T10:37:25.000Z (about 1 year ago)
- Last Synced: 2025-03-13T11:28:22.989Z (about 1 year ago)
- Language: PHP
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# H5Packer
This script provides functions to create and extract [H5P](https://github.com/h5p) archives.
## Usage
To use the script, run it from the command line with the following options:
#### Unpack
Extracts an H5P archive to a directory:
```sh
php H5Packer.php unpack
```
#### Pack
Creates an H5P archive from a directory:
```sh
php H5Packer.php pack
```
## Requirements
[PHP](https://www.php.net/manual/en/install.php) with the zip extension enabled.
## Why?
This script uses PHP's native ZipArchive because generic command-line tools like zip or 7z don't generate the same archives. The H5P export process sets specific metadata, file ordering, and central directory details that ensure compatibility with H5P importers.
## License
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.