PHP code example of sawirricardo / laravel-icd-api

1. Go to this page and download the library: Download sawirricardo/laravel-icd-api 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/ */

    

sawirricardo / laravel-icd-api example snippets


return [
    'client_id' => env('ICD_API_CLIENT_ID'),
    'client_secret' => env('ICD_API_CLIENT_SECRET'),
];

icdApi()->client()->getAccessTokenData();
icdApi()->client()->icd()->entity();
bash
php artisan vendor:publish --tag="laravel-icd-api-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="laravel-icd-api-config"