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

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

darkfriend/php7-string
======================

PHP7 debug helper

1.0.3(5y ago)09652PHPPHP &gt;=7.0

Since Dec 21Pushed 5y ago1 watchersCompare

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

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

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

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

`composer require darkfriend/php7-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

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

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

Total

4

Last Release

2053d 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 (5 commits)")

---

Tags

helperphpphp7string-helperphphelperdevstringdevelopmentPHP7darkfriend

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/darkfriend-php7-string/health.svg)](https://phpackages.com/packages/darkfriend-php7-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)
