New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

maras0830/laravel-respond-format

Normalization respond api format.
685 1
Install
composer require maras0830/laravel-respond-format
Latest Version:v2.0.7
PHP:>=7.1
Older releases:5
License:MIT
Last Updated:Jul 20, 2017
Links: GitHub  ·  Packagist
Maintainer: Maras0830

Laravel Respond Format

CircleCI Total Downloads
In the teamwork always have some different api response, laravel-respond-format integrate some common response to laravel helper, make this to be more simpler and clear.

Installation

$ composer require maras0830/laravel-respond-format ^v2.0

or

"require": {
  "maras0830/laravel-respond-format": "^v2.0" // Add this line
}

Using

return not_found();

Example: Data not fount response

{
  "error": {
    "message": "Data not found.",
    "code": 404,
    "type": "not_found"
  }
}

Document (Not Finish)

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

660,512,042 9,702
laravel/framework

The Laravel Framework.

625,568,548 34,998
laravel/tinker

Powerful REPL for the Laravel framework.

531,591,559 7,442
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

450,320,528 608
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

424,642,029 4,662

Version History

Version Released PHP Laravel License
v2.0.7 >=7.1 MIT
v2.0.6 >=7.1 MIT
v2.0.5 >=7.1 MIT
v2.0.4 >=7.1 MIT
v2.0.3 >=7.1 MIT