gephart / language
Gephart Language Component
Installs: 393
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/gephart/language
Requires
- php: >=7.1
- gephart/configuration: 0.5.*
- gephart/dependency-injection: 0.5.*
Requires (Dev)
This package is auto-updated.
Last update: 2025-09-12 15:56:39 UTC
README
Dependencies
- PHP >= 7.1
- gephart/configuration = 0.4.*
- gephart/dependency-injection = 0.4.*
Instalation
composer require gephart/language
Using
config/language.json
{ "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