PHP code example of advans / php-api-lco

1. Go to this page and download the library: Download advans/php-api-lco 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/ */

    

advans / php-api-lco example snippets


$lco_config = new \Advans\Api\Lco\Config([
    'base_url' => '**********************',
    'key' => '**********************',
]);
$lco_service = new \Advans\Api\Lco\Lco($lco_config);

$serial = '00001000000514412260';
$response = $lco_service->getBySerial($serial);