Skip to content

daxslab/yii2-ipstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Yii2 IPStack Client

Locate and identify website visitors by IP address using IPStack API

Installation

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.

Configuration

Add the component to the application:

'components' => [
    'ipStack' => [
        'class' => \daxslab\ipstack\Client::class,
        'api_key' => '{YOUR_API_KEY}',
    ],
]

Usage

Request info about current user IP

Yii::$app->ipStack->getData();

Request info about a custom IP

Yii::$app->ipStack->getData($ip);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages