Download the PHP package metarete/comuni-bundle without Composer
On this page you can find all versions of the php package metarete/comuni-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download metarete/comuni-bundle
More information about metarete/comuni-bundle
Files in metarete/comuni-bundle
Package comuni-bundle
Short Description Symfony Bundle to load and use the updated list of Italian municipalities, CAP, and ISTAT codes.
License MIT
Informations about the package comuni-bundle
ComuniBundle
Installation
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php
file of your project:
Load database
Go to Garda Informatica website and download archive from https://www.gardainformatica.it/database-comuni-italiani; unzip in your path.
Open a command console, enter your project directory and execute the following command to load the archive:
Use Service
You can call the provided ComuniService
to:
- get a list of distinct province abbreviations (this->comuniService->getProvinceList())
- get a list of unique CAP (postal codes) from a given comune ($this->comuniService->getCAPListFromComune('Torino'))
- get a list of unique CAP (postal codes) from a given province ($this->comuniService->getCAPListFromProvincia('MI'))
Link
Credits
All versions of comuni-bundle with dependencies
symfony/framework-bundle Version ^6.4|^7.0
symfony/twig-bundle Version ^6.4|^7.2
symfony/console Version ^6.4|7.2.*
doctrine/orm Version ^2|^3