Helps building nice, normalized and easy to consume Laravel REST API.
marcin-orlowski/laravel-api-response-builder is a Laravel package for helps building nice, normalized and easy to consume laravel rest api..
It currently has 842 GitHub stars and 485.589 downloads on Packagist (latest version 12.1.3).
Install it with composer require marcin-orlowski/laravel-api-response-builder.
Discover more Laravel packages by marcin-orlowski
or browse all Laravel packages to compare alternatives.
Last updated

ResponseBuilder is a Laravel package, designed to help you build nice,
normalized, and easy-to-consume REST API JSON responses.
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.