1. Go to this page and download the library: Download porifa/jarason 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/ */
porifa / jarason example snippets
return [
/*
|--------------------------------------------------------------------------
| Request Headers
|--------------------------------------------------------------------------
|
| Headers should be an array of headers sent with API request.
|
*/
'headers' => [
'accept' => 'application/vnd.api+json',
],
/*
|--------------------------------------------------------------------------
| Base Path
|--------------------------------------------------------------------------
|
| The base path of API end-point
|
*/
'base_path' => env('JARASON_BASE_PATH', 'http://localhost/api'),
/*
|--------------------------------------------------------------------------
| Version of API
|--------------------------------------------------------------------------
|
| This is version of API which is used after base path
|
*/
'version' => env('JARASON_VERSION', 'v1'),
];