PHPackages                             seffeng/str-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. seffeng/str-helper

ActiveLibrary

seffeng/str-helper
==================

PHP extension string helper

v0.1.3(2y ago)01.7k↓100%2MITPHPPHP &gt;=7.1

Since Aug 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/seffeng/php-str-helper)[ Packagist](https://packagist.org/packages/seffeng/str-helper)[ Docs](https://github.com/seffeng/php-str-helper)[ RSS](/packages/seffeng-str-helper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (2)

PHP Helpers
-----------

[](#php-helpers)

### 安装

[](#安装)

```
# 安装
$ composer require seffeng/str-helper
```

### 目录说明

[](#目录说明)

```
|---src
|   |   Str.php
|   |---Traits
|           StrTrait.php
|---tests
|       StrTest.php

```

### 示例

[](#示例)

```
/**
 * TestController.php
 * 示例
 */
namespace App\Http\Controllers;

use Seffeng\StrHelper\Str;

class TestController extends Controller
{
    public function index()
    {
        var_dump(Str::generateChatCode(6));

        $value = 'a,342 , c,  def,';
        print_r(Str::toArray($value, ',', ' '));
    }
}
```

### 备注

[](#备注)

1、更多示例请参考 tests 目录下测试文件。

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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

Every ~174 days

Total

4

Last Release

829d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/30b3d8cc986a1ad37a55169b11812fea1cae31430dd8dbe1b3436dc58cc885bd?d=identicon)[seffeng](/maintainers/seffeng)

---

Top Contributors

[![seffeng](https://avatars.githubusercontent.com/u/3509779?v=4)](https://github.com/seffeng "seffeng (5 commits)")

---

Tags

phplaravelstringhelperslumenseffeng

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/seffeng-str-helper/health.svg)

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

###  Alternatives

[dragon-code/support

Support package is a collection of helpers and tools for any project.

238.7M100](/packages/dragon-code-support)[matchory/elasticsearch

The missing elasticsearch ORM for Laravel!

3059.0k](/packages/matchory-elasticsearch)[wxm/pdd-sdk

拼多多 SDK 封装, 调用简单、语义化增强。支持 Laravel/Lumen。

154.7k](/packages/wxm-pdd-sdk)

PHPackages © 2026

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