PHPackages                             eno2050/phptools - 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. eno2050/phptools

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

eno2050/phptools
================

工具

v1.0.4(5y ago)08MITPHPCI failing

Since May 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/eno2050/phptools)[ Packagist](https://packagist.org/packages/eno2050/phptools)[ RSS](/packages/eno2050-phptools/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (3)Versions (6)Used By (0)

phptools
========

[](#phptools)

php开发工具包

安装
--

[](#安装)

```
composer require eno2050/phptools

```

实例化单例类
------

[](#实例化单例类)

```
    use Eno2050\Phptools\Traits\Singleton;

    class user {
        use Singleton;
        public function sayHello(){
            return 'hello world';
        }
    }

    $user = User::getInstance();
    echo $user->sayHello();

```

arrayTools 数组工具类
----------------

[](#arraytools-数组工具类)

- changeKeyCase

```
	@param array $arr 要转换的数组
	@param boolean $flag 默认true 转换成大写
	@return array
	public function changeKeyCase(array $arr, $flag = true);

```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Total

5

Last Release

2161d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17978711?v=4)[eno2050](/maintainers/eno2050)[@eno2050](https://github.com/eno2050)

---

Top Contributors

[![eno2050](https://avatars.githubusercontent.com/u/17978711?v=4)](https://github.com/eno2050 "eno2050 (8 commits)")

### Embed Badge

![Health badge](/badges/eno2050-phptools/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)[nativephp/mobile

NativePHP for Mobile

1.1k75.1k91](/packages/nativephp-mobile)[oat-sa/tao-core

TAO core extension

66143.7k124](/packages/oat-sa-tao-core)[chameleon-system/chameleon-base

The Chameleon System core.

1028.6k5](/packages/chameleon-system-chameleon-base)

PHPackages © 2026

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