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

ActiveLibrary

ibibicloud/think-helper
=======================

8.0.0(yesterday)04↑2900%1Apache-2.0PHP &gt;=7.2.0

Since Jul 20Compare

[ Source](https://github.com/ibibicloud/think-helper)[ Packagist](https://packagist.org/packages/ibibicloud/think-helper)[ RSS](/packages/ibibicloud-think-helper/feed)WikiDiscussions Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (1)

think-helper 助手工具库
------------------

[](#think-helper-助手工具库)

基于版本

文档地址 [https://doc.thinkphp.cn/v8\_0/think\_helper.html](https://doc.thinkphp.cn/v8_0/think_helper.html)

### 安装

[](#安装)

```
composer require ibibicloud/think-helper

```

### Str 字符串操作

[](#str-字符串操作)

```
use think\helper\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)

//驼峰转下划线
Str::snake($value, $delimiter  =  '_')

//下划线转驼峰(首字母小写)
Str::camel($value)

//下划线转驼峰(首字母大写)
Str::studly

//转为首字母大写的标题格式
Str::title($value)

```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance100

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

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

1d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/207aa3cd185919cd44f64ff5b58c4472825cef4a71adcbf446787765353ef4fa?d=identicon)[ibibicloud](/maintainers/ibibicloud)

### Embed Badge

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

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

PHPackages © 2026

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