PHP code example of nguyendachuy / laravel-delhivery-api
1. Go to this page and download the library: Download nguyendachuy/laravel-delhivery-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/ */
nguyendachuy / laravel-delhivery-api example snippets
return [
/*
|--------------------------------------------------------------------------
| Delhivery Mode
|--------------------------------------------------------------------------
|
| Here you can set the mode for delhivery. (staging or live)
| default is staging
*/
'mode' => env('DELHIVERY_MODE', 'staging'),
/*
|--------------------------------------------------------------------------
| Delhivery Token
|--------------------------------------------------------------------------
|
| Here you can set the token delhivery.
|
*/
'token' => env('DELHIVERY_TOKEN', null),
/*
|--------------------------------------------------------------------------
| Default output response type
|--------------------------------------------------------------------------
|
| Here you may specify which of the output response you need.
|
| Supported: "collection" , "object", "array"
|
*/
'responseType' => env('DELHIVERY_RESPONSE_TYPE', 'collection'),
];