PHPackages                             lirui181/qihui - 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. lirui181/qihui

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

lirui181/qihui
==============

The PHP Helper Package

0.1(8y ago)010Apache-2.0PHP

Since Jan 11Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

php 常用的一些扩展类库
=============

[](#php-常用的一些扩展类库)

> 以下类库都在`\\qihui\\until`命名空间下

Str
---

[](#str)

> 字符串操作

```
// 检查字符串中是否包含某些字符串
Str::contains($haystack, $needles)

// 检查字符串是否以某些字符串结尾
Str::endsWith($haystack, $needles)

// 获取指定长度的随机字母数字组合的字符串
Str::random($length = 16)

// 字符串转小写
Str::lower($value)

// 字符串转大写
Str::upper($value)

// 获取字符串的长度
Str::length($value)

// 截取字符串
Str::substr($string, $start, $length = null)

```

Hash
----

[](#hash)

> 创建密码的哈希

```
// 创建
Hash::make($value, $type = null, array $options = [])

// 检查
Hash::check($value, $hashedValue, $type = null, array $options = [])

```

Time
----

[](#time)

> 时间戳操作

```
// 今日开始和结束的时间戳
Time::today();

// 昨日开始和结束的时间戳
Time::yesterday();

// 本周开始和结束的时间戳
Time::week();

// 上周开始和结束的时间戳
Time::lastWeek();

// 本月开始和结束的时间戳
Time::month();

// 上月开始和结束的时间戳
Time::lastMonth();

// 今年开始和结束的时间戳
Time::year();

// 去年开始和结束的时间戳
Time::lastYear();

// 获取7天前零点到现在的时间戳
Time::dayToNow(7)

// 获取7天前零点到昨日结束的时间戳
Time::dayToNow(7, true)

// 获取7天前的时间戳
Time::daysAgo(7)

//  获取7天后的时间戳
Time::daysAfter(7)

// 天数转换成秒数
Time::daysToSecond(5)

// 周数转换成秒数
Time::weekToSecond(5)

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

3040d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/548afe345a935a141136842ecde9ddd3ade5ccd7ed9f31bd2f9ff4a5e053290d?d=identicon)[lirui181](/maintainers/lirui181)

---

Top Contributors

[![lirui181](https://avatars.githubusercontent.com/u/2557255?v=4)](https://github.com/lirui181 "lirui181 (3 commits)")

### Embed Badge

![Health badge](/badges/lirui181-qihui/health.svg)

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

###  Alternatives

[alexandresalome/assetic-extra-bundle

Extra feature for Assetic (asset directory)

1811.4k](/packages/alexandresalome-assetic-extra-bundle)

PHPackages © 2026

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