PHPackages                             krzysztofzylka/strings - 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. krzysztofzylka/strings

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

krzysztofzylka/strings
======================

String library

1.0.0(2y ago)01.6k↓34.6%2MITPHPPHP &gt;=7.4

Since Dec 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/krzysztofzylka/strings)[ Packagist](https://packagist.org/packages/krzysztofzylka/strings)[ RSS](/packages/krzysztofzylka-strings/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (2)

Install
=======

[](#install)

```
composer require krzysztofzylka/strings
```

Methods
=======

[](#methods)

Escape string
-------------

[](#escape-string)

```
\Krzysztofzylka\Strings\Strings::escape('string')
```

Undo escape string
------------------

[](#undo-escape-string)

```
\Krzysztofzylka\Strings\Strings::undoEscape('escaped string')
```

Lowercase and clean string
--------------------------

[](#lowercase-and-clean-string)

```
\Krzysztofzylka\Strings\Strings::lowerCleanString('string')
```

Cleans the given string by removing all non-alphanumeric characters and replacing spaces with dashes.
-----------------------------------------------------------------------------------------------------

[](#cleans-the-given-string-by-removing-all-non-alphanumeric-characters-and-replacing-spaces-with-dashes)

```
\Krzysztofzylka\Strings\Strings::clean('string')
```

Get first x words
-----------------

[](#get-first-x-words)

```
\Krzysztofzylka\Strings\Strings::substrWithoutLastWord('word1 word2 word3', 10)
```

Remove line breaks
------------------

[](#remove-line-breaks)

```
\Krzysztofzylka\Strings\Strings::removeLineBreaks('string')
```

Camelize
--------

[](#camelize)

```
\Krzysztofzylka\Strings\Strings::camelizeString('string')
```

Decamelize
----------

[](#decamelize)

```
\Krzysztofzylka\Strings\Strings::decamelizeString('string')
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

892d ago

### Community

Maintainers

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

---

Top Contributors

[![krzysztofzylka](https://avatars.githubusercontent.com/u/41385342?v=4)](https://github.com/krzysztofzylka "krzysztofzylka (3 commits)")

### Embed Badge

![Health badge](/badges/krzysztofzylka-strings/health.svg)

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

###  Alternatives

[rezozero/social-links

Provide social network url for sharing.

155.7k1](/packages/rezozero-social-links)

PHPackages © 2026

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