Download the PHP package baraja-core/country without Composer
On this page you can find all versions of the php package baraja-core/country. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download baraja-core/country
More information about baraja-core/country
Files in baraja-core/country
Package country
Short Description Country manager.
License
Homepage https://github.com/baraja-core/country
Informations about the package country
Country
Country management package.
Idea
This package provides an interface for working with countries. All countries always return as an entity that meets the Country interface. The specific implementation of the entity is decided by the package itself according to the available environment.
Possible implementations:
- DoctrineCountry
- FileCountry
The default country data is available in the json data file, according to which the data is subsequently updated.
Basic usage
The main control logic is in the CountryManager
service, which provides communication and servicing of database entities.
The country information is stored in Doctrine entities, which are automatically generated on the first call based on a data file downloaded via the API.
We use the country.io service to retrieve the data.
Usage:
Returns:
🏳️🌈 Flag support
The package fully supports the ability to get a country's flag as an emoji. To get it, simply call the method above the entity:
All versions of country with dependencies
baraja-core/ecommerce-standard Version ^0.0
baraja-core/doctrine Version ^3.0