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 3d 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 19% 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

2117d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/175c4d2df0b3bc27f290c09d70472c3eb3a4c8313d607b24de587f6a24eec45b?d=identicon)[ydalbj](/maintainers/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

[kaufmanndigital/gdpr-cookieconsent

A ready-to-run package, that integrates an advanced cookie consent banner into your Neos CMS site.

2540.7k](/packages/kaufmanndigital-gdpr-cookieconsent)[selective/transformer

A strictly typed array transformer with dot-access, fluent interface and filters.

3817.8k1](/packages/selective-transformer)[derhansen/sf_banners

Banner-Management Extension based on Extbase and Fluid. Loads banners asynchronously using JavaScript.

1144.5k](/packages/derhansen-sf-banners)[martin/wn-forms-plugin

Create easy (and almost magic) AJAX forms

212.3k](/packages/martin-wn-forms-plugin)

PHPackages © 2026

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