1. Go to this page and download the library: Download rougin/transcribe 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/ */
rougin / transcribe example snippets
php
use Rougin\Transcribe\Locale;
use Rougin\Transcribe\Source\FileSource;
$source = new FileSource;
$source->addPath(__DIR__ . '/locales');
$locale = new Locale($source);
// Returns the "pangalan" text ---
echo $locale->get('fil_PH.name');
// -------------------------------
php
// index.php
use Rougin\Transcribe\Source\FileSource;
// ...
$source = new FileSource;
// Add the directory to the source ----
$source->addPath(__DIR__ . '/locales');
// ------------------------------------