Geonames bundle
Installation
Install the bundle using composer:, (*1)
composer require timiki/geonames-bundle:*
or add to composer.json, (*2)
{
require: {
"timiki/geonames-bundle": "*"
}
}
Add the bundle to your AppKernel.php:, (*3)
$bundles = array(
// ...
new Timiki\Bundle\GeonamesBundle\GeonamesBundle(),
// ...
);
Install or update database schema:, (*4)
console doctrine:schema:update --force
or
console doctrine:schema:update --dump-sql
Load Geonames data:, (*5)
console geonames:update
Update data
For update Geonames data run next command:, (*6)
console geonames:update