PHPackages                             oss\_think/think-helper - 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. oss\_think/think-helper

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

oss\_think/think-helper
=======================

The ThinkPHP6 Helper Package

v3.16(4y ago)06903Apache-2.0PHPPHP &gt;=7.1.0

Since Jun 3Pushed 4y agoCompare

[ Source](https://github.com/cosmosjack/think-helper)[ Packagist](https://packagist.org/packages/oss_think/think-helper)[ RSS](/packages/oss-think-think-helper/feed)WikiDiscussions 3.0 Synced 5d ago

READMEChangelogDependencies (1)Versions (21)Used By (3)

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

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

基于PHP7.1+

[![PHP Composer](https://github.com/larvatecn/think-helper/actions/workflows/php.yml/badge.svg)](https://github.com/larvatecn/think-helper/actions/workflows/php.yml)

> 以下类库都在`\\think\\helper`命名空间下

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)

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~160 days

Total

20

Last Release

1739d ago

Major Versions

v1.0.7 → v3.0.02019-03-14

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15810268?v=4)[夜未央](/maintainers/cosmosjack)[@cosmosjack](https://github.com/cosmosjack)

---

Top Contributors

[![yunwuxin](https://avatars.githubusercontent.com/u/2168125?v=4)](https://github.com/yunwuxin "yunwuxin (18 commits)")[![liu21st](https://avatars.githubusercontent.com/u/1111670?v=4)](https://github.com/liu21st "liu21st (13 commits)")[![xutongle](https://avatars.githubusercontent.com/u/46956076?v=4)](https://github.com/xutongle "xutongle (3 commits)")[![cheerego](https://avatars.githubusercontent.com/u/13394349?v=4)](https://github.com/cheerego "cheerego (2 commits)")[![NHZEX](https://avatars.githubusercontent.com/u/14545600?v=4)](https://github.com/NHZEX "NHZEX (2 commits)")[![liuqiandev](https://avatars.githubusercontent.com/u/50485460?v=4)](https://github.com/liuqiandev "liuqiandev (1 commits)")[![ymiras](https://avatars.githubusercontent.com/u/34847405?v=4)](https://github.com/ymiras "ymiras (1 commits)")[![9007967](https://avatars.githubusercontent.com/u/33853639?v=4)](https://github.com/9007967 "9007967 (1 commits)")[![52fhy](https://avatars.githubusercontent.com/u/8773263?v=4)](https://github.com/52fhy "52fhy (1 commits)")[![cosmosjack](https://avatars.githubusercontent.com/u/15810268?v=4)](https://github.com/cosmosjack "cosmosjack (1 commits)")[![4352570](https://avatars.githubusercontent.com/u/51403503?v=4)](https://github.com/4352570 "4352570 (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/oss-think-think-helper/health.svg)

```
[![Health](https://phpackages.com/badges/oss-think-think-helper/health.svg)](https://phpackages.com/packages/oss-think-think-helper)
```

PHPackages © 2026

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