-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
34 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Getting Started: | ||
Introduction: / | ||
Installing: /installing | ||
Using: /using | ||
Contributing: /contributing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
layout: default | ||
permalink: /using | ||
title: Using league/iso3166 | ||
--- | ||
|
||
# Using league/iso3166 | ||
|
||
## Interface | ||
|
||
The following methods are provided by the `League\ISO3166\DataProvider` interface. | ||
|
||
**Lookup data by alpha2 code:** | ||
|
||
``` php | ||
$data = (new League\ISO3166\ISO3166)->alpha2($alpha2); | ||
``` | ||
|
||
**Lookup data by alpha3 code:** | ||
|
||
``` php | ||
$data = (new League\ISO3166\ISO3166)->alpha3($alpha3); | ||
``` | ||
|
||
**Lookup data by numeric code:** | ||
|
||
``` php | ||
$data = (new League\ISO3166\ISO3166)->numeric($numeric); | ||
``` |