定制 logicexception/german-administrative-area-keys 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

logicexception/german-administrative-area-keys

Composer 安装命令:

composer require logicexception/german-administrative-area-keys

包简介

german administrative area keys

README 文档

README

This package contains types and classes for german area keys AGS (Amtlicher Gemeindeschlüssel) and ARS (Amtlicher Regionalschlüssel).

You can download the latest record of all german administrative areas from:

https://www.destatis.de/DE/Themen/Laender-Regionen/Regionales/Gemeindeverzeichnis/_inhalt.html

How to use

AGS

Provides a class which represents an Amtlichen Gemeindeschlüssel data object. You can create a new object by passing each part of an AGS via constructor or parse an AGS String via static fromString method.

// pass each part of AGS as constructor parameter
$ags = new AGS("14", "7", "30", "070");

// pass full AGS string via parseString method
$ags = AGS::fromString("14730070");

ARS

Provides a class which represents an Amtlichen Regionalschlüssel data object. Similar to the AGS class you can pass each part of an ARS via constructor parameter or parse an ARS String via static fromString method.

// pass each part of ARS as constructor parameter
$ars = new ARS("14", "7", "30", "0070", "070");

// pass full ARS string via parseString method
$ars = ARS::fromString("147300070070");

Technically an ARS is an AGS with a little more information (Verbandsschlüssel). So it is possible to extract an AGS from an ARS. Conversely, you cannot create an ARS from an AGS because the lack of information (Verbandsschlüssel).

$ars = new ARS("14", "7", "30", "0070", "070");
$ags = ars->toAGS();
    
echo (string)$ags;
// prints: "14730070"

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2021-06-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固