PHP code example of itinysun / api-result
1. Go to this page and download the library: Download itinysun/api-result 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/ */
itinysun / api-result example snippets
composer
composer update itinysun/api-result
return ApiResult::success($response_body_data)
return ApiResult::error(ErrorCode::needLogin)