| Recommend this page to a friend! | 
| Info | Documentation | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not enough user ratings | Total: 26 | All time:  11,235 This week: 51 | ||||
| Version | License | PHP version | Categories | |||
| yii2-ipstack 1.0 | BSD License | 5 | Networking, PHP 5, Libraries, Web ser..., G... | 
| Description | Author  | |
This package can find the location of a computer with an IP address.  | 
Locate and identify website visitors by IP address using IPStack API
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist daxslab/yii2-ipstack "*"
or add
"daxslab/yii2-ipstack": "*"
to the require section of your composer.json file.
Add the component to the application:
'components' => [
    'ipStack' => [
        'class' => \daxslab\ipstack\Client::class,
        'api_key' => '{YOUR_API_KEY}',
    ],
]
Request info about current user IP
Yii::$app->ipStack->getData();
Request info about a custom IP
Yii::$app->ipStack->getData($ip);
| File | Role | Description | 
|---|---|---|
| Class | Class source | |
| Data | Auxiliary data | |
| Doc. | Documentation | 
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% | 
  | 
  | 
| Applications that use this package | 
 If you know an application of this package, send a message to the author to add a link here.