PHPackages                             juju/qqwry - 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. juju/qqwry

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

juju/qqwry
==========

纯真 IP 库 Laravel 版 。

V0.0.2(9y ago)0142MITPHPPHP &gt;=5.4.0

Since Nov 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/juju031/qqwry)[ Packagist](https://packagist.org/packages/juju/qqwry)[ RSS](/packages/juju-qqwry/feed)WikiDiscussions master Synced 1mo ago

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

QQWry
=====

[](#qqwry)

纯真 IP 库 Laravel 版 。

数据库版本：2016.3.26

安装
--

[](#安装)

```
composer require juju/QQWry dev-master

```

更新你的依赖包 `composer update` 或者全新安装 `composer install`。

使用
--

[](#使用)

要使用本服务提供者，你必须自己注册服务提供者到Laravel服务提供者列表中。 基本上有两种方法可以做到这一点。

打开配置文件 `config/app.php`。

找到key为 `providers` 的数组，在数组中添加服务提供者。

```
    'providers' => [
        // ...
        juju\QQWry\QQWryServiceProvider::class,
    ]
```

找到key为 `aliases` 的数组，在数组中注册Facades。

```
    'aliases' => [
        // ...
        'QQWry' => juju\QQWry\Facades\QQWry::class,
    ]
```

例子
--

[](#例子)

### Facades用法

[](#facades用法)

```
	$ip = mt_rand(); // 取一个随机IP。
	$ip = QQWry::ntoa($ip); // 将IP转换成文本型格式。
	$record = QQWry::query($ip); // 取出IP对应的地址。
	echo "\n", $ip, "\t", $record['country'], "\t", $record['area']; // 输出结果。
```

### 在视图中

[](#在视图中)

```
	@inject('QQWry', 'QQWry')

	{{ $QQWry->query('127.0.0.1')->implode(' ') }}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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

Every ~0 days

Total

2

Last Release

3452d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4664c19bdace38e7bebaf8efa88fa6fd2d0f26367701713a9ccd8090a905aa4e?d=identicon)[juju](/maintainers/juju)

---

Top Contributors

[![juju031](https://avatars.githubusercontent.com/u/15888494?v=4)](https://github.com/juju031 "juju031 (2 commits)")

---

Tags

laravellaravel 5l5qqwry

### Embed Badge

![Health badge](/badges/juju-qqwry/health.svg)

```
[![Health](https://phpackages.com/badges/juju-qqwry/health.svg)](https://phpackages.com/packages/juju-qqwry)
```

###  Alternatives

[latrell/qqwry

纯真 IP 库 Laravel 版 。

274.7k](/packages/latrell-qqwry)[misterphilip/maintenance-mode

An enhanced drop-in replacement for Laravel's maintenance mode

120176.7k](/packages/misterphilip-maintenance-mode)[unicodeveloper/laravel-emoji

A Laravel 5 Package for Using &amp; Working With Emojis

21024.9k](/packages/unicodeveloper-laravel-emoji)[leantony/laravel-grid

A grid view for laravel, inspired by the yii2 grid widget

9060.2k](/packages/leantony-laravel-grid)[latrell/geohash

This package geohash for Laravel 5 support.

1128.3k](/packages/latrell-geohash)[danielme85/laravel-cconverter

Laravel 5 plug-in for currency conversion

42101.1k](/packages/danielme85-laravel-cconverter)

PHPackages © 2026

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