PHPackages                             danny50610/php-cid - 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. danny50610/php-cid

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

danny50610/php-cid
==================

0.2.0(4y ago)01.9kMITPHPPHP ^7.4|^8.0

Since Apr 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/danny50610/php-cid)[ Packagist](https://packagist.org/packages/danny50610/php-cid)[ RSS](/packages/danny50610-php-cid/feed)WikiDiscussions master Synced today

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

php-cid
=======

[](#php-cid)

[![Latest Stable Version](https://camo.githubusercontent.com/8e0ea08ed61764fe7bc67456d99587392bf91704a45ec2e43d3de9c1d8ebb868/687474703a2f2f706f7365722e707567782e6f72672f64616e6e7935303631302f7068702d6369642f76)](https://packagist.org/packages/danny50610/php-cid)[![Total Downloads](https://camo.githubusercontent.com/6049707e7d250563c32714110944be62e317edfb24a8b8bab9b5d4788d164971/687474703a2f2f706f7365722e707567782e6f72672f64616e6e7935303631302f7068702d6369642f646f776e6c6f616473)](https://packagist.org/packages/danny50610/php-cid)

Example
-------

[](#example)

```
use Danny50610\Cid\CID;
use Danny50610\Cid\Codec;
use Danny50610\Cid\Multihash;
use Danny50610\Cid\MultihashType;

// true for binary
$hash = hash('sha256', 'The quick brown fox jumped over the lazy dog.', true);

$type = MultihashType::get('sha2_256');

// v0
$multihash = new Multihash($type, $hash);

$cidv0 = CID::makeV0($multihash);
print($cidv0 . PHP_EOL); // QmVPKnh2nScP7zfMWFEC6JAcruqxPncbMmAMa98AiMZCZQ

// v1
$cidv1 = new CID(1, Codec::get('DagProtobuf'), $type, $hash);
print($cidv1 . PHP_EOL); // zdj7WcUaA86dv5yzhyHEzBoxg1BV83Q7L2jE5ZtEwWqXo86jL
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Total

2

Last Release

1536d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/56a0b13f5c10263516e4e96bdb4743e5e10fa2a9e5e3977dd23222fcb1de63ad?d=identicon)[danny50610](/maintainers/danny50610)

---

Top Contributors

[![danny50610](https://avatars.githubusercontent.com/u/3949245?v=4)](https://github.com/danny50610 "danny50610 (10 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/danny50610-php-cid/health.svg)

```
[![Health](https://phpackages.com/badges/danny50610-php-cid/health.svg)](https://phpackages.com/packages/danny50610-php-cid)
```

###  Alternatives

[enjin/platform-core

The core package for the Enjin Platform.

109.3k3](/packages/enjin-platform-core)[millipress/millirules

A declarative rule engine for PHP that turns complex conditional logic into readable when-then rules. Features a fluent builder API, lazy-loaded context for performance, smart operator inference, and works seamlessly in pure PHP or WordPress.

164.3k5](/packages/millipress-millirules)

PHPackages © 2026

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