PHPackages                             natural-cloud/collection-php - 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. natural-cloud/collection-php

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

natural-cloud/collection-php
============================

collection

v0.1(3y ago)08MITPHPPHP &gt;=7.2

Since Feb 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/naturalCloud/collection)[ Packagist](https://packagist.org/packages/natural-cloud/collection-php)[ RSS](/packages/natural-cloud-collection-php/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

collection
==========

[](#collection)

介绍
--

[](#介绍)

业务开发中会经常使用一些类型函数对 `array` 或者 `map` 之类 的数据容器进行处理，`laravel` 封装了 `Collection`,里面一些方法非常好用但是却依赖框架。 因此就有了这个类库，这里感谢 `hyperf` 和 `laravel` 的作者们。我只是对这两个框架代码裁剪，复制了下，可以在 `swoole`类的框架中方便引入开发业务。

内容
--

[](#内容)

主要 裁剪了 `Arr`, `Str` , `Collection` 工具类。只有部分方法做了测试。

安装
--

[](#安装)

```
composer requiure  natural-cloud/collection-php
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

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

1289d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9886640e67efa0f5df3a8a8d04a5a24f019d4f95d9fb6fc726678a30fa34f4df?d=identicon)[naturalCloud](/maintainers/naturalCloud)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/natural-cloud-collection-php/health.svg)

```
[![Health](https://phpackages.com/badges/natural-cloud-collection-php/health.svg)](https://phpackages.com/packages/natural-cloud-collection-php)
```

###  Alternatives

[brumann/polyfill-unserialize

Backports unserialize options introduced in PHP 7.0 to older PHP versions.

333.8M1](/packages/brumann-polyfill-unserialize)[nxp/russian-porter-stemmer

Russian porter stemmer

4592.1k1](/packages/nxp-russian-porter-stemmer)[cheprasov/php-parallel

The class allows you to run multiple operations parallel in different processes and send results to the main process. Useful if you need to run multiple independent operations simultaneously, instead of sequential execution, or if you run several independent queries, for example, queries to different data bases

1712.6k5](/packages/cheprasov-php-parallel)

PHPackages © 2026

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