PHPackages                             hegland/swissplace - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. hegland/swissplace

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

hegland/swissplace
==================

Deliver zip for cantons, regions and districts

1.0.1(9y ago)1413Apache License 2.0PHPPHP &gt;=7.0

Since Sep 1Pushed 9y ago1 watchersCompare

[ Source](https://github.com/rogerhegland/swissplaces)[ Packagist](https://packagist.org/packages/hegland/swissplace)[ Docs](https://github.com/rogerhegland/swissplaces)[ RSS](/packages/hegland-swissplace/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

swissplaces
===========

[](#swissplaces)

Deliver zip for cantons, regions and districts

Cantons
-------

[](#cantons)

### Get postalcodes of all cantons

[](#get-postalcodes-of-all-cantons)

- `Canton::getPostalcodes()`

### Get postalcodes of desired canton(s)

[](#get-postalcodes-of-desired-cantons)

- `Canton::getPostalcodes('TG,SG,AG')`

or

- `Canton::getPostalcodes(array('TG', 'SG', 'AG'))`

Districts
---------

[](#districts)

### Get postalcodes of all districts

[](#get-postalcodes-of-all-districts)

- `District::getPostalcodes()`

### Get postalcodes of all districts from the given canton

[](#get-postalcodes-of-all-districts-from-the-given-canton)

- District::getPostalcodes('TG')

or

- District::getPostalcodes(\[ 'TG' \])

or

- District::getPostalcodes(\[ 'TG' =&gt; \[ \] \])

### Get postalcodes of all districts from the given cantons

[](#get-postalcodes-of-all-districts-from-the-given-cantons)

- District::getPostalcodes('TG;LU')

or

- District::getPostalcodes(\[ 'TG', 'LU' \])

or

- District::getPostalcodes(\[ 'TG' =&gt; \[ \], 'LU' =&gt; \[ \] \])

### Get postalcodes of the given district

[](#get-postalcodes-of-the-given-district)

- District::getPostalcodes('TG:Arbon')

or

- District::getPostalcodes(\[ 'TG' =&gt; \[ 'Arbon' \] \])

### Get postalcodes of the given districts

[](#get-postalcodes-of-the-given-districts)

- District::getPostalcodes('TG:Arbon,Kreuzlingen')

or

- District::getPostalcodes(\[ 'TG' =&gt; \[ 'Arbon' \], 'AG' =&gt; \[ 'Aarau', 'Brugg' \] \])

Regions
-------

[](#regions)

`// coming soon`

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~284 days

Total

2

Last Release

3300d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/393c898cfe774fe2e62be217b533ffa405989c7154bca2f68a2f8b21f1124250?d=identicon)[rogerhegland](/maintainers/rogerhegland)

---

Top Contributors

[![rogerhegland](https://avatars.githubusercontent.com/u/10993943?v=4)](https://github.com/rogerhegland "rogerhegland (16 commits)")

---

Tags

switzerlandswissplaces

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hegland-swissplace/health.svg)

```
[![Health](https://phpackages.com/badges/hegland-swissplace/health.svg)](https://phpackages.com/packages/hegland-swissplace)
```

PHPackages © 2026

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