Skip to content

Commit

Permalink
basic usage docs page - refs #5
Browse files Browse the repository at this point in the history
  • Loading branch information
alcohol committed Sep 14, 2016
1 parent ebb5f00 commit c6a947b
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/_data/menu.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Getting Started:
Introduction: /
Installing: /installing
Using: /using
Contributing: /contributing
4 changes: 2 additions & 2 deletions docs/contributing.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
layout: default
permalink: /contributing
title: Contributing
title: Contributing to league/iso3166
---

# Contributing
# Contributing to league/iso3166

Fork the [project](https://github.com/thephpleague/iso3166), create a feature branch, and send a pull request.

Expand Down
4 changes: 2 additions & 2 deletions docs/installing.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
layout: default
permalink: /installing
title: Installing
title: Installing league/iso3166
---

# Installing
# Installing league/iso3166

```
composer require league/iso3166
Expand Down
29 changes: 29 additions & 0 deletions docs/using.md
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);
```

0 comments on commit c6a947b

Please sign in to comment.