PHPackages                             syberisle/laravel-castable-archive - 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. [Database &amp; ORM](/categories/database)
4. /
5. syberisle/laravel-castable-archive

ActiveLibrary[Database &amp; ORM](/categories/database)

syberisle/laravel-castable-archive
==================================

Tool for casting a model field as bzip or gzip

0.0.1(2y ago)06MITPHPPHP ^8.0CI passing

Since Mar 18Pushed 2y ago1 watchersCompare

[ Source](https://github.com/SyberIsle/laravel-castable-archive)[ Packagist](https://packagist.org/packages/syberisle/laravel-castable-archive)[ Docs](https://github.com/syberisle/laravel-castable-archive)[ RSS](/packages/syberisle-laravel-castable-archive/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

Laravel Model attribute to de/compress the value
================================================

[](#laravel-model-attribute-to-decompress-the-value)

[![Latest Version on Packagist](https://camo.githubusercontent.com/286e8b5cf43fa1fa7d02e139d924a023818c5ef92fcc89baa51a1e100f976d46/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737962657269736c652f6c61726176656c2d6361737461626c652d617263686976652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/syberisle/laravel-castable-archive)[![GitHub Workflow Status](https://camo.githubusercontent.com/c817201de2f75ff09b1c7003af6361342d99505c93f46d4d0d52b52a3d310ca6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f737962657269736c652f6c61726176656c2d6361737461626c652d617263686976652f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d5465737473)](https://github.com/syberisle/laravel-castable-archive/actions/workflows/tests.yml)[![Total Downloads](https://camo.githubusercontent.com/a34581590c9b60cdd3ef588cc1bb3745f2caf850010ed4ef38e2dceb81fdbe6d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f737962657269736c652f6c61726176656c2d6361737461626c652d617263686976652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/syberisle/laravel-castable-archive)

This package allows you to cast a model attribute as a compressed value using either gzip or bzip.

Available Casts:

- `SyberIsle\Laravel\Cast\Archive\BzArchive`
- `SyberIsle\Laravel\Cast\Archive\GzArchive`

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

[](#installation)

```
composer install syberisle/laravel-castable-archive
```

Usage
-----

[](#usage)

```
use SyberIsle\Laravel\Cast\Archive;

class MyModel
{
    protected $casts = [
      'field_name' => Archive\GzArchive::class
    ];
}

$model->field_name = 'kakaw' // raw attribute = b"ËNÌN,\x07\x00"
$value = $model->field_name; // = 'kakaw'
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information about recent changes.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you've found a bug regarding security please report it via the security tab of this repository.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

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

Unknown

Total

1

Last Release

786d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5eb9bc1606754fee81247bf5d4a6a4d7fb7cce1b3769de69a345c5c8e120211e?d=identicon)[dlundgren](/maintainers/dlundgren)

---

Top Contributors

[![dlundgren](https://avatars.githubusercontent.com/u/1322393?v=4)](https://github.com/dlundgren "dlundgren (2 commits)")

---

Tags

laravelbzipgzipmodel cast

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/syberisle-laravel-castable-archive/health.svg)

```
[![Health](https://phpackages.com/badges/syberisle-laravel-castable-archive/health.svg)](https://phpackages.com/packages/syberisle-laravel-castable-archive)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[silber/bouncer

Eloquent roles and abilities.

3.6k4.4M25](/packages/silber-bouncer)[watson/validating

Eloquent model validating trait.

9723.3M47](/packages/watson-validating)[spatie/laravel-model-flags

Add flags to Eloquent models

4301.1M1](/packages/spatie-laravel-model-flags)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)

PHPackages © 2026

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