Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-c committed Mar 27, 2014
1 parent 13604b5 commit 54e2043
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
iso3166
=======

ISO 3166-1 alpha-2 mapping:

```php
echo Iso3166\Codes::map('FR');
// 'France'
```

Plus one super handy helper:

```php
echo Iso3166\Codes::select('class', 'name', 'FR');
```

will output:

```html
<select class="class" name="name">
<option value="AF">Afghanistan</option>
...
<option value="FR" selected>France</option>
...
</select>
```

0 comments on commit 54e2043

Please sign in to comment.