PHPackages                             ydalbj/utils - 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. ydalbj/utils

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

ydalbj/utils
============

通用类库

v0.3(5y ago)02PHPPHP &gt;=7.1CI failing

Since Jan 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ydalbj/utils)[ Packagist](https://packagist.org/packages/ydalbj/utils)[ RSS](/packages/ydalbj-utils/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

关于 Ydalbj/Utils
===============

[](#关于-ydalbjutils)

这是一个自定义PHP通用Helper类库(DateTime,Character相关辅助类),Trait类库(统计运行时间,内存使用情况)

Installation
------------

[](#installation)

```
composer require Ydalbj\Utils

```

Usage Example
-------------

[](#usage-example)

```
use Ydalbj\Utils\Helpers\DateTimeHelper;

...

  $time = 12.123;
  $result = DataTimeHelper::formatMicrotime($time);

...

```

```
use Ydalbj\Utils\Traits\TimeLapseBehavior

class XXX {
   use TimeLapseBehavior;

   ...
    $name = 'test';
    $this->startRecordTime($name);
    $this->getElapsedTime($name);
   ...

```

\#TODO 添加单元测试覆盖率检测

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

3

Last Release

2164d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7308871?v=4)[Liu Hui](/maintainers/ydalbj)[@ydalbj](https://github.com/ydalbj)

---

Top Contributors

[![ydalbj](https://avatars.githubusercontent.com/u/7308871?v=4)](https://github.com/ydalbj "ydalbj (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ydalbj-utils/health.svg)

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

###  Alternatives

[koriym/spaceman

58727.8k](/packages/koriym-spaceman)[davwheat/flarum-ext-ads

Ads support for your Flarum forum.

1311.2k](/packages/davwheat-flarum-ext-ads)[php-brasil/collection

147.8k1](/packages/php-brasil-collection)

PHPackages © 2026

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