Skip to content

Commit 2a76c0a

Browse files
committed
Merge branch 'master' of https://github.com/TIM168/Ip
2 parents 04d1c83 + 166d6ab commit 2a76c0a

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

README-en.md

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ $ composer require tim168/ip
1818
```
1919

2020
## Use
21+
require __DIR__ .'/vendor/autoload.php';
22+
2123
use Tim168\Ip\Ip;
2224

2325
$ip = new Ip('zh-CN'); //Support the following languages

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
[![Latest Unstable Version](https://poser.pugx.org/tim168/ip/v/unstable)](https://packagist.org/packages/tim168/ip)
99
[![Total Downloads](https://poser.pugx.org/tim168/ip/downloads)](https://packagist.org/packages/tim168/ip)
1010
[![composer.lock](https://poser.pugx.org/tim168/ip/composerlock)](https://packagist.org/packages/tim168/ip)
11+
<a href="https://www.php.net/"><img src="https://img.shields.io/badge/php-%3E%3D5.6-blue"></a>
1112

1213
README: [中文](https://github.com/TIM168/Ip/blob/master/README.md "中文")/[English](https://github.com/TIM168/Ip/blob/master/README-en.md "English")
1314

@@ -18,6 +19,8 @@ $ composer require tim168/ip
1819
```
1920

2021
## 使用
22+
require __DIR__ .'/vendor/autoload.php';
23+
2124
use Tim168\Ip\Ip;
2225

2326
$ip = new Ip('zh-CN'); //支持以下语言

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
}
1010
],
1111
"require": {
12+
"php": ">=5.6",
1213
"guzzlehttp/guzzle": "^6.5",
1314
"phpunit/phpunit": "~5",
1415
"ext-mbstring": "*"

0 commit comments

Comments
 (0)