Download the PHP package tobento/app-language without Composer
On this page you can find all versions of the php package tobento/app-language. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package app-language
App Language
Language support for the app.
Table of Contents
- Getting Started
- Requirements
- Documentation
- App
- Language Boot
- Language Config
- App Languages
- Current And Default App Language
- Resolving Current Language
- Localizing Routes
- Localizing Routes With Domains
- Area Languages
- Credits
Getting Started
Add the latest version of the app language project running this command.
Requirements
- PHP 8.0 or greater
Documentation
App
Check out the App Skeleton if you are using the skeleton.
You may also check out the App to learn more about the app in general.
Language Boot
The language boot does the following:
- installs and loads language config file
- language interfaces implementation based on config
- determines current language
- sets current language on the date formatter
Language Config
The configuration for the language is located in the file at the default App Skeleton config location.
App Languages
You may check out the Language Service to learn more about it.
Current And Default App Language
You may check out the Language Service to learn more about it.
Resolving Current Language
By default, the current language is resolved by the . You may change the implementation in the language config.
Localizing Routes
You may localize your routes by the following way:
Translation Routing
Simply, install the App Translation bundle and boot the :
By default, translations are loaded from the named resources.
You may change the localization strategy by changing the implemenation in the language config file.
Localizing Routes With Domains
You will need to specify the languages with its domain in the file:
App Example
Area Languages
You may check out the Area Languages to learn more about it.
Credits
- Tobias Strub
- All Contributors
All versions of app-language with dependencies
tobento/app Version ^1.0
tobento/app-migration Version ^1.0
tobento/app-http Version ^1.0.6
tobento/app-database Version ^1.0
tobento/service-support Version ^1.0
tobento/service-dater Version ^1.0.2
tobento/service-routing Version ^1.0.8
tobento/service-requester Version ^1.0.2
tobento/service-language Version ^1.0.4
tobento/service-repository Version ^1.0
tobento/service-repository-storage Version ^1.0