The League of Extraordinary Packages

Our Packages:

Presented by The League of Extraordinary Packages

Getting Started

Using league/iso3166

Interface

The following methods are provided by the League\ISO3166\ISO3166DataProvider interface.

Lookup data by alpha2 code:

$data = (new League\ISO3166\ISO3166)->alpha2($alpha2);

Lookup data by alpha3 code:

$data = (new League\ISO3166\ISO3166)->alpha3($alpha3);

Lookup data by numeric code:

$data = (new League\ISO3166\ISO3166)->numeric($numeric);
Fork me on GitHub