PHPackages                             yxx/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. yxx/laravel-quick

ActiveLibrary[API Development](/categories/api)

yxx/laravel-quick
=================

agile development

v1.0.1(4y ago)145.3k↑100%8[1 issues](https://github.com/youyingxiang/laravel-quick/issues)MITPHPPHP &gt;=7.1.0CI failing

Since Jul 23Pushed 4y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

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

[](#laravel-quick)

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

安装
--

[](#安装)

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

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

怎么使用
----

[](#怎么使用)

```
// api 返回状态码

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

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

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

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

// 缓存的使用（封装了redis的一些方法）
use Yxx\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

31

—

LowBetter than 68% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

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

Total

2

Last Release

1598d ago

### Community

Maintainers

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

---

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/yxx-laravel-quick/health.svg)

```
[![Health](https://phpackages.com/badges/yxx-laravel-quick/health.svg)](https://phpackages.com/packages/yxx-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)[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)
