1. Go to this page and download the library: Download felipearnold/fipeapi 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/ */
felipearnold / fipeapi example snippets
use Felipearnold\Fipeapi\Cars;
Car::class
Motorcycles::class
Trucks::class
use Felipearnold\Fipeapi\Cars;
$cars = new Cars();
$brands = $cars->getBrands();
var_dump($brands);
use Felipearnold\Fipeapi\Cars;
$cars = new Cars();
$models = $cars->getModelsBrands(21);
var_dump($models);
use Felipearnold\Fipeapi\Cars;
$cars = new Cars();
$years = $cars->getYearsBrands(21, 4828);
var_dump($years);
use Felipearnold\Fipeapi\Cars;
$cars = new Cars();
$vehicle = $cars->getVehicle(21, 4828, '2013-1');
var_dump($vehicle);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.