PHPackages                             yuandian/tools - 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. yuandian/tools

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

yuandian/tools
==============

A component for tools.

v1.3.1(6mo ago)1293MITPHPPHP &gt;=8.1

Since Jul 24Pushed 5mo agoCompare

[ Source](https://github.com/yuan-dian/tools)[ Packagist](https://packagist.org/packages/yuandian/tools)[ RSS](/packages/yuandian-tools/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (7)Used By (3)

工具包
===

[](#工具包)

安装
==

[](#安装)

`composer require yuandian/tools`

功能列表
====

[](#功能列表)

- 实体工具包
    - 数组转对象
    - 对象转数组
    - 对象转对象
- 字符串工具包
- 数组工具包
- 随机工具包

使用示例
====

[](#使用示例)

```
$userArray = [
    'name' => 'John Doe',
    'age' => 30,
    'status' => 'published',
    'address' => [
        'street' => 'Main St',
        'city' => 'New York'
    ],
    'addressHistory' => [
        ['street' => 'First Ave', 'city' => 'Chicago'],
        ['street' => 'Second St', 'city' => 'Boston']
    ]
];

$User = \yuandian\Tools\bean\BeanUtil::arrayToObject($userArray,\yuandian\Tools\Tests\User::class);
```

捐献
--

[](#捐献)

[![](./wechat.png)](./wechat.png)[![](./alipay.png)](./alipay.png)

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance68

Regular maintenance activity

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

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

Total

5

Last Release

203d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8101f03acc9ab7ed572b6b5c7a8b7ac3fdfc1d01060bda55bafe9ef0d7ebc5bf?d=identicon)[yuan-dian](/maintainers/yuan-dian)

---

Top Contributors

[![yuan-dian](https://avatars.githubusercontent.com/u/33216505?v=4)](https://github.com/yuan-dian "yuan-dian (23 commits)")

---

Tags

phpmappertoolsbean

### Embed Badge

![Health badge](/badges/yuandian-tools/health.svg)

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

PHPackages © 2026

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