PHP code example of e96 / yii-restclient

1. Go to this page and download the library: Download e96/yii-restclient 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/ */

    

e96 / yii-restclient example snippets



return [
    'components' => [
        'restSorcery' => [
            'class' => 'RestClient',
            'baseUrl' => '<api_url>',
        ],
    ]
]