Download the PHP package pinimize/laravel-bz2-compresssion without Composer
On this page you can find all versions of the php package pinimize/laravel-bz2-compresssion. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pinimize/laravel-bz2-compresssion
More information about pinimize/laravel-bz2-compresssion
Files in pinimize/laravel-bz2-compresssion
Package laravel-bz2-compresssion
Short Description A Laravel package for compression with Bzip2.
License MIT
Homepage https://github.com/pinimize/laravel-bz2-compresssion
Informations about the package laravel-bz2-compresssion
Pinimize Bzip2 Extension
This package provides Bzip2 compression support for the Pinimize compression and archive package for Laravel.
Requirements
- PHP 8.2 or higher
- Laravel 11 or higher
- The
ext-bz2
PHP extension must be installed and enabled
Installation
First, ensure that the Bzip2 PHP extension is installed. You can check this by running:
If you don't see 'bz2' in the output, you'll need to install the extension before proceeding.
Once the Bzip2 extension is installed, you can install the package via composer:
Prerequisites
This package is an extension of the Pinimize Compression and Archive package. The main Pinimize package will be automatically installed as a dependency for this package.
Configuration
After installation, you need to add the Bzip2 driver configuration to your config/pinimize.php
file. If you haven't published th main config file, you can do so by running this command:
`
Add the following to the drivers
array:
Your complete compression configuration should look something like this:
Usage
Once configured, you can use the Bzip2 driver just like any other compression driver in Pinimize. All methods available in the main Pinimize package are fully supported with the Bzip2 driver. For example:
For more detailed usage instructions and a full list of available methods, please refer to the Pinimize Compression and Archive documentation.
Important Notes
- The Bzip2 compression algorithm does not support compression levels. The
level
parameter in the configuration is ignored for the Bzip2 driver. - The Bzip2 extension must be installed on your server for this package to work. If you're using a managed hosting service, you may need to contact your hosting provider to have it installed.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Testing
Run the tests with:
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-bz2-compresssion with dependencies
pinimize/laravel-compression-and-archive Version ^0.2
ext-fileinfo Version *
ext-bz2 Version *