lyssal/geography-bundle

A Symfony bundle to manage geographic entities like cities or countries.


Keywords
geography, country, region, city
License
Other

Documentation

The Lyssal geography bundle

The Lyssal geography bundle permits to use and manipulate geographic data and langugages.

SensioLabsInsight

Installation

Read the installation documentation.

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).

Entities are:

  • Country
  • AdministrativeArea (for states, French regions, etc)
  • SubAdministrativeArea (for counties, French departments, etc)
  • City
  • PostalCode
  • Language

Command

Import data

Empty and fill data:

php bin/console lyssal:geography:database:fill --locale=fr

Available locales are fr (French) and en (English).

Warning: All datatables will be empty after the command's call.

The command fill:

  • 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.

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/).

PhpDoc

Execute :

phpdoc -c doc/phpdoc.tpl.xml