承接 machecaz/marlon-lumen 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

machecaz/marlon-lumen

Composer 安装命令:

composer require machecaz/marlon-lumen

包简介

README 文档

README

Usage

  1. Register provider into bootstrap/app.php:

    $app->register(Marlon\Lumen\Providers\MarlonLumenServiceProvider::class);
  2. Add ErrorHandler trait to app/Exceptions/Handler.php.

Commands

  1. make:request -> Create a FormRequest.
  2. make:response -> Create a Responsable class.
  3. run:test -> A shortcut command for run test using phpunit.

Enums

This package use spatie/enum for enable enum feature (we are waiting for php 8.1 that will provides native enum).

  • RoleEnum -> user roles.

Helper classes

  • Auth -> get values from marlon custom header (proxy will pass them).
  • ValidationErrors -> a helper class for throw a ValidationException.

Traits

  • ArrayObjectArrayable -> implements a recursive "objects to array" method.
  • ErrorHandler -> core class for handle ValidationException and return a 422 response with errors.
  • ObjectArrayable -> implements a recursive "object to array" method for object.

统计信息

  • 总下载量: 119
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2021-03-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固