diff --git a/index.html b/index.html index 1119d31..19d1ecc 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@
"require": {
- "danielstjules/stringy": "~2.0"
+ "danielstjules/stringy": "~2.1"
}
Then, after running composer update
or php composer.phar update
, you can
@@ -239,6 +240,20 @@ you can take advantage of an even simpler API as seen below:
All methods listed under "Instance methods" are available as part of a static +wrapper. For StaticStringy methods, the optional encoding is expected to be the +last argument. The return value is not cast, and may thus be of type Stringy, +integer, boolean, etc.
+ +use Stringy\StaticStringy as S;
+
+// Translates to Stringy::create('fòôbàř', 'UTF-8')->slice(0, 3);
+// Returns a Stringy object with the string "fòô"
+S::slice('fòôbàř', 0, 3, 'UTF-8');