Download the PHP package lazev/phplogpacker without Composer
On this page you can find all versions of the php package lazev/phplogpacker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download lazev/phplogpacker
More information about lazev/phplogpacker
Files in lazev/phplogpacker
Download lazev/phplogpacker
More information about lazev/phplogpacker
Files in lazev/phplogpacker
Vendor lazev
Package phplogpacker
Short Description A PHP tool for log packing and rotation
License MIT
Package phplogpacker
Short Description A PHP tool for log packing and rotation
License MIT
Please rate this library. Is it a good library?
Informations about the package phplogpacker
PHPLogPacker
A lightweight PHP utility to automatically compress and archive files when they reach a defined size threshold.
✨ Features
- ✅ Compresses files >50MB (default) using 7Zip or fallback to Zip
- ✅ Recursive directory scanning (includes subfolders)
- ✅ Configurable retention policy and compression settings
- ✅ Zero dependencies – pure PHP CLI tool
🚀 Usage
Basic Command
How It Works
- Scans
/target/directory/
and all subfolders - Compresses files exceeding
max_file_size_MB
(default: 50MB) - Maintains
num_files_archived
versions (default: 5) - Oldest archives are automatically deleted
⚙️ Configuration (optional)
To customize, create a logpacker.ini
file in the script's root directory:
🔄 Archive Rotation Example
Original structure:
After first run:
After subsequent runs:
📦 Compression Methods
- 7Zip (default, if installed on system)
- Zip (fallback if 7Zip unavailable)
📜 License
Open-source under the MIT License.
All versions of phplogpacker with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4 || ^8.0
The package lazev/phplogpacker contains the following files
Loading the files please wait ....