PHPackages                             rde/common - 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. rde/common

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

rde/common
==========

通用函式庫 &amp; 類別庫

v2.0.0(7y ago)12641MITPHPPHP &gt;=5.5

Since Oct 24Pushed 7y ago2 watchersCompare

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

READMEChangelogDependencies (1)Versions (6)Used By (1)

工具函式庫
-----

[](#工具函式庫)

[![Build Status](https://camo.githubusercontent.com/5143374fb44b23c92ff463671401c275ca897b586542b615ab8cd4eb9137d7a9/68747470733a2f2f7472617669732d63692e6f72672f636f6c696e6465762f636f6d6d6f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/colindev/common)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b5f63ee662d9cad3b2397a1ca38d654b1bced2bae46ee9a81e513ed1d4e1de52/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f636f6c696e6465762f636f6d6d6f6e2f6261646765732f7175616c6974792d73636f72652e706e67)](https://scrutinizer-ci.com/g/colindev/common)[![Code Coverage](https://camo.githubusercontent.com/7ff06710a83392f84af91e9a05d832668235f4c74e4384ab9a361d4df6a803ec/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f636f6c696e6465762f636f6d6d6f6e2f6261646765732f636f7665726167652e706e67)](https://scrutinizer-ci.com/g/colindev/common/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/eb13a1be099ab7c7fdc3f5c1089760479fca617f70b5f92c7c280f19b500f3e1/68747470733a2f2f706f7365722e707567782e6f72672f7264652f636f6d6d6f6e2f762f737461626c652e737667)](https://packagist.org/packages/rde/common)[![Total Downloads](https://camo.githubusercontent.com/ddcd6529b832f72f4cda1aa220655f788f061ea85b440732c08698d2fe599caf/68747470733a2f2f706f7365722e707567782e6f72672f7264652f636f6d6d6f6e2f646f776e6c6f6164732e737667)](https://packagist.org/packages/rde/common)[![Latest Unstable Version](https://camo.githubusercontent.com/f621f150b3cabb91814cc3467b5f231858f5bf9d021fd57499a06ba2c94fa4a5/68747470733a2f2f706f7365722e707567782e6f72672f7264652f636f6d6d6f6e2f762f756e737461626c652e737667)](https://packagist.org/packages/rde/common)[![License](https://camo.githubusercontent.com/b451c2cc6797d4ebc8d6730c9f9fa7051bd19b4c00e1ce093acea51fd28d25e8/68747470733a2f2f706f7365722e707567782e6f72672f7264652f636f6d6d6f6e2f6c6963656e73652e737667)](https://packagist.org/packages/rde/common)[![SensioLabsInsight](https://camo.githubusercontent.com/f1ce02588e591cd5f9f19f06e07cebec54de05e11bfc3d623637943fc517ae55/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f62613634346366622d336631642d346137622d623565622d6439626434363363363834652f6d696e692e706e67)](https://insight.sensiolabs.com/projects/ba644cfb-3f1d-4a7b-b5eb-d9bd463c684e)

### 函式庫列表

[](#函式庫列表)

從陣列中取值

```
array_get($array, $key[, $callable_or_default]);

```

陣列迭代器(支援多陣列迭代)

```
array_each($callback, $array_1[, $array_2[, ...]]);

```

自訂陣列合併

```
array_merge_callback(callable $merge_driver, $base_array[, $array_1[, $array_2[, ...]]])

```

- `$merge_driver` 會收到4個參數,依序是
    - `$extend_value`
    - `$extend_key`
    - `&$base_array`
    - `$merge_driver`

詳情請參照

- ArrayFunctionsTest::testMergeNumericKey
- ArrayFunctionsTest::testMergeMixedKey
- ArrayFunctionsTest::testMergeMin
- ArrayFunctionsTest::testMergeRecursive

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

2

Last Release

2566d ago

Major Versions

v0.1.2 → v2.0.02019-05-09

PHP version history (2 changes)v0.1.2PHP &gt;=5.3.0

v2.0.0PHP &gt;=5.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/22b0425a5b48108d5aa970a9f115f73358b8257a578c0974677cc2587549196b?d=identicon)[colindev](/maintainers/colindev)

---

Top Contributors

[![colindev](https://avatars.githubusercontent.com/u/1317798?v=4)](https://github.com/colindev "colindev (70 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rde-common/health.svg)

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

###  Alternatives

[phpdocumentor/reflection

Reflection library to do Static Analysis for PHP Projects

12521.4M109](/packages/phpdocumentor-reflection)[spatie/array-functions

Some handy array helpers

24561.1k2](/packages/spatie-array-functions)[cekurte/environment

A library to get the values from environment variables and process to php data types

5884.0k7](/packages/cekurte-environment)[forxer/gravatar

A library providing easy gravatar integration.

35202.0k8](/packages/forxer-gravatar)[netgen/layouts-ui

Netgen Layouts user interface

17110.8k2](/packages/netgen-layouts-ui)[ebidtech/collection

A set of interfaces and traits to speed up the creation of collections

13119.8k6](/packages/ebidtech-collection)

PHPackages © 2026

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