The Lyssal geography bundle
The Lyssal geography bundle permits to use and manipulate geographic data and langugages., (*1)
, (*2)
Installation
Read the installation documentation., (*3)
Entities
All entities have an entity manager (if you use LyssalDoctrineOrmBundle
), a decorator and an appellation (if you use LyssalEntityBundle
), and an admin (if you use SonataAdmin
)., (*4)
Entities are:, (*5)
- Country
- AdministrativeArea (for states, French regions, etc)
- SubAdministrativeArea (for counties, French departments, etc)
- City
- PostalCode
- Language
Command
Import data
Empty and fill data:, (*6)
php bin/console lyssal:geography:database:fill --locale=fr
Available locales are fr
(French) and en
(English)., (*7)
Warning: All datatables will be empty after the command's call., (*8)
The command fill:, (*9)
- All countries
- The French regions with names in French
- The French departments with names in French
- The French cities with names in French, and postal codes
CSV
LyssalGeographyBundle
use CVS from sql.sh
for countries, departments and cities., (*10)
Ce(tte) oeuvre de http://sql.sh est mise Ă disposition selon les termes de la licence Creative Commons Attribution â Partage dans les MĂȘmes Conditions 4.0 International(http://creativecommons.org/licenses/by-sa/4.0/)., (*11)
PhpDoc
Execute :, (*12)
phpdoc -c doc/phpdoc.tpl.xml