PHPackages                             sorry510/logic - 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. sorry510/logic

ActiveLibrary

sorry510/logic
==============

laravel mvl

0271PHP

Since Apr 28Pushed 5y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

使用 Logic 开发模式
-------------

[](#使用-logic-开发模式)

> 根据数据表自动生成对应的 controller, logic, model, validate 文件

安装
--

[](#安装)

```
composer require sorry510/logic

```

#### 使用

[](#使用)

- 生成基类

```
php artisan vendor:publish --tag=logic

```

- 命令

```
php artisan mvl -m 模块 -t 表名

```

- help

```
php artisan mvl -h

```

### 数据表要求

[](#数据表要求)

- 数据表的字段和注释分别自动生成对应的代码
- 枚举类型使用 enum 类型,注释标准编写如下，可以自动生成对应的常量和数据封装函数

```
状态[1:正常,2:禁止,3:未知]

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6dd6f23b6e92e3ec5d4b9b087e0197423f9d867fd9b9236f7bdf18ee7c1e0d2e?d=identicon)[sorry510](/maintainers/sorry510)

---

Top Contributors

[![sorry510](https://avatars.githubusercontent.com/u/19152210?v=4)](https://github.com/sorry510 "sorry510 (9 commits)")

### Embed Badge

![Health badge](/badges/sorry510-logic/health.svg)

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

PHPackages © 2026

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