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

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

aogg/think-helper
=================

PHP数组和字符串相关帮助类

v3.1.4(6y ago)015Apache-2.0PHPPHP &gt;=7.1.0

Since Jun 3Pushed 5y agoCompare

[ Source](https://github.com/aogg/composer-think-helper)[ Packagist](https://packagist.org/packages/aogg/think-helper)[ RSS](/packages/aogg-think-helper/feed)WikiDiscussions 3.100 Synced 5d ago

READMEChangelogDependenciesVersions (19)Used By (0)

扩展数组和字符串类库
==========

[](#扩展数组和字符串类库)

> 可参数文档地址：[https://www.kancloud.cn/manual/thinkphp6\_0/1149630](https://www.kancloud.cn/manual/thinkphp6_0/1149630)

在\\think\\helper的基础上增加
----------------------

[](#在thinkhelper的基础上增加)

> 1、对 **\\stdClass** 的支持，这样model中定义的json也能使用 **\\aogg\\think\\helper\\Arr::get($json, '')** 获取到数据

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

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

基于PHP7.1+

> 以下类库都在`\\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

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community13

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

Recently: every ~130 days

Total

18

Last Release

1979d ago

Major Versions

v1.0.7 → v3.0.02019-03-14

### Community

Maintainers

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

---

Top Contributors

[![yunwuxin](https://avatars.githubusercontent.com/u/2168125?v=4)](https://github.com/yunwuxin "yunwuxin (18 commits)")[![aogg](https://avatars.githubusercontent.com/u/8998031?v=4)](https://github.com/aogg "aogg (10 commits)")[![liu21st](https://avatars.githubusercontent.com/u/1111670?v=4)](https://github.com/liu21st "liu21st (9 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)")[![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)")[![4352570](https://avatars.githubusercontent.com/u/51403503?v=4)](https://github.com/4352570 "4352570 (1 commits)")

### Embed Badge

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

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

###  Alternatives

[hyperf/di

A DI for Hyperf.

182.8M594](/packages/hyperf-di)[pantheon-systems/quicksilver-pushback

Push commits made via the Pantheon dashboard back to original GitHub repository.

153.1M18](/packages/pantheon-systems-quicksilver-pushback)[heroyt/tournament-generator

A set of classes used to create multiple kinds of tournament brackets in PHP.

6615.2k](/packages/heroyt-tournament-generator)

PHPackages © 2026

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