PHPackages                             cataphract/rar - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. cataphract/rar

ActivePhp-ext[File &amp; Storage](/categories/file-storage)

cataphract/rar
==============

PHP extension for reading RAR archives using bundled unRAR library

v4.3.1(3mo ago)428624PHP-3.01C++PHP ^7.0 || ^8.0CI passing

Since Jul 22Pushed 2mo ago5 watchersCompare

[ Source](https://github.com/cataphract/php-rar)[ Packagist](https://packagist.org/packages/cataphract/rar)[ RSS](/packages/cataphract-rar/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)DependenciesVersions (5)Used By (0)

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](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.

Installation
------------

[](#installation)

### With PECL

[](#with-pecl)

To install a specific version directly from GitHub, use the `.tgz` release asset — not the auto-generated tag archive, which has an incompatible directory structure:

```
pecl install https://github.com/cataphract/php-rar/releases/download/v4.3.1/rar-4.3.1.tgz
```

Then add `extension=rar` to your `php.ini`.

### With PIE

[](#with-pie)

[PIE](https://github.com/php/pie) is the modern replacement for PECL, available from PHP 8.1+.

```
pie install rar
```

PIE automatically adds the extension to your `php.ini`.

###  Health Score

53

—

FairBetter than 96% of packages

Maintenance83

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 95.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1579 days

Total

3

Last Release

101d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/53b8ce5f39a88fe7d48c853bf017b7913a1b805453b4b5c2319d5b0dd5dfa26f?d=identicon)[cataphract](/maintainers/cataphract)

---

Top Contributors

[![cataphract](https://avatars.githubusercontent.com/u/496394?v=4)](https://github.com/cataphract "cataphract (272 commits)")[![tony2001](https://avatars.githubusercontent.com/u/42386?v=4)](https://github.com/tony2001 "tony2001 (6 commits)")[![remicollet](https://avatars.githubusercontent.com/u/270445?v=4)](https://github.com/remicollet "remicollet (4 commits)")[![weltling](https://avatars.githubusercontent.com/u/22016?v=4)](https://github.com/weltling "weltling (3 commits)")[![Alexander1000](https://avatars.githubusercontent.com/u/6797418?v=4)](https://github.com/Alexander1000 "Alexander1000 (1 commits)")

---

Tags

phpphp-extensionphp7php8rar

### Embed Badge

![Health badge](/badges/cataphract-rar/health.svg)

```
[![Health](https://phpackages.com/badges/cataphract-rar/health.svg)](https://phpackages.com/packages/cataphract-rar)
```

###  Alternatives

[venveo/craft-compress

Create smart zip files from Craft assets on the fly

124.7k](/packages/venveo-craft-compress)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
