承接 metarete/comuni-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

metarete/comuni-bundle

最新稳定版本:1.0.8

Composer 安装命令:

composer require metarete/comuni-bundle

包简介

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

README 文档

README

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:

$ composer require metarete/comuni-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

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:

$ bin/console metarete:comuni:load /<path_to>/gi_comuni_cap.json

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

Garda Informatica

Credits

Metarete s.r.l.

统计信息

  • 总下载量: 25
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 4
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-13