mirror of
https://github.com/danielstjules/Stringy.git
synced 2025-08-11 15:54:04 +02:00
Revise why section in readme
This commit is contained in:
10
README.md
10
README.md
@@ -101,7 +101,10 @@ s('string')->toTitleCase()->ensureRight('y') == 'Stringy'
|
|||||||
## Why?
|
## Why?
|
||||||
|
|
||||||
In part due to a lack of multibyte support (including UTF-8) across many of
|
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
|
```php
|
||||||
// Standard library
|
// Standard library
|
||||||
@@ -117,11 +120,6 @@ s('fòôbàř')->toUpperCase(); // 'FÒÔBÀŘ'
|
|||||||
s('fòôbàř')->length(); // '6'
|
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
|
## Installation
|
||||||
|
|
||||||
If you're using Composer to manage dependencies, you can include the following
|
If you're using Composer to manage dependencies, you can include the following
|
||||||
|
Reference in New Issue
Block a user