Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2024-03-09 (7 months ago) | Not enough user ratings | Total: 25 This week: 1 | All time: 11,214 This week: 34 |
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);
Files (3) |
File | Role | Description |
---|---|---|
Client.php | Class | Class source |
composer.json | Data | Auxiliary data |
README.md | 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. |
Install with Composer |
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.