PHP code example of avto-dev / vehicle-logotypes
1. Go to this page and download the library: Download avto-dev/vehicle-logotypes 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/ */
avto-dev / vehicle-logotypes example snippets
$logotypes = \AvtoDev\VehicleLogotypes\VehicleLogotypes::create();
// Get 'Opel' logotype uri
$opel_uri = $logotypes->get('opel')['logotype']['uri'];
// Get all 'BMW' models data
$bmw = $logotypes->filter(static function ($item) {
return mb_stripos($item['name'], 'bmw') !== false;
});