PHPackages                             mheinzerling/stringutils - 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. mheinzerling/stringutils

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

mheinzerling/stringutils
========================

StringUtils class is similar to Apache Commons StringUtils for Java. It will be extended incrementally.

3.0.0(9y ago)04836MITPHP ^7.1.0

Since Oct 31Compare

[ Source](https://github.com/mheinzerling/php-stringutils)[ Packagist](https://packagist.org/packages/mheinzerling/stringutils)[ RSS](/packages/mheinzerling-stringutils/feed)WikiDiscussions Synced 1w ago

READMEChangelogDependencies (2)Versions (6)Used By (6)

[![Build Status](https://camo.githubusercontent.com/b0920218de2a780b3986c5e8a872c440f76d699791c83045160dd3b89ebeecdb/68747470733a2f2f7472617669732d63692e6f72672f6d6865696e7a65726c696e672f7068702d737472696e677574696c732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mheinzerling/php-stringutils) [![Code Climate](https://camo.githubusercontent.com/a5f3b7fcb8f45e9cd0bc037899de9d6a26e05d3a87f6beac87a42d8d6e5deb64/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6d6865696e7a65726c696e672f7068702d737472696e677574696c732f6261646765732f6770612e737667)](https://codeclimate.com/github/mheinzerling/php-stringutils) [![Test Coverage](https://camo.githubusercontent.com/7a9a7d16ed743cf3fcf8284bc76fe5b9f450522ee2927a33b3660bfb3d3e3be4/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6d6865696e7a65726c696e672f7068702d737472696e677574696c732f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/mheinzerling/php-stringutils/coverage) [![Issue Count](https://camo.githubusercontent.com/628934b73f8823d150ba66b13da332f5b9d07af07f5e403a3790147200e34cc9/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6d6865696e7a65726c696e672f7068702d737472696e677574696c732f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/mheinzerling/php-stringutils)

\#mheinzerling/stringutils

This is a small library similar to Apache Commons StringUtils for Java.

\##Composer "require": { "mheinzerling/stringutils": "^3.0.0" },

\##Methods StringUtils::startsWith StringUtils::endsWith StringUtils::contains StringUtils::firstCharToUpper StringUtils::firstCharToLower StringUtils::trimExplode StringUtils::isBlank StringUtils::findAndRemove StringUtils::implode StringUtils::findMatchingBracketPos StringUtils::toLower Escape::html

\##Changelog

### 3.0.0

[](#300)

- update to PHP 7.1
- StringUtils::toLower

### 2.2.0

[](#220)

- add StringUtils::findAndRemove
- add StringUtils::implode
- make StringUtils::startsWith/endsWith ignore case
- add StringUtils::trimExplode characters
- add StringUtils::findMatchingBracketPos

### 2.1.0

[](#210)

- add Escape utility class

### 2.0.0

[](#200)

- update to PHP 7

### 1.0.0

[](#100)

- initial version

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

5

Last Release

3515d ago

Major Versions

1.0.0 → 2.0.02016-10-31

2.1.1 → 3.0.02016-12-30

PHP version history (3 changes)2.0.0PHP &gt;=7.0.0

2.1.1PHP ^7.0.0

3.0.0PHP ^7.1.0

### Community

Maintainers

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

---

Top Contributors

[![mheinzerling](https://avatars.githubusercontent.com/u/2889071?v=4)](https://github.com/mheinzerling "mheinzerling (24 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mheinzerling-stringutils/health.svg)

```
[![Health](https://phpackages.com/badges/mheinzerling-stringutils/health.svg)](https://phpackages.com/packages/mheinzerling-stringutils)
```

PHPackages © 2026

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