PHPackages                             surpaimb/laravel-quick - 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. [API Development](/categories/api)
4. /
5. surpaimb/laravel-quick

ActiveLibrary[API Development](/categories/api)

surpaimb/laravel-quick
======================

agile development

1.0.2(3y ago)023MITPHPPHP &gt;=7.1.0

Since Feb 24Pushed 3y agoCompare

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

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

laravel-quick
=============

[](#laravel-quick)

**laravel-quick** 封装了一些我们开发中常见的工具，使开发变得更高效

安装
--

[](#安装)

- `composer require yxx/laravel-quick`
- 生成翻译好的中文包命令

    **linux 和 mac** `php artisan vendor:publish--provider="Surpaimb\\LaravelQuick\\LaravelQuickServiceProvider"`**windows** `php artisan vendor:publish --provider="Surpaimb\LaravelQuick\LaravelQuickServiceProvider"`

怎么使用
----

[](#怎么使用)

```
// api 返回状态码

// 异常使用例子
use Surpaimb\LaravelQuick\Exceptions\Api\ApiNotFoundException;
// 请求参数错误
throw new ApiRequestException();
// 404 未找到
throw new ApiNotFoundException();
// 系统错误
throw new ApiSystemException()
// 未授权
throw new ApiUnAuthException()
// 返回

//自定义错误继承Yxx\LaravelQuick\Exceptions自己参照对应代码自定义

// api接口使用
use Surpaimb\LaravelQuick\Traits\JsonResponseTrait

// 成功
return $this->success("消息",['name'=>"张三"]);
// 失败
return $this->error("错误");
// 自定义
return $this->apiResponse(Response::HTTP_BAD_GATEWAY,"502错误");

// 缓存的使用（封装了redis的一些方法）
use Surpaimb\LaravelQuick\Facades\CacheClient;

CacheClient::hSet("test","1","张三");
CacheClient::hGet("test","1");
CacheClient::lPush("test","1");

具体参考Yxx\LaravelQuick\Services\CacheService里面的方法....

```

artisan 命令
----------

[](#artisan-命令)

- 创建 Trait `php artisan quick:create-trait test`
- 创建 Service `php artisan quick:create-service Test/TestService`
- 创建 Repository `php artisan quick:create-repository Test`

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

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

1179d ago

### Community

Maintainers

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

---

Top Contributors

[![youyingxiang](https://avatars.githubusercontent.com/u/28653285?v=4)](https://github.com/youyingxiang "youyingxiang (14 commits)")

---

Tags

phpapilaravelscaffoldtool

### Embed Badge

![Health badge](/badges/surpaimb-laravel-quick/health.svg)

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[yxx/laravel-quick

agile development

145.3k](/packages/yxx-laravel-quick)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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