PHPackages                             wnx/php-swiss-cantons - 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. wnx/php-swiss-cantons

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

wnx/php-swiss-cantons
=====================

Search for Swiss Cantons by name or abbreviation.

5.2.0(5mo ago)1855.4k↓39.4%2[1 PRs](https://github.com/stefanzweifel/php-swiss-cantons/pulls)2MITPHPPHP ^8.2CI passing

Since Jun 29Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/stefanzweifel/php-swiss-cantons)[ Packagist](https://packagist.org/packages/wnx/php-swiss-cantons)[ Docs](https://github.com/stefanzweifel/php-swiss-cantons)[ Fund](https://buymeacoff.ee/3oQ64YW)[ GitHub Sponsors](https://github.com/stefanzweifel)[ RSS](/packages/wnx-php-swiss-cantons/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (24)Used By (2)

🇨🇭 PHP Swiss Cantons
====================

[](#-php-swiss-cantons)

[![tests](https://github.com/stefanzweifel/php-swiss-cantons/workflows/tests/badge.svg)](https://github.com/stefanzweifel/php-swiss-cantons/workflows/tests/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/76eabf8631c39311b5624334fc3a3a0f1c1dbbdbf2e393524bdba1fccd059f8e/68747470733a2f2f706f7365722e707567782e6f72672f776e782f7068702d73776973732d63616e746f6e732f762f737461626c65)](https://packagist.org/packages/wnx/php-swiss-cantons)[![Total Downloads](https://camo.githubusercontent.com/fc671e736b7ffcf825cf626ce72557750f280590f056f06661ce6da7daab9532/68747470733a2f2f706f7365722e707567782e6f72672f776e782f7068702d73776973732d63616e746f6e732f646f776e6c6f616473)](https://packagist.org/packages/wnx/php-swiss-cantons)[![License](https://camo.githubusercontent.com/b79ca74693aa6f73e59d864063165a0c79a946799967c662fef2a25066d35889/68747470733a2f2f706f7365722e707567782e6f72672f776e782f7068702d73776973732d63616e746f6e732f6c6963656e7365)](https://packagist.org/packages/wnx/php-swiss-cantons)

Using Javascript? Check out [@stefanzweifel/js-swiss-cantons](https://github.com/stefanzweifel/js-swiss-cantons).

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

[](#installation)

The easiest way to install the package is by using composer. The package requires PHP 8.2.

```
composer require "wnx/php-swiss-cantons"
```

Usage
-----

[](#usage)

Use the `CantonManager` Class to interact with this package. Below you find an example how you can use with in the Laravel Framework. Further you find all public API methods for `CantonManager` and `Canton`.

```
