Car related data generation using fzaninotto/Faker
Add the FakerCar library to your composer.json
file:
$ composer require ppelgrims/faker-car
<?php
$faker = \Faker\Factory::create();
$faker->addProvider(new \FakerCar\Provider\Car($faker));
$faker->addProvider(new \FakerCar\Provider\Color($faker));
// Generator
$faker->torque(); // 305 Nm
$faker->carModelName(); // A4
$faker->carColor(); // Frosty Black
carBrandName() // Audi
carModelName() // Golf GTi
power() // 65 Nm
torque() // 65 kW
engineCapacity() // 1.8 L
vin($year = 1980) // 5GZCZ43D13S812715
fuelType() // Hybrid
marketSegmentName() // F-segment luxery cars
carColor // Frosty Black
carBrandName() // Volkswagen
carBrandName() // Renault
carBrandName() // Jaguar
marketSegmentName() // Executive car
carBrandName() // Cadillac
power() // 65 HP
torque() // 65 lb-ft
marketSegmentName() // Full-size SUV
$ make sniff test
Please see contributing for details.
The MIT License (MIT). Please see License File for more information.