Skip to content

Commit 54e2043

Browse files
committed
Create README.md
1 parent 13604b5 commit 54e2043

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
iso3166
2+
=======
3+
4+
ISO 3166-1 alpha-2 mapping:
5+
6+
```php
7+
echo Iso3166\Codes::map('FR');
8+
// 'France'
9+
```
10+
11+
Plus one super handy helper:
12+
13+
```php
14+
echo Iso3166\Codes::select('class', 'name', 'FR');
15+
```
16+
17+
will output:
18+
19+
```html
20+
<select class="class" name="name">
21+
<option value="AF">Afghanistan</option>
22+
...
23+
<option value="FR" selected>France</option>
24+
...
25+
</select>
26+
```

0 commit comments

Comments
 (0)