PHPackages                             verdient/bitmap - 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. verdient/bitmap

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

verdient/bitmap
===============

Bitmap for PHP

0.0.1(5y ago)0621MITPHPPHP &gt;=7.0

Since May 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Verdient/bitmap)[ Packagist](https://packagist.org/packages/verdient/bitmap)[ Docs](https://github.com/Verdient/bitmap)[ RSS](/packages/verdient-bitmap/feed)WikiDiscussions master Synced 1mo ago

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

BitMap
======

[](#bitmap)

位图

### 安装

[](#安装)

`composer require verdient/bitmap`

### 创建新的位图

[](#创建新的位图)

```
use Verdient\BitMap\BitMap;

/**
 * @var int 位图大小
 */
$size = 1024;

$bitMap = new BitMap([
	'size' => $size
]);
```

### 设置指定的位

[](#设置指定的位)

```
/**
 * 偏移量
 */
$offset = 0;

/**
  * 值，默认为1，可选1和0
  */
$value = 0;

$bitMap->set($offset, $value);
```

### 获取指定的位

[](#获取指定的位)

```
/**
 * 偏移量
 */
$offset = 0;

$bitMap->get($offset);
```

### 获取位图的大小

[](#获取位图的大小)

```
$bitMap->getSize();
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

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

Total

2

Last Release

2180d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/606eaa4bc61b11fa19f25526a3084758b7086ceb8b11cdbcafd5df11871f2437?d=identicon)[Verdient。](/maintainers/Verdient%E3%80%82)

---

Top Contributors

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

---

Tags

bitbitmap

### Embed Badge

![Health badge](/badges/verdient-bitmap/health.svg)

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

###  Alternatives

[zumba/swivel

Strategy driven feature toggles

209135.7k5](/packages/zumba-swivel)[yaroslavche/bitmask

BitMask, EnumBitMask

3453.7k1](/packages/yaroslavche-bitmask)[sokil/php-bitmap

Bitmap representation with bitwise operations

124.0k2](/packages/sokil-php-bitmap)[magefan/module-auto-related-product

Extend native Magento Up-Sells, Cross-Sells, and Related products

1834.7k2](/packages/magefan-module-auto-related-product)

PHPackages © 2026

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