PHP code example of ladela / personal-translations-widget-bundle
1. Go to this page and download the library: Download ladela/personal-translations-widget-bundle 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/ */
ladela / personal-translations-widget-bundle example snippets
use Ladela\PersonalTranslationsWidgetBundle\TranslationsGetter\TranslationsGetterInterface;
class LanguagesGetter implements TranslationsGetterInterface
{
public function getLanguages()
{
return array('en' => 'English', 'de' => 'Deutsch');
}
}