/json-response

A mini library to convert your response to JSON along with status code injected in header.

Primary LanguagePHP

Response to JSON

Latest Stable Version Total Downloads Latest Unstable Version License

A mini library to convert your response include header status code to JSON. This actually based on this gist but I modified parameter position and I want to use it as a library.

Installation

composer require satyakresna/json-response

Usage

Please find the usage on sample file