PHPackages                             sinevia/php-library-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. sinevia/php-library-stringutils

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

sinevia/php-library-stringutils
===============================

PHP Library String Utils

v1.1.2(7y ago)23572proprietaryPHP

Since Jan 28Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Sinevia/php-library-stringutils)[ Packagist](https://packagist.org/packages/sinevia/php-library-stringutils)[ Docs](http://github.com/sinevia/php-library-utils)[ RSS](/packages/sinevia-php-library-stringutils/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (8)DependenciesVersions (6)Used By (0)

PHP Library String Utils
========================

[](#php-library-string-utils)

Utility functions for working with strings

Installation
------------

[](#installation)

```
composer require sinevia/php-library-stringutils v1.1.0

```

Methods
-------

[](#methods)

- camelize($string, $separator = " ", $remove\_separator = false)
- endsWith($string, $match) - Checks if a string ends with another string
- fixNewLines($text) - Fixes all new lines \\r\\n to become \\n
- from\_camel\_case($input)
- htmlEmailToText($html) - Simple function to convert HTML email to text
- hasLowercase($string)
- hasMinumumChars($string, $chars)
- hasOnly($string, $gama) - Checks whether a string contains only characters specified in the gama.
- hasUppercase($string)
- hasNumber($string)
- hasSubstring($string, $substring)
- isEmail($email)
- leftFrom($string, $match)
- maxWords($string, $num, $suffix = '') - Returns the first $num words of $string
- p2br($string) - Converts a well-formed string with &lt;p&gt; tags to string with &lt;br /&gt; tags
- random($length = 8, $string = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890") - Returns a random string.
- regexSurround($string,$regex,$prefix,$postfix) - Surrounds a matching regex with prefix and postfix string
- regexReplace($string,$regex,$replacementWithMatches) - Replaces a matching regex with match aware replacement string
- rightFrom($string, $match)
- slugify($string) - Creates a friendly URL slug from a string
- snakify($string, $separator = " ", $remove\_separator = false)
- splitId($string) - Given a string such as "comment\_123" or "id\_57", it returns the id
- startsWith($string, $match) - Checks if a string starts with another string.
- substringBetween($string, $match\_left, $match\_right, $ignore\_case = false)
- toWords($string) - Splits a string to words

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 92.9% 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 ~48 days

Total

5

Last Release

2835d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d935723d26f92caa8fb66c4a44cf1995c488734b54e36f5b616ac290a109ab59?d=identicon)[sinevia](/maintainers/sinevia)

---

Top Contributors

[![Sinevia](https://avatars.githubusercontent.com/u/3450815?v=4)](https://github.com/Sinevia "Sinevia (13 commits)")[![lesichkovm](https://avatars.githubusercontent.com/u/7744963?v=4)](https://github.com/lesichkovm "lesichkovm (1 commits)")

---

Tags

phpstringlibraryutilssinevia

### Embed Badge

![Health badge](/badges/sinevia-php-library-stringutils/health.svg)

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

###  Alternatives

[jasonlam604/stringizer

Stringizer is a PHP string manipulation library with support for method chaining and multibyte handling

35110.5k1](/packages/jasonlam604-stringizer)

PHPackages © 2026

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