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

ActiveLibrary

lag/string-utils
================

PHP class to help string manipulation

v1.2(6y ago)28.5k3MITPHPPHP ^7.1CI failing

Since Jul 26Pushed 5y agoCompare

[ Source](https://github.com/larriereguichet/string-utils)[ Packagist](https://packagist.org/packages/lag/string-utils)[ RSS](/packages/lag-string-utils/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (3)

[![Build Status](https://camo.githubusercontent.com/31ccae40f3e4600862f25196edc6bc648953bf293c5fb3780d5392da6ca0d614/68747470733a2f2f7472617669732d63692e6f72672f6c61727269657265677569636865742f737472696e672d7574696c732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/larriereguichet/string-utils)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/96b12523d61d33382fdba8da67b86409dd37f632ef5e84ae9e365988f241aaac/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c61727269657265677569636865742f737472696e672d7574696c732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/larriereguichet/string-utils/?branch=master)[![Build Status](https://camo.githubusercontent.com/d3d1e09fb12b3db9cb43dde202630b04f8686f566878e0f49335e8674bddaaca/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c61727269657265677569636865742f537472696e672d7574696c732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/larriereguichet/String-utils/build-status/master)[![Code Intelligence Status](https://camo.githubusercontent.com/c2c3fe7f257c2039d2d0935b1581c7fd7dc9dd034cb77f3b08cf64bed9f96587/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c61727269657265677569636865742f537472696e672d7574696c732f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/code-intelligence)[![SensioLabsInsight](https://camo.githubusercontent.com/3e63f619a3297aa5497f08d7145dfec42c822c5c1dcf6da2afcea482a0b71565/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f63386532383635342d343463372d343666332d393435302d3439376533376264613364302f6d696e692e706e67)](https://insight.sensiolabs.com/projects/c8e28654-44c7-46f3-9450-497e37bda3d0)

string-utils
============

[](#string-utils)

**string-utils** is a static PHP class to help string manipulation. It adds methods to extract the start or the end of a string, tests if a string starts or ends with an other string, and camelize or underscore string.

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

[](#installation)

```
composer require lag/string-utils
```

Usage
-----

[](#usage)

### Return start or end of a string

[](#return-start-or-end-of-a-string)

```
