kravinskiy/laravel-chassis 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

kravinskiy/laravel-chassis

Composer 安装命令:

composer require kravinskiy/laravel-chassis

包简介

Laravel package to get started with application development with standardized responses, abstract controllers and services

README 文档

README

A laravel chassis with support to easily generate or use Repository & Service pattern for a modern application. Remove the messyness from your Laravel application by following a Domain Driven Design approach, and add CRUD actions - if needed, with very little or no customization at all.

Designed for micro-service applications, but can be used in any architecture design.

Supports generating the following layers of your application:

  • Route generation
  • Requests
  • Controllers
  • Models
  • Services
  • Repositories
  • Integration Tests

Installation

Kernel for web:

src/Http/Kernel.php

Kernel for console (this will allow resource generation):

src/Console/Kernel.php

Error handling:

src/Exceptions/Handler.php

Command

resource:generate {name} {resources(optional)[]} {--crud}

Resources:

  • 'Create', 'Update', 'Get', 'All', 'Delete', 'Store', 'Show', 'Index', 'Destroy'

Error Handling and Exceptions

Out of box exceptions:

  • Entity error exceptions, such as:

    • CanNotCreateEntityException
    • CanNotDeleteEntityException
    • CanNotGetEntityException
    • CanNotUpdateEntityException
    • EntityNotFoundException
  • HTTP Response exceptions, such as:

    • ForbiddenException
    • HttpException (generic)
    • InternalErrorException
    • MethodNotAllowedException
    • NotFoundException
    • UnathorizedException
  • Console exceptions, such as:

    • InvalidArgumentException
  • Validation exceptions, such as:

    • ValidationException

    Copyright by Mark Kravinskiy @ 2019 - 2020

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2020-01-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固