Download the latest version from Github and unzip to your project directory
$ wget https://github.com/lornewang/sapphire/archive/master.zip
You may also install by issuing the Composer command in your terminal
$ composer lornewang/sapphire --prefer-dist
<?php
use Sapphire\Utilities\Text;
// string to be truncate
print Text::truncate('Hello World', 0, 5);
Sapphire is licensed under the MIT License - see the LICENSE
file for details