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

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

weifd/tools
===========

封装一些常用的工具

0.5(3y ago)220MITPHPPHP ^7.0

Since Sep 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/DXPHP/tools)[ Packagist](https://packagist.org/packages/weifd/tools)[ RSS](/packages/weifd-tools/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (6)Used By (0)

tools
=====

[](#tools)

#### 封装了一些工作中常用到的方法(有工作用到自己写的，也有网上看到值得记录的，也有一些是框架里面搬过来的)

[](#封装了一些工作中常用到的方法有工作用到自己写的也有网上看到值得记录的也有一些是框架里面搬过来的)

```
composer require weifd/tools

```

#### Demo

[](#demo)

```
use \Tools\Arr;

Arr::array2Object();
```

```
use \Tools\Sql;

$arr = [
    [
        'name' => 'zhang3',
        'age' => '20',
        'height' => 180,
    ],
    [
        'name' => 'li4',
        'age' => '25',
        'height' => 170,
    ],
];
echo Sql::insertSql('user',$arr);
//INSERT INTO `user`( `name` ,`age` ,`height` ) values ('zhang3','20','180') , ('li4','25','170');

echo Sql::updateFiledSql('user',$arr,'name','id');
//UPDATE `user` SET `name` = CASE `id`  WHEN 1 THEN 'zhangsan'  WHEN 2 THEN 'lisi'  WHEN 3 THEN 'wangwu' END WHERE `id` IN (1,2,3);
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

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

Every ~0 days

Total

5

Last Release

1333d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cf9edef2de68943d778a1fb0e2a558a0249565f96cf3cb6e1b40fe3ad0ca3d52?d=identicon)[DXPHP](/maintainers/DXPHP)

---

Top Contributors

[![DXPHP](https://avatars.githubusercontent.com/u/34102132?v=4)](https://github.com/DXPHP "DXPHP (25 commits)")

### Embed Badge

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

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

###  Alternatives

[haruncpi/laravel-h

A helper package for Laravel Framework

477.2k](/packages/haruncpi-laravel-h)

PHPackages © 2026

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