PHP code example of ydin / third-party-resource
1. Go to this page and download the library: Download ydin/third-party-resource 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/ */
ydin / third-party-resource example snippets
$api = $resourceBuild->groupName()->apiName();
$response = $api->send($array);
$response = $api->getResponse($array);
$text = $api->getJson();
$text = $api->getJsonCache();
$text = $api->getJsonForever();
$array = $api->getArray();
$array = $api->getArrayCache();
$array = $api->getArrayForever();
php artisan third-party-resource:api-acceptance-test
code config/third-party-resource.php
- 將 apidoc build 到 github homepage
- ResourceBuild 用 gen code 產生, 資料來自於 ThirdParty/Api/*/*.php