cdtweb / us-states-list

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:PHP 100.0%