marcin-orlowski/laravel-api-response-builder 问题修复 & 功能扩展

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

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

marcin-orlowski/laravel-api-response-builder

最新稳定版本:12.1.1

Composer 安装命令:

composer require marcin-orlowski/laravel-api-response-builder

包简介

Helps building nice, normalized and easy to consume Laravel REST API.

README 文档

README

REST API Response Builder for Laravel

REST API Response Builder for Laravel

Latest Stable Version Codacy Grade Badge Monthly Downloads Code Quality Code Coverage License

Table of contents

Introduction

ResponseBuilder is a Laravel package, designed to help you build nice, normalized, and easy-to-consume REST API JSON responses.

Benefits

ResponseBuilder is written for REST API developers by REST API developers, drawing from extensive experience on both sides of API development. It's lightweight, has no dependencies, is thoroughly tested, and is simple to use while remaining flexible and powerful. It offers support for on-the-fly data conversion, localization, automatic message building, chained APIs, and comprehensive documentation.

Moreover, the JSON structure produced by ResponseBuilder is designed with your API users in mind. Its well-defined and predictable structure makes interacting with your API using ResponseBuilder effortless. The simple, consistent JSON responses are easy to consume. Your clients will appreciate it!

You're also covered in case of emergencies. The provided ExceptionHandlerHelper ensures your API continues to communicate in JSON (not HTML) with its clients, even in unexpected situations.

Additionally, it includes testing traits that help you add PHPUnit-based tests for your ResponseBuilder integration with just a few lines of code.

Features

License

  • Written and copyrighted ©2016-2025 by Marcin Orlowski <mail (#) marcinorlowski (.) com>
  • ResponseBuilder is open-source software licensed under the MIT license

统计信息

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

GitHub 信息

  • Stars: 821
  • Watchers: 14
  • Forks: 83
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-04-11