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 1mo ago

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

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

[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[watson/validating

Eloquent model validating trait.

9723.3M47](/packages/watson-validating)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8703.0M17](/packages/yajra-laravel-oci8)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)

PHPackages © 2026

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