cdtweb / canada-provinces-list
A library that provides a list of Canadian provinces and territories.
Installs: 48 980
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7
Requires (Dev)
- phpunit/phpunit: ^6.1
- squizlabs/php_codesniffer: 2.*
This package is auto-updated.
Last update: 2025-01-12 20:00:31 UTC
README
A library that provides a list of Canadian provinces and territories.
Requirements
PHP 7
Installation
composer install cdtweb/canada-provinces-list
Usage
<?php use Cdtweb\CanadaProvincesList; // Get array of abbreviation => name for each province $states = CanadaProvincesList::all(); // Get array of abbreviations $abbreviations = CanadaProvincesList::abbreviations(); // Get array of names $names = CanadaProvincesList::names();