PHP extension for reading RAR archives using the bundled UnRAR library.
This extension uses a modified version of the UnRAR library. The UnRAR library is an official open-source library by RARLabs, an auto generated subset of the RAR codebase. It is available from http://www.rarlab.com/rar_add.htm Please note that it has a more restrictive license than the PHP bindings, barring using it to re-create the RAR compression algorithm. See unrar/LICENSE.txt for details.
Some modifications have been applied to the UnRAR library, mainly to allow streaming extraction of files without using threads.
| Version | Status |
|---|---|
| master | unmaintened ❌ |
| v4.x | maintened ✅ |
Maintained PHP Versions compatibility:
| PHP Version | Status |
|---|---|
| 5.x | no ❌ |
| 7.x | no ❌ |
| 8.0 | yes ✅ |
| 8.1 | yes ✅ |
| 8.2 | yes ✅ |
| 8.3 | yes ✅ |
| 8.4 | yes ✅ |
| 8.5 | yes ✅ |
Installation system support:
| Platform | Status |
|---|---|
| PECL | no ❌ |
| PIE | yes ✅ |
To install the extension, use PIE (PHP Installer Extension) with a command like:
pie install php-win-ext/rar