Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.05 KB

README.md

File metadata and controls

32 lines (22 loc) · 1.05 KB

Faker Vehicle Provider

A provider for Faker to generate random vehicle makes & models as well as UK registration plate and US license plate.

Install

Install this package via composer

composer require mattwells/faker-vehicle

Finally you need to add the provider to Faker

$faker = \Faker\Factory::create();
$faker->addProvider(new \MattWells\Faker\Vehicle\Provider($faker));

Usage

echo $faker->vehicleMake;         // Nissan
echo $faker->vehicleModel;        // C Class
echo $faker->vehicleModel('BMW'); // 3 Series

// UK Registration Plate
echo $faker->vehicleRegistration; // XA13 LYE

// US License Plate
echo $faker->vehicleLicensePlate; // 8BE V34