dev-master
9999999-dev https://github.com/gephart/languageGephart Language Component
MIT
The Requires
The Development Requires
0.5
0.5.0.0 https://github.com/gephart/languageGephart Language Component
MIT
The Requires
The Development Requires
Wallogit.com
2017 © Pedro Peláez
Gephart Language Component
composer require gephart/language
config/language.json, (*2)
{
"fallback": "cs"
}
$container = new \Gephart\DependencyInjection\Container();
/** @var \Gephart\Configuration\Configuration $configuration */
$configuration = $container->get(\Gephart\Configuration\Configuration::class);
$configuration->setDirectory(__DIR__ . "/config");
$language = $container->get(\Gephart\Language\Language::class);
echo $language->get(); // cs (fallback)
$language->set("en");
echo $language->get(); // en
Gephart Language Component
MIT
Gephart Language Component
MIT