avto-dev / vehicle-logotypes
Vehicle logotypes set
Installs: 5 314
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 8
Open Issues: 3
Requires
- php: ^8.0
- ext-json: *
- illuminate/support: ~9.0 || ~10.0 || ~11.0
Requires (Dev)
- ext-mbstring: *
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9.6 || ^10.0
README
Vehicle logotypes
This repository contains structured file (json
format) with absolute links to the vehicle logotypes images. Time to time we will update it. Also you can install this repository as package into your application.
All images were compressed using tinypng.com service (this is the best images compressor) and deliver via CDN network.
Logotypes (except alternative images) have fixed size - 240x180
pixels.
Demonstration is available here.
Installation
Using composer
(php)
Require this package with composer using the following command:
$ composer require avto-dev/vehicle-logotypes "^2.3"
Installed
composer
is required (how to install composer).
You need to fix the major version of package.
After that you can:
<?php $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; });
Using npm
(node)
Require this package with npm using the following command:
$ npm i @avto-dev/vehicle-logotypes
Direct request (http)
Get content using one of next URI:
Download archive
Download latest version (master
branch): ZIP | TAR
Features
Since version 1.1.0 you can use all imgix.com features like resize, cropping, and others.
For example, basic image:
https://vl.imgix.net/img/bmw-logo.png
With background color:
https://vl.imgix.net/img/bmw-logo.png?bg=354651
With custom text over image:
https://vl.imgix.net/img/bmw-logo.png?txt=YOUR%20TEXT&txtsize=62&txtclr=ff0000&txtalign=middle,center&txtfont=Futura%20Condensed%20Medium
Full documentation can be found here.
Images sources
All images were taken from open sources, like:
Changes log
Changes log can be found here.
Support
If you will find any package errors, please, make an issue in current repository.
License
All images are the property of their respective owners. If you found any image copyrighted to yours, Please contact us, so we can remove it.
This package is open-sourced software licensed under the MIT License.