diff --git a/README-en.md b/README-en.md index c532d95..4b20a73 100644 --- a/README-en.md +++ b/README-en.md @@ -18,6 +18,8 @@ $ composer require tim168/ip ``` ## Use + require __DIR__ .'/vendor/autoload.php'; + use Tim168\Ip\Ip; $ip = new Ip('zh-CN'); //Support the following languages diff --git a/README.md b/README.md index bccadff..a4cac03 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ [![Latest Unstable Version](https://poser.pugx.org/tim168/ip/v/unstable)](https://packagist.org/packages/tim168/ip) [![Total Downloads](https://poser.pugx.org/tim168/ip/downloads)](https://packagist.org/packages/tim168/ip) [![composer.lock](https://poser.pugx.org/tim168/ip/composerlock)](https://packagist.org/packages/tim168/ip) + README: [中文](https://github.com/TIM168/Ip/blob/master/README.md "中文")/[English](https://github.com/TIM168/Ip/blob/master/README-en.md "English") @@ -18,6 +19,8 @@ $ composer require tim168/ip ``` ## 使用 + require __DIR__ .'/vendor/autoload.php'; + use Tim168\Ip\Ip; $ip = new Ip('zh-CN'); //支持以下语言 diff --git a/composer.json b/composer.json index 5bfcd85..50cc8fe 100644 --- a/composer.json +++ b/composer.json @@ -9,6 +9,7 @@ } ], "require": { + "php": ">=5.6", "guzzlehttp/guzzle": "^6.5", "phpunit/phpunit": "~5", "ext-mbstring": "*"