PHPackages                             yhy/laravel-lib - 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. yhy/laravel-lib

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

yhy/laravel-lib
===============

laravel lib

2.0(3y ago)36MITPHP

Since Nov 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/your1024/laravel-lib)[ Packagist](https://packagist.org/packages/yhy/laravel-lib)[ RSS](/packages/yhy-laravel-lib/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

laravel-lib
===========

[](#laravel-lib)

laravel lib

1. laravel 软删除改造成boolean类型 字段为 deleted

```
 在model类中例如UserModel使用 use Yhy\LaravelLib\BoolreanSoftDeletes
 const DELETED = 'deleted' // 对应数据可的字段，默认为deleted

```

2. model json 和 时间戳类型转换

```
 在model类中例如UserModel
  protected $casts = [
        'created_at' => new DateTime(),
        'text_json' => new Json()
    ];

```

3. 验证规则: 金额, 银行卡号, 中文名, 英文名, 邮箱,邮政编码,身份证号, 手机 , 座机, 密码, 用户名,评分,中文

```
    在Request类中例如AddUserRequest
    public function rules()
    {
       return [
           'amount' => ['required',new AmountRule()],
           'email' => ['required',new EmailRule()]
       ];
    }

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

1281d ago

Major Versions

1.0 → 2.02022-11-05

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/yhy-laravel-lib/health.svg)

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

###  Alternatives

[shipmonk/name-collision-detector

Simple tool to find ambiguous classes or any other name duplicates within your project.

362.1M34](/packages/shipmonk-name-collision-detector)[bostondv/bootstrap-ninja-forms

Adds Bootstrap classes to Ninja Forms

222.2k](/packages/bostondv-bootstrap-ninja-forms)

PHPackages © 2026

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