PHPackages                             litgroup/str - 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. litgroup/str

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

litgroup/str
============

String utils for PHP.

0.2.2(1y ago)01.1kMITPHPPHP &gt;=7.1

Since Sep 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/LitGroup/str.php)[ Packagist](https://packagist.org/packages/litgroup/str)[ RSS](/packages/litgroup-str/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

String utils for PHP 7
======================

[](#string-utils-for-php-7)

> String utils for PHP.

[![Version](https://camo.githubusercontent.com/1f5ea8dcc776250a28a88380d00e80c393055ca89448ab51441f62f1693b7415/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c697467726f75702f7374722e737667)](https://packagist.org/packages/litgroup/str)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://raw.githubusercontent.com/LitGroup/str.php/master/LICENSE)[![Downloads](https://camo.githubusercontent.com/397da6a4f9d06854742aa21eb68bf6c578e210b2b4019fc6a1a0208cc8ed5022/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c697467726f75702f7374722e737667)](https://packagist.org/packages/litgroup/str)[![Build Status](https://camo.githubusercontent.com/b9760a88e506127d45e662acf08b34d2619a3e60f4890de3ca91feaf66d5d455/68747470733a2f2f7472617669732d63692e6f72672f4c697447726f75702f7374722e7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/LitGroup/str.php)

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

[](#installation)

```
composer require litgroup/str:^0.2.1
```

Example of usage
----------------

[](#example-of-usage)

### UTF-8 String Manipulation

[](#utf-8-string-manipulation)

There is the class `Str`, which contains collection of methods for string manipulation. This methods use `mb_string` internally, but you should'n be worried of encoding. `Str` methods always work with the *UTF-8* encoding.

```
