lyssal/geography-bundle

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

Installs: 15

Dependents: 0

Suggesters: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

0.2 2018-04-07 12:00 UTC

README

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