Download the PHP package tobento/app-country without Composer
On this page you can find all versions of the php package tobento/app-country. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package app-country
App Country
Country support for the app.
Table of Contents
- Getting Started
- Requirements
- Documentation
- App
- Country Boot
- Available Country Interfaces
- Retrieve Countries
- Add Or Customize Countries
- Learn More
- Using Countries In Forms
- Country Groups
- Credits
Getting Started
Add the latest version of the app country 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.
Country Boot
The country boot does the following:
- installs country files
- implements country interfaces
Available Country Interfaces
The following interfaces are available after booting:
Check out the Country Service to learn more about the interfaces.
Retrieve Countries
You can retrieve countries by using the :
Check out the Country Repository Interface to learn more about it.
Add Or Customize Countries
Currently, countries are available in the locales , , and .
You might add or customize/override new countries by the following way:
Then just add the countries files you wish to override in the defined directory. If the file does not exist, the file from the default country directory is used.
Learn More
Using Countries In Forms
The following examples require the App View bundle with the following boots:
Example using countries column
The view:
You may check out the Select Form Element to learn more about it.
Example grouping countries by continents
The view:
Example grouping countries by custom group
The view:
Credits
- Tobias Strub
- All Contributors
All versions of app-country with dependencies
tobento/app Version ^1.0
tobento/app-migration Version ^1.0
tobento/service-country Version ^1.0
tobento/service-dir Version ^1.0