PHPackages                             abnermouke/laravel-builder - 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. [Framework](/categories/framework)
4. /
5. abnermouke/laravel-builder

ActiveLibrary[Framework](/categories/framework)

abnermouke/laravel-builder
==========================

Laravel Framework Controller、Service、Repository、Model、Handler Builder.

1.4.0(4y ago)1108MITPHP

Since Jan 1Pushed 4y agoCompare

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

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

laravel-builder - 一款高效的Laravel架构方案生成器
=====================================

[](#laravel-builder---一款高效的laravel架构方案生成器)

Power By Abnermouke

此工具包由 Abnermouke  开发并维护。

---

最后更新时间：2022年03月11日，持续更新中！！！

---

It is an efficient tool for developing Laravel Framework. 一款高效的Laravel框架开发工具

Requirement - 依赖包
-----------------

[](#requirement---依赖包)

1. PHP &gt;= 7.2
2. **[Composer](https://getcomposer.org/)**
3. Laravel Framework 6+

Installation - 安装方法
-------------------

[](#installation---安装方法)

```
$ composer require "abnermouke/laravel-builder"
```

### How to use it - 怎么使用

[](#how-to-use-it---怎么使用)

- Add the following class to the `providers` array in `config/app.php`:

    （ 在`config/app.php`的`providers`注册服务提供者 ）

```
Abnermouke\LaravelBuilder\LaravelBuilderServiceProvider::class
```

- If you want to manually load it only in non-production environments, instead you can add this to your `AppServiceProvider` with the `register()` method:

    （ 如果你想只在非`production`的模式中使用构建器功能，可在`AppServiceProvider`中进行`register()`配置 ）

```
public function register()
{
  if ($this->app->environment() !== 'production') {
      $this->app->register(\Abnermouke\LaravelBuilder\LaravelBuilderServiceProvider::class);
  }
  // ...
}
```

- This builder tool provides a config file to help you custom your build configs, you can generate files for your own.

    此构建工具提供一配置文件帮助开发者自行配置自己的构建配置，导出命令：

    ```
    php artisan vendor:publish --provider="Abnermouke\LaravelBuilder\LaravelBuilderServiceProvider"
    ```
- Add Middleware

    添加通用中间件至 app/Http/Kernel.php (如需在指定路由使用中间件，请将内容填充至 $routeMiddleware 内，并标记标识):

```
protected $middleware = [

    ///

    \App\Middleware\LaravelBuilderBaseMiddleware::class,
];
```

- Add Autoload

    添加辅助函数自动加载至 composer.json

```
     "autoload": {

       //

        "files": [
            "app/Helpers/functions.php",
            "app/Helpers/helpers.php",
            "app/Helpers/auth.php",
            "app/Helpers/response.php",
            "app/Helpers/projects.php"
        ]
    },
```

### Usage - 使用

[](#usage---使用)

Abnermouke provides an efficient development command for quickly building a framework

Abnermouke 提供了一些高效的构建命令帮助开发者快速使用构建器

```
$ php artisan builder:package {your-table-name-without-db-prefix}
```

example 例如

```
$ php artisan builder:package accounts
```

means to build a `accounts` packages

生成`accounts`相关的系列文件信息。

##### 更新进度

[](#更新进度)

2020.10.16 - 新增结巴分词相关处理逻辑（Abnermouke\\LaravelBuilder\\Library\\Currency\\JiebaLibrary），请在使用前执行命令：

```
composer require fukuball/jieba-php
```

2020.10.16 - 新增php-DFA-filterWord相关处理逻辑（Abnermouke\\LaravelBuilder\\Library\\Currency\\SensitiveFilterLibrary），请在使用前执行命令：

```
composer require lustre/php-dfa-sensitive
```

2020.10.17 - 新增数据库处理对JSON的支持

2021.08.27 - 新增Session辅助函数，更改Builder构建逻辑，支持多目录结构构建，修复已知BUG（可无损更新）

2021.09.16 - 修复已知BUG，重构builder组件，支持多层级目录（不限层级）并新增部分常用验证规则（Abnermouke\\LaravelBuilder\\Library\\Currency\\ValidateLibrary），新增RSA非对称加解密方法，仅需配置内部私钥与外部公钥即可自动进行RSA加解密（可无损更新）,请在使用前确保openssl可用：

2021.10.22 - 修复加解密浮点数/数字等加密结果有误问题，新增 JSON\_NUMERIC\_CHECK|JSON\_PRESERVE\_ZERO\_FRACTION 两种flag处理

```
composer require ext-openssl
```

2020.03.12 - 新增诸多功能

- 新增 LaravelBuilder 基础中间件，记录请求开始时间，response时可携带执行时间已确认服务器处理速度，请在app/Http/Kernel.php中添加通用路由：

```
    protected $middleware = [

        ///

        \App\Middleware\LaravelBuilderBaseMiddleware::class,
    ];
```

- 新增 AesLibrary Aes加解密公共类，解析表单加密结果
- 新增 SignatureLibrary 验签公共类，提供create（创建）、verify（验证）方法快捷生成/验证签名
- 新增更多实用辅助函数
- 新增abort\_error辅助函数，快速响应错误页面
- 新增 Repository 公共方法 uniqueCode 可生成唯一类型编码（md5、string、number等）
- 新增 SearchableTool 公共类，用于关键词检索，文本录入后将关键词与文本对象关联，可实现多对多高效检索（自动过滤违禁词），自带学习功能，根据项目需求自动调整和记录检索对象

更多精彩，敬请期待！

GIT Remark
----------

[](#git-remark)

```
git tag -d [tag]
git push origin :refs/tags/[tag]
```

License
-------

[](#license)

MIT

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

Recently: every ~44 days

Total

8

Last Release

1521d ago

### Community

Maintainers

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

---

Top Contributors

[![abnermouke](https://avatars.githubusercontent.com/u/16248486?v=4)](https://github.com/abnermouke "abnermouke (56 commits)")

### Embed Badge

![Health badge](/badges/abnermouke-laravel-builder/health.svg)

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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