1
0
mirror of https://github.com/danielstjules/Stringy.git synced 2025-08-11 07:44:12 +02:00

Revise why section in readme

This commit is contained in:
Daniel St. Jules
2015-07-28 23:59:56 -07:00
parent dd95144bf8
commit fe266445f7

View File

@@ -101,7 +101,10 @@ s('string')->toTitleCase()->ensureRight('y') == 'Stringy'
## Why?
In part due to a lack of multibyte support (including UTF-8) across many of
PHP's standard string functions.
PHP's standard string functions. But also to offer an OO wrapper around the
`mbstring` module's multibyte-compatible functions. Stringy handles some quirks,
provides additional functionality, and hopefully makes strings a little easier
to work with!
```php
// Standard library
@@ -117,11 +120,6 @@ s('fòôbàř')->toUpperCase(); // 'FÒÔBÀŘ'
s('fòôbàř')->length(); // '6'
```
But also to offer an OO wrapper around the `mbstring` module's
multibyte-compatible functions. Handling some quirks, bugs, adding some
additional functionality, and hopefully making strings a little easier to work
with!
## Installation
If you're using Composer to manage dependencies, you can include the following