chaplean / location-bundle
Location bundle contains Entity Region/Department/City
Installs: 932
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.0.8
- chaplean/csv-bundle: ^7.0
- doctrine/doctrine-bundle: ^1.6
- doctrine/orm: ^2.5
- jms/serializer-bundle: ^1.1 || ^2.0
- sensio/framework-extra-bundle: ^3.0 || ^4.0 || ^5.0
- symfony/config: ^3.0 || ^4.0
- symfony/console: ^3.0 || ^4.0
- symfony/dependency-injection: ^3.0 || ^4.0
- symfony/yaml: ^3.0 || ^4.0
Requires (Dev)
- chaplean/codeship-scripts: ^1.0
- chaplean/coding-standard: ^1.1
- chaplean/unit-bundle: ^7.0
- mockery/mockery: dev-master
- symfony/http-kernel: ^3.0 || ^4.0
- symfony/monolog-bundle: ~2.4
- symfony/phpunit-bridge: ^4.0
- symfony/var-dumper: ^3.0 || ^4.0
- dev-master
- v10.0.5
- v10.0.4
- v10.0.3
- V10.0.2
- v10.0.1
- v10.0.0
- v9.1.0
- v9.0.0
- v8.0.0
- v7.0.1
- v7.0.0
- v6.0.1
- v6.0.0
- v5.3.0
- v5.2.1
- v5.2.0
- v5.1.0
- v5.0.0
- v4.3.1
- v4.3.0
- v4.2.3
- v4.2.2
- v4.2.1
- v4.2.0
- v4.1.1
- v4.1.0
- v4.0.0
- v3.2.1
- v3.2.0
- v3.1.1
- v3.1.0
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- v2.0.2
- v2.0.1
- v2.0.0
- v1.0.2
- v1.0.1
- v1.0.0
- dev-feature/remove-jms
- dev-dev
This package is auto-updated.
Last update: 2024-12-10 08:38:43 UTC
README
Prerequisites
This version of the bundle requires Symfony 2.8+.
Installation
1. Composer
composer require chaplean/location-bundle
2. AppKernel.php
Add
new Chaplean\Bundle\LocationBundle\ChapleanLocationBundle(),
3. Inject locations
Run
bin/console location:load:cities
or Add command in migration
public function postUp(Schema $schema) { /** @var Kernel $kernel */ $kernel = $this->container->get('kernel'); $application = new Application($kernel); $application->setAutoExit(false); $exitCode = $application->run( new ArrayInput( [ 'command' => 'location:load:cities' ] ) ); $this->abortIf($exitCode !== 0, 'see Exception above ^'); }
4. Resources
- Regions: ?
- Départements: https://www.insee.fr/fr/information/2114819 (cf "Liste des départements")
- Villes: https://www.data.gouv.fr/fr/datasets/base-officielle-des-codes-postaux/