PHPackages                             kjdev/bzip3 - 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. kjdev/bzip3

ActivePhp-ext

kjdev/bzip3
===========

A compression/decompression with BZip3

0.1.2(5mo ago)4491MITCPHP &gt;= 8.1.0CI passing

Since Apr 10Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/kjdev/php-ext-bzip3)[ Packagist](https://packagist.org/packages/kjdev/bzip3)[ RSS](/packages/kjdev-bzip3/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Bzip3 Extension for PHP
=======================

[](#bzip3-extension-for-php)

This extension allows [bzip3](https://github.com/kspalaiologos/bzip3).

Build
-----

[](#build)

```
% git clone --recursive --depth=1 https://github.com/kjdev/php-ext-bzip3.git
% cd php-ext-bzip3
% phpize
% ./configure
% make
$ make install
```

To use the system library.

```
% ./configure --with-libbzip3
```

Configuration
-------------

[](#configuration)

php.ini:

```
extension=bzip3.so
```

Usage
-----

[](#usage)

```
$compress = Bzip3\compress($data);
$var = Bzip3\uncompress($compress);
```

Function synopsis
-----------------

[](#function-synopsis)

```
Bzip3\comporess(string $data, int $block_size = 8): string|false
Bzip3\uncomporess(string $data): string|false
```

---

### Bzip3\\compress

[](#bzip3compress)

```
Bzip3\compress(string $data, int $block_size = 8): string|false
```

This function compress a string.

**Parameters:**

- data

    The data to compress.
- block\_size

    compress block size in MiB. (Defaults to 8)

**Return Values:**

The compressed string or FALSE if an error occurred.

---

### Bzip3\\uncompress

[](#bzip3uncompress)

```
Bzip3\uncompress(string $data): string|false
```

This function uncompress a compressed string.

**Parameters:**

- data

    The data compressed by Bzip3\\compress().

**Return Values:**

The original uncompressed data or FALSE on error.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance72

Regular maintenance activity

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~121 days

Total

3

Last Release

160d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/18072f3d3a57cc6f8e11a0f405648caf4927261c0fc122f9cfa0d1441e087fb7?d=identicon)[kjdev](/maintainers/kjdev)

---

Top Contributors

[![kjdev](https://avatars.githubusercontent.com/u/465132?v=4)](https://github.com/kjdev "kjdev (41 commits)")

### Embed Badge

![Health badge](/badges/kjdev-bzip3/health.svg)

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

PHPackages © 2026

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