定制 itsdamien/laravel-api-controller 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

itsdamien/laravel-api-controller

最新稳定版本:v1.0.6

Composer 安装命令:

composer require itsdamien/laravel-api-controller

包简介

Simplified API controller, inspired by Jeffrey Way. Compatible with Laravel 5+ and Lumen 5+.

README 文档

README

itsDamien Laravel API Controller

Latest Stable Version Total Downloads License Build Status Maintainability Test Coverage StyleCI

A simple api controller helper trait, compatible with Lumen 5+ and Laravel 5+. The goal of this project is to make creating API projects simple. Inspired by Jeffrey Way (https://www.laracasts.com)

Installation

composer require itsdamien/laravel-api-controller

Basic Setup/Usage

use ItsDamien\Api\ApiController; class MyController extends Controller { use ApiController; public function index() { return $this->respond(['status' => 'hello world']); } }

Api Helper functions

Please browse through the source to see a full list.

//200 response $this->respond(); //201 response $this->respondCreated(); //500 error $this->respondServerError(); //422 error $this->respondUnprocessable(); //General error $this->respondWithError('message here');

License

Laravel Api Controller is open-sourced software licensed under the MIT license

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固