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

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

jameslevi/string
================

Is a simple library that provides common string functions not natively provided by PHP.

v1.0.1(5y ago)0524MITPHPPHP &gt;=5.3.0

Since May 2Pushed 5y ago1 watchersCompare

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

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

String Helpers
==============

[](#string-helpers)

[![](https://camo.githubusercontent.com/07387d0affdc140ca0f9e4fbc1b495ddabab79d6eb29331167dd4c4e2f9ae500/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d76312e302e312d696e666f726d6174696f6e616c3f7374796c653d666c6174266c6f676f3d2533434c4f474f5f4e414d45253345266c6f676f436f6c6f723d776869746526636f6c6f723d326262633861)](https://camo.githubusercontent.com/07387d0affdc140ca0f9e4fbc1b495ddabab79d6eb29331167dd4c4e2f9ae500/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d76312e302e312d696e666f726d6174696f6e616c3f7374796c653d666c6174266c6f676f3d2533434c4f474f5f4e414d45253345266c6f676f436f6c6f723d776869746526636f6c6f723d326262633861) [![](https://camo.githubusercontent.com/b4344b50cc4d00bc34f5209dfc527e7180da7c06507ab149bddbe79d0313e021/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d696e666f726d6174696f6e616c3f7374796c653d666c6174266c6f676f3d2533434c4f474f5f4e414d45253345266c6f676f436f6c6f723d776869746526636f6c6f723d326262633861)](https://camo.githubusercontent.com/b4344b50cc4d00bc34f5209dfc527e7180da7c06507ab149bddbe79d0313e021/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d696e666f726d6174696f6e616c3f7374796c653d666c6174266c6f676f3d2533434c4f474f5f4e414d45253345266c6f676f436f6c6f723d776869746526636f6c6f723d326262633861)

Is a simple library that provides common string functions not natively provided by PHP.

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

[](#installation)

1. You can install via composer.

```
composer require jameslevi/string

```

2. If you are not using any PHP framework, just paste this code at the upper part of your code to include composer autoload mechanism in your project.

```
