PHP code example of codebyray / carlistapi-laravel-sdk
1. Go to this page and download the library: Download codebyray/carlistapi-laravel-sdk 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/ */
codebyray / carlistapi-laravel-sdk example snippets
use CodebyRay\CarListApiLaravel\Facades\CarListApi;
$vehicle = CarListApi::vinDecoder()
->decode('1HGCM82633A004352')
->data;
use CodebyRay\CarListApiLaravel\CarListApiManager;
final class VehicleController
{
public function __invoke(CarListApiManager $carListApi)
{
$years = $carListApi->automotive()->years()->data;
return response()->json($years);
}
}