PHPackages                             metarete/comuni-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. metarete/comuni-bundle

ActiveSymfony-bundle

metarete/comuni-bundle
======================

Symfony Bundle to load and use the updated list of Italian municipalities, CAP, and ISTAT codes.

1.0.8(5mo ago)2251MITPHPPHP &gt;=8.1

Since Mar 13Pushed 5mo ago4 watchersCompare

[ Source](https://github.com/metarete/MetareteComuniBundle)[ Packagist](https://packagist.org/packages/metarete/comuni-bundle)[ RSS](/packages/metarete-comuni-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (12)Versions (10)Used By (0)

ComuniBundle
============

[](#comunibundle)

Installation
------------

[](#installation)

### Step 1: Download the Bundle

[](#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:

```
$ composer require metarete/comuni-bundle
```

### Step 2: Enable the 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:

```
// config/bundles.php

return [
    // ...
    Metarete\ComuniBundle\ComuniBundle::class => ['all' => true],
];
```

Load database
-------------

[](#load-database)

Go to Garda Informatica website and download archive from ; unzip in your path.

Open a command console, enter your project directory and execute the following command to load the archive:

```
$ bin/console metarete:comuni:load //gi_comuni_cap.json
```

Use Service
-----------

[](#use-service)

You can call the provided `ComuniService` to:

- get a list of distinct province abbreviations (this-&gt;comuniService-&gt;getProvinceList())
- get a list of unique CAP (postal codes) from a given comune ($this-&gt;comuniService-&gt;getCAPListFromComune('Torino'))
- get a list of unique CAP (postal codes) from a given province ($this-&gt;comuniService-&gt;getCAPListFromProvincia('MI'))

Link
----

[](#link)

[Garda Informatica](https://www.gardainformatica.it/)

Credits
-------

[](#credits)

[Metarete s.r.l.](https://metarete.it)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance70

Regular maintenance activity

Popularity10

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~32 days

Recently: every ~63 days

Total

9

Last Release

171d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ad2a40c6a6948783ec777b9abc0303de7cd7a8a314dacf5190f6188da3867cb9?d=identicon)[tecnico@metarete.it](/maintainers/tecnico@metarete.it)

---

Top Contributors

[![Redeadly](https://avatars.githubusercontent.com/u/10615143?v=4)](https://github.com/Redeadly "Redeadly (9 commits)")[![carlotodeschini](https://avatars.githubusercontent.com/u/4517111?v=4)](https://github.com/carlotodeschini "carlotodeschini (7 commits)")[![DavideZMetarete](https://avatars.githubusercontent.com/u/39273315?v=4)](https://github.com/DavideZMetarete "DavideZMetarete (1 commits)")[![metarete](https://avatars.githubusercontent.com/u/121028432?v=4)](https://github.com/metarete "metarete (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/metarete-comuni-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/metarete-comuni-bundle/health.svg)](https://phpackages.com/packages/metarete-comuni-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
