cdtweb/canada-provinces-list

A library that provides a list of Canadian provinces and territories.

Installs: 50 559

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/cdtweb/canada-provinces-list

1.1.0 2018-04-20 00:04 UTC

This package is auto-updated.

Last update: 2025-09-12 21:22:24 UTC


README

Build Status

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();