PHPackages                             death\_satan/str-helpers - 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. death\_satan/str-helpers

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

death\_satan/str-helpers
========================

string helpers Class

v1.0.2(4y ago)1111MITPHPPHP &gt;=7.3

Since Mar 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/zds-s/str-helpers)[ Packagist](https://packagist.org/packages/death_satan/str-helpers)[ RSS](/packages/death-satan-str-helpers/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (2)Versions (4)Used By (1)

php字符串常用操作封装库
=============

[](#php字符串常用操作封装库)

介绍
--

[](#介绍)

---

将常用的一些字符串操作封装到一起方便调用

---

安装
--

[](#安装)

---

```
# -vvv是方便为了看下载进度
composer require death_satan/str-helpers -vvv
```

---

方法列表
----

[](#方法列表)

方法名参数作用创建时间lowercasestring $string字符串全部转小写2022-03-11uppercasestring $string字符串全部转大写2022-03-11caramelizestring $camelCaps驼峰转蛇形2022-03-11toClassifystring $string下划线转大驼峰2022-03-11toCamelizestring $string下划线转小驼峰2022-03-11toPinYinConvertstring $string,int $option = PINYIN\_DEFAULT汉字转拼音2022-03-11toPinYinPermalinkstring $string,string $delimiter = '-',int $option = PINYIN\_DEFAULT汉字转拼音链接式2022-03-11toPinYinAbbrstring $string,string $delimiter = '-',int $option = PINYIN\_DEFAULT汉字转拼音首字母式2022-03-11toPinYinSentencestring $string,string $delimiter = '-',int $option = PINYIN\_DEFAULT汉字转拼音(带字符整段)2022-03-11toPinYinNamestring $string,int $option = PINYIN\_DEFAULT汉字转拼音(姓名)2022-03-11randomint $rand = 32随机生成字符串2022-03-11afterLaststring $string,string $find返回字符串中指定值最后一次出现后的所有内容2022-03-11finishstring $string,string $end将指定的字符串修改为以指定的值结尾的形式：2022-03-11startstring $string,string $start将给定的值添加到字符串的开始位置2022-03-11startWithstring $string,string $start判断给定的字符串是否为给定值的开头2022-03-11

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

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

Total

3

Last Release

1526d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1491884?v=4)[Jari Juslin](/maintainers/zds)[@zds](https://github.com/zds)

---

Top Contributors

[![zds-s](https://avatars.githubusercontent.com/u/49744633?v=4)](https://github.com/zds-s "zds-s (4 commits)")

### Embed Badge

![Health badge](/badges/death-satan-str-helpers/health.svg)

```
[![Health](https://phpackages.com/badges/death-satan-str-helpers/health.svg)](https://phpackages.com/packages/death-satan-str-helpers)
```

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[illuminate/support

The Illuminate Support package.

583107.1M34.5k](/packages/illuminate-support)[stoutlogic/acf-builder

An Advanced Custom Field Configuration Builder

8311.8M60](/packages/stoutlogic-acf-builder)[sculpin/sculpin

Static Site Generator

1.5k102.8k12](/packages/sculpin-sculpin)[kms/froala-editor-bundle

Provides a Froala editor integration for Symfony 4 &amp; 5.

110272.8k](/packages/kms-froala-editor-bundle)[wyrihaximus/react-child-process-messenger

Messenger decorator for react/child-process

32279.4k4](/packages/wyrihaximus-react-child-process-messenger)

PHPackages © 2026

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