PHPackages                             nerou/lz4frame - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. nerou/lz4frame

Abandoned → [https://github.com/kjdev/php-ext-lz4](/?search=https%3A%2F%2Fgithub.com%2Fkjdev%2Fphp-ext-lz4)ArchivedPhp-ext[Utility &amp; Helpers](/categories/utility)

nerou/lz4frame
==============

Compress/decompress data to LZ4 blocks or frames

v0.1.1(6mo ago)02MITRustPHP &gt;=8.1

Since Nov 3Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/nerou42/php-ext-lz4frame)[ Packagist](https://packagist.org/packages/nerou/lz4frame)[ Docs](https://github.com/nerou42/php-ext-lz4frame)[ RSS](/packages/nerou-lz4frame/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

LZ4 extension for PHP supporting Block and Frame format
=======================================================

[](#lz4-extension-for-php-supporting-block-and-frame-format)

Note

The pull request to add LZ4 Frame format support to [kjdev/lz4](https://github.com/kjdev/php-ext-lz4/pull/38) has been merged, such that it supports the LZ4 Frame format since version 0.6.0. Therefore and because this repository does not support compression levels, this repository is obsolete.

This extension adds support for the [LZ4 compression algorithm](https://github.com/lz4/lz4).

Unlike [kjdev/lz4](https://github.com/kjdev/php-ext-lz4), this extension...

- is based on [lz4\_flex](https://github.com/pseitz/lz4_flex) rather than [Cyan4973's LZ4](https://github.com/lz4/lz4)
- supports the LZ4 Frame format, which adds checksums, magic bytes etc.
- does not (yet) support compression levels, since lz4\_flex does not

Install
-------

[](#install)

It is recommended to install this extension via PIE:

```
pie install nerou/lz4frame
```

Usage
-----

[](#usage)

Have a look at the [stubs file](lz4frame.stubs.php) to see the API.

If you are wondering what the block vs. frame formats are, have a look at [Block Format](https://github.com/lz4/lz4/blob/dev/doc/lz4_Block_format.md) and [Frame Format](https://github.com/lz4/lz4/blob/dev/doc/lz4_Frame_format.md). Short version: While the Block format is just the compressed data in a more or less raw variant, the Frame format adds a header and footer around it, which contain magic bytes, checksums, length information etc. Therefore, the Frame format is much easier to recognize as being LZ4 compressed data compared to the Block format and you get better integrity due to the (optional) checksums.

License
-------

[](#license)

This project is licensed under the [MIT license](LICENSE.md).

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance67

Regular maintenance activity

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

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 ~3 days

Total

2

Last Release

192d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/906d4949201987c14e1e9f041bc642c60ceca366b3485529bb1a76f539c104bf?d=identicon)[cracksalad](/maintainers/cracksalad)

---

Top Contributors

[![cracksalad](https://avatars.githubusercontent.com/u/28577589?v=4)](https://github.com/cracksalad "cracksalad (6 commits)")

---

Tags

lz4lz4-framephp-extension

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nerou-lz4frame/health.svg)

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

###  Alternatives

[chowjiawei/laravel-help-plugin

Integrating useful auxiliary functions into laravel,Assistant tools based on laravel.

671.6k](/packages/chowjiawei-laravel-help-plugin)

PHPackages © 2026

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