PHPackages                             ali-eltaweel/codecs - 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. ali-eltaweel/codecs

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ali-eltaweel/codecs
===================

A collection of codecs for encoding and decoding data in various formats.

1.3.0(4mo ago)0727PHPPHP ^8.1

Since Jun 16Pushed 4mo agoCompare

[ Source](https://github.com/ali-eltaweel/codecs)[ Packagist](https://packagist.org/packages/ali-eltaweel/codecs)[ RSS](/packages/ali-eltaweel-codecs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (5)Used By (7)

Codecs
======

[](#codecs)

**A collection of codecs for encoding and decoding data in various formats.**

- [Codecs](#codecs)
    - [Installation](#installation)
    - [Usage](#usage)

---

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

[](#installation)

Install *codecs* via Composer:

```
composer require ali-eltaweel/codecs
```

Usage
-----

[](#usage)

```
use Codecs\ICodec;

final class Base64Codec implements ICodec {

    public final function __construct(public readonly bool $strict = false) {}

    public final function encode(mixed $value): string {

        return base64_encode($value);
    }

    public final function decode(string $code): mixed {

        return base64_decode($code, $this->strict);
    }
}

$base64Codec = new Base64Codec();

var_dump(
    $base64Codec->encode('Hello, World!'),
    $base64Codec->decode($base64Codec->encode('Hello, World!'))
);
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance73

Regular maintenance activity

Popularity8

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

Total

4

Last Release

149d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7564e10ba11b25d8700726a92f669e38be2ff9191e8f6ccdfafc36678ffab2b8?d=identicon)[ali-eltaweel](/maintainers/ali-eltaweel)

---

Top Contributors

[![ali-eltaweel](https://avatars.githubusercontent.com/u/45892756?v=4)](https://github.com/ali-eltaweel "ali-eltaweel (5 commits)")

### Embed Badge

![Health badge](/badges/ali-eltaweel-codecs/health.svg)

```
[![Health](https://phpackages.com/badges/ali-eltaweel-codecs/health.svg)](https://phpackages.com/packages/ali-eltaweel-codecs)
```

PHPackages © 2026

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