PHPackages                             topthink/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. topthink/think-helper

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

topthink/think-helper
=====================

The ThinkPHP6 Helper Package

v3.1.12(4mo ago)962.4M↑18.8%56[5 PRs](https://github.com/top-think/think-helper/pulls)20Apache-2.0PHPPHP &gt;=7.1.0CI failing

Since Jun 3Pushed 4mo ago9 watchersCompare

[ Source](https://github.com/top-think/think-helper)[ Packagist](https://packagist.org/packages/topthink/think-helper)[ RSS](/packages/topthink-think-helper/feed)WikiDiscussions 3.0 Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (26)Used By (20)

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

63

—

FairBetter than 99% of packages

Maintenance74

Regular maintenance activity

Popularity58

Moderate usage in the ecosystem

Community44

Growing community involvement

Maturity68

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

Recently: every ~109 days

Total

25

Last Release

143d ago

Major Versions

v1.0.7 → v3.0.02019-03-14

### Community

Maintainers

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

---

Top Contributors

[![yunwuxin](https://avatars.githubusercontent.com/u/2168125?v=4)](https://github.com/yunwuxin "yunwuxin (23 commits)")[![liu21st](https://avatars.githubusercontent.com/u/1111670?v=4)](https://github.com/liu21st "liu21st (22 commits)")[![NHZEX](https://avatars.githubusercontent.com/u/14545600?v=4)](https://github.com/NHZEX "NHZEX (4 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)")[![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)")[![ChinaMoli](https://avatars.githubusercontent.com/u/39550254?v=4)](https://github.com/ChinaMoli "ChinaMoli (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/topthink-think-helper/health.svg)

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

###  Alternatives

[crwlr/crawler

Web crawling and scraping library.

37214.8k2](/packages/crwlr-crawler)

PHPackages © 2026

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