Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 568 Bytes

README.md

File metadata and controls

30 lines (18 loc) · 568 Bytes

US States List

Build Status

A library that provides a list of US states and territories.

Requirements

PHP 7

Installation

composer require cdtweb/us-states-list

Usage

<?php
use Cdtweb\UsStatesList;

// Get array of abbreviation => name for each state
$states = UsStatesList::all();

// Get array of abbreviations
$abbreviations = UsStatesList::abbreviations();

// Get array of names
$names = UsStatesList::names();