A library that provides a list of Canadian provinces and territories.
PHP 7
composer install cdtweb/canada-provinces-list
<?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();