Awesome
Purify
use Sergiors\Purify\StringType;
$abc = new StringType('abcdef');
$abc->length(); // returns "6"
$abc->slice(-1); // returns "f"
Motivation
https://nikic.github.io/2014/03/14/Methods-on-primitive-types-in-PHP.html https://www.evernote.com/l/AqfkLqWCQlRMdaIYb5ZGbyeygGip9QilB24 (Sorry, portuguese only)
License
MIT