PHPackages                             darkfriend/php5-string - 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. darkfriend/php5-string

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

darkfriend/php5-string
======================

PHP5 debug helper

1.0.4(5y ago)02.3k2PHPPHP &gt;=5.4

Since Dec 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/darkfriend/php5-string)[ Packagist](https://packagist.org/packages/darkfriend/php5-string)[ Docs](https://github.com/darkfriend/php5-string)[ RSS](/packages/darkfriend-php5-string/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (5)DependenciesVersions (6)Used By (2)

StringHelper - хелпер для работы со строками
============================================

[](#stringhelper---хелпер-для-работы-со-строками)

`composer require darkfriend/php5-string`

- `StringHelper::htmlspecialchars($val)` - статичный метод, который делает htmlspecialchars() для строк и массивов
- `StringHelper::htmlspecialchars_decode($val)` - статичный метод, который делает htmlspecialchars\_decode() для строк и массивов
- `StringHelper::generateString($length, $chars)` - статичный метод, который возвращает сгенерированную строку нужной длины
- `StringHelper::getDeclension($value, $words)` - статичный метод, который возвращает окончания слов при слонении. *Например: 5 товаров, 1 товар, 3 товара*
- `StringHelper::truncate($string, $length, $suffix = '...', $encoding = null)` - возвращает обрезанный текст в $length символов
- `StringHelper::truncateWords($string, $count, $suffix = '...')` - возвращает обрезанный текст в $length слов

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

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

Total

5

Last Release

2055d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/302f1cdc7cb85fc89550bad0c164e195b831f50de8a2a148fa754670d5f328cc?d=identicon)[darkfriend](/maintainers/darkfriend)

---

Top Contributors

[![darkfriend](https://avatars.githubusercontent.com/u/7825114?v=4)](https://github.com/darkfriend "darkfriend (6 commits)")

---

Tags

helperphpphp5string-helperphphelperdevstringdevelopmentphp5darkfriend

### Embed Badge

![Health badge](/badges/darkfriend-php5-string/health.svg)

```
[![Health](https://phpackages.com/badges/darkfriend-php5-string/health.svg)](https://phpackages.com/packages/darkfriend-php5-string)
```

###  Alternatives

[zjkal/time-helper

一个简单快捷的PHP日期时间助手类库。 a smart PHP datetime helper library.

21128.6k1](/packages/zjkal-time-helper)[clausnz/php-helpers

A Collection of useful php helper functions.

388.7k](/packages/clausnz-php-helpers)[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2516.7k](/packages/iteks-laravel-enum)

PHPackages © 2026

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