PHPackages                             homevip/laravel-helpers - 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. homevip/laravel-helpers

ActiveLibrary

homevip/laravel-helpers
=======================

this is test

v1.1.8.8(5y ago)169MITPHPPHP ^7.0

Since Dec 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/homevip/laravel-helpers)[ Packagist](https://packagist.org/packages/homevip/laravel-helpers)[ Docs](https://github.com/homevip/laravel-helpers.git)[ RSS](/packages/homevip-laravel-helpers/feed)WikiDiscussions develop Synced 2d ago

READMEChangelog (10)DependenciesVersions (21)Used By (0)

laravel-helpers
===============

[](#laravel-helpers)

##### Cookie 使用方法 \[支持连贯操作\]

[](#cookie-使用方法-支持连贯操作)

```
    $Cookie = Cookie::instance();

    // 存储
    $Cookie->set('key', 'test', [
        'expire' => 60 * 10
    ]);

    // 修改
    $Cookie->update('key', '李四', [
        'expire' => 60 * 10
    ]);

    // 删除
    $Cookie->del('key');

    // 删除全部
    $Cookie->delAll();

    // 读取
    $Cookie->get('key');

```

##### IDCard 用于检测身份证号码的函数

[](#idcard-用于检测身份证号码的函数)

```
    $nber = '123456789';
    $IDCard = new IDCard();
    dd($IDCard::isCard($nber));

```

### Redis.php

[](#redisphp)

```
// 安装 yaconf 扩展

// 定义配置
$Redis = Redis::instance([
    'host'      =>  config('database.redis.cache.host'),
    'port'      =>  config('database.redis.cache.port'),
    'password'  =>  config('database.redis.cache.password'),
    'db'        =>  config('database.redis.cache.database'),
]);

// 默认配置
$Redis = Redis::instance();

// __call 方法使用 [当类中不存在该方法,直接调用call 实现调用底层redis相关的方法]
var_dump($Redis->set('aaa', 600)); // 添加
var_dump($Redis->get('aaa')); // 获取

    // 使用
    use RedisLock;
    public function test(Request $request)
    {
        $key = 'key_' . uniqid();
        $requestID = 'requestID_' . uniqid();

        // 加锁
        if ($this->addLock($key, $requestID)) {
            // 代码逻辑

            // 释放锁
            $this->releaseLock($key, $requestID);
        }
    }

```

##### ResponseJson 公共模板输出

[](#responsejson-公共模板输出)

```

    use ResponseJson;
    public function test(Request $request)
    {
        // 成功输出
        $success = [];
        return $this->outSuccess($success);

        // 错误输出
        $error = '非正常数值';
        return $this->outError(4100, $array); // 错误码, 错误其他信息[选填]
    }

```

##### SeasLog 日志扩展

[](#seaslog-日志扩展)

```
    use SeasLog;
    public function test()
    {

        $path = 'D:\SeasLog\\' . date('Y-m-d H');
        $param = [
            'id'    => mt_rand(100, 999),
            'name'  => mt_rand(100, 999),
        ];
        $param = json_encode($param, JSON_UNESCAPED_UNICODE);
        var_dump($this->set($path, $param));
    }

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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 ~11 days

Total

19

Last Release

2142d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f533eaf32182fe4b8580df263df959f48aeaa02a1829501668c44b25ad9d116?d=identicon)[homevip](/maintainers/homevip)

---

Top Contributors

[![homevip](https://avatars.githubusercontent.com/u/11925599?v=4)](https://github.com/homevip "homevip (44 commits)")

---

Tags

phplaravelhelperslibrary

### Embed Badge

![Health badge](/badges/homevip-laravel-helpers/health.svg)

```
[![Health](https://phpackages.com/badges/homevip-laravel-helpers/health.svg)](https://phpackages.com/packages/homevip-laravel-helpers)
```

###  Alternatives

[panphp/pan

A simple, lightweight, and privacy-focused product analytics php package.

1.2k94.6k5](/packages/panphp-pan)[dragon-code/support

Support package is a collection of helpers and tools for any project.

238.7M101](/packages/dragon-code-support)

PHPackages © 2026

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