1. Go to this page and download the library: Download blackbonjour/stdlib library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
blackbonjour / stdlib example snippets
$string = new StdString('My vehicle has %d wheels.');
$translation = StdString::format($string, 4);
echo $translation; // My vehicle has 4 wheels.
$format = '"%s" means "%s".';
$translation = StdString::format($format, 'Привет', new StdString('Hello'));
echo $translation; // "Привет" means "Hello".
$string = new StdString('FooBar');
echo $string[4]; // a