PHPackages                             zykutil/record-ip - 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. [Database &amp; ORM](/categories/database)
4. /
5. zykutil/record-ip

ActiveLibrary[Database &amp; ORM](/categories/database)

zykutil/record-ip
=================

To record IP info by customize type to DB.

1.0.0(3y ago)040MITPHPPHP ^8.0.2

Since Dec 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/zyk0615/recordip)[ Packagist](https://packagist.org/packages/zykutil/record-ip)[ RSS](/packages/zykutil-record-ip/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (7)Versions (2)Used By (0)

About zykutil/record-ip
-----------------------

[](#about-zykutilrecord-ip)

In order to create ip record.Depends on jenssegers/agent package.

Install
-------

[](#install)

```
composer require zykutil/record-ip

```

config/app.php
--------------

[](#configappphp)

providers add

```
ZYKUtil\RecordIp\RecordIpServiceProvider::class

```

alias add

```
'RecordIp' => ZYKUtil\RecordIp\RecordIpFacade::class

```

Copy the package config to your local config with the publish command:
----------------------------------------------------------------------

[](#copy-the-package-config-to-your-local-config-with-the-publish-command)

```
php artisan vendor:publish --tag=zykutil-recordip --ansi --force

```

Depends on your setting in env file
-----------------------------------

[](#depends-on-your-setting-in-env-file)

```
RI_DB_CONNECTION=mysql
RI_DEFAULT_TABLE=system_request_ip_records

```

Migrate record table
--------------------

[](#migrate-record-table)

```
php artisan ri:table

```

Create your own RecordType
--------------------------

[](#create-your-own-recordtype)

```
use ZYKUtil\RecordIp\Factory\AbstractRecordIp;

class FooType extends AbstractRecordIp
{
    public function __construct()
    {
        parent::__construct();
        $this->type = 'foo';
    }
}

```

Set Type in config file
-----------------------

[](#set-type-in-config-file)

```
'types' => [
    'foo' => FooType::class
]

```

Simply used
-----------

[](#simply-used)

```
\RecordIp::setActor('foo')->success("ask success");

\RecordIp::setActor('foo')->fail("ask fail");

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

1293d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravelIPrecord

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zykutil-record-ip/health.svg)

```
[![Health](https://phpackages.com/badges/zykutil-record-ip/health.svg)](https://phpackages.com/packages/zykutil-record-ip)
```

###  Alternatives

[spatie/laravel-medialibrary

Associate files with Eloquent models

6.1k43.2M629](/packages/spatie-laravel-medialibrary)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M95](/packages/mongodb-laravel-mongodb)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k32.6M46](/packages/kirschbaum-development-eloquent-power-joins)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)

PHPackages © 2026

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