PHP code example of furiosojack / responsejsonphp

1. Go to this page and download the library: Download furiosojack/responsejsonphp library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

furiosojack / responsejsonphp example snippets


 
    riosoJack\ResponseJsonPHP\ResponseJson;
    ResponseJson::build(400,array(
                'title' => 'Error en la solicitud',
                'description' => 'Faltan parametros'
           )
     );    
json
{"title": "Error en la solicitud", "description": "Faltan parametros" }