PHPackages                             smartjson/ips-location-zh - 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. smartjson/ips-location-zh

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

smartjson/ips-location-zh
=========================

ipip.net resource, Fetch provincial information via IP.

v1.1.2(6y ago)2167MITPHP

Since Aug 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/smartjsoncom/ip-location-zh)[ Packagist](https://packagist.org/packages/smartjson/ips-location-zh)[ RSS](/packages/smartjson-ips-location-zh/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (7)Used By (0)

### ip-location-zh project

[](#ip-location-zh-project)

ipip.net resource, Fetch provincial information via IP

Install
-------

[](#install)

> composer require "smartJson/ips-location-zh"

USAGE
-----

[](#usage)

#### 对于普通项目：

[](#对于普通项目)

```
require 'vendor/autoload.php';  
use smartJson\IpLocationZh\Ip;  
var_dump(Ip::find('ip address'));`
```

#### Return info

[](#return-info)

```
array:4 [
   0 => "中国"
   1 => "上海"
   2 => "上海"
 ]
```

#### For Laravel:

[](#for-laravel)

```
# General Usage:
use SmartJson/IpLocationZh;

Ip::find('ip address') OR Ip::find(Request::getClientIp());
Ip::findInfo('ip address') OR Ip::find(Request::getClientIp());
Ip::findMap('ip address') OR Ip::find(Request::getClientIp());
```

\##License MIT

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity67

Established project with proven stability

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

Every ~177 days

Recently: every ~221 days

Total

6

Last Release

2308d ago

### Community

Maintainers

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

---

Tags

IPlocationChineseChina

### Embed Badge

![Health badge](/badges/smartjson-ips-location-zh/health.svg)

```
[![Health](https://phpackages.com/badges/smartjson-ips-location-zh/health.svg)](https://phpackages.com/packages/smartjson-ips-location-zh)
```

###  Alternatives

[stevebauman/location

Retrieve a user's location by their IP Address

1.3k7.6M65](/packages/stevebauman-location)[zhuzhichao/ip-location-zh

get the ip's location info with Chinese

617212.5k11](/packages/zhuzhichao-ip-location-zh)[itbdw/ip-database

IP数据库 IPV4 IPV6（解析为国家、省、市、县、运营商）

1.5k123.8k7](/packages/itbdw-ip-database)[gai871013/ip-location

纯真IP地址,composer包(解析QQWay.dat)

729.7k4](/packages/gai871013-ip-location)[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)[tastaturberuf/anystores

Location management and geographic search

121.7k](/packages/tastaturberuf-anystores)

PHPackages © 2026

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