PHPackages                             klaussilveira/simplestring - 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. klaussilveira/simplestring

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

klaussilveira/simplestring
==========================

SimpleString Class.

v1.0.0(12y ago)0173PHP

Since Oct 4Pushed 12y ago1 watchersCompare

[ Source](https://github.com/dlimars/SimpleString)[ Packagist](https://packagist.org/packages/klaussilveira/simplestring)[ RSS](/packages/klaussilveira-simplestring/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

SimpleString
============

[](#simplestring)

[![Build Status](https://camo.githubusercontent.com/a61e8e160e957803c4d5bed7a43e448f7c803fa23253d0adbbad92bf75618691/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6b6c61757373696c76656972612f53696d706c65537472696e672e706e67)](http://travis-ci.org/klaussilveira/SimpleString)

A small library for string manipulation with PHP. SimpleString uses method overloading to create an object-oriented interface for the built-in string functions in PHP. It implements a fluent interface, improving how we manipulate strings, and extends functionality by providing common implementations. It also aims to eliminate the problems of unorganized function names.

SimpleString also uses overloading to create an object-oriented interface for built-in string functions. Functions starting with str or str\_ can just be used with their actual name, not prefix. So: strtolower = tolower, str\_replace = replace. Functions whose return values are not string are invalid and will throw exceptions.

Authors and contributors
------------------------

[](#authors-and-contributors)

- [Klaus Silveira](http://www.klaussilveira.com) (Creator, developer, support)
- [Thiago Lechuga](https://github.com/thiagoalz) (Developer)
- [Guto Maia](https://github.com/gutomaia) (Developer)

License
-------

[](#license)

[New BSD license](http://www.opensource.org/licenses/bsd-license.php)

Todo
----

[](#todo)

- add more functionality, but keep the library simple and easy to use (loyal to it's name)
- create a better documentation (detail every method)
- error handling can, and should, be improved (throw decent exceptions)
- complete [Multibyte String](http://php.net/manual/book.mbstring.php) awareness

Using SimpleString
------------------

[](#using-simplestring)

The idea behind SimpleString is to keep things very easy to use, while giving lot's of power to the user. Check it out:

```
