PHPackages                             daxslab/yii2-ipstack - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. daxslab/yii2-ipstack

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

daxslab/yii2-ipstack
====================

Locate and identify website visitors by IP address

v1.0(4y ago)13MITPHP

Since Aug 23Pushed 4y ago2 watchersCompare

[ Source](https://github.com/daxslab/yii2-ipstack)[ Packagist](https://packagist.org/packages/daxslab/yii2-ipstack)[ RSS](/packages/daxslab-yii2-ipstack/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Yii2 IPStack Client
===================

[](#yii2-ipstack-client)

Locate and identify website visitors by IP address using IPStack API

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

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
-------------

[](#configuration)

Add the component to the application:

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

Usage
-----

[](#usage)

Request info about current user IP

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

Request info about a custom IP

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

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1720d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13596248?v=4)[Gabriel Alejandro López López](/maintainers/glpzzz)[@glpzzz](https://github.com/glpzzz)

![](https://www.gravatar.com/avatar/ee680a9e5bd2827f4097e661681a88d64ea64e7c82c22a2398ed0d544676b11a?d=identicon)[cccaballero](/maintainers/cccaballero)

---

Top Contributors

[![glpzzz](https://avatars.githubusercontent.com/u/13596248?v=4)](https://github.com/glpzzz "glpzzz (1 commits)")

---

Tags

IPyii2extensiongeoipstack geolocalization

### Embed Badge

![Health badge](/badges/daxslab-yii2-ipstack/health.svg)

```
[![Health](https://phpackages.com/badges/daxslab-yii2-ipstack/health.svg)](https://phpackages.com/packages/daxslab-yii2-ipstack)
```

###  Alternatives

[kartik-v/yii2-ipinfo

An IP address information display widget for Yii 2.0 with country flag and geo position info.

2832.6k1](/packages/kartik-v-yii2-ipinfo)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
