Skip to content

Faker provider for random vehicle make/model and UK registration and US license plates

License

Notifications You must be signed in to change notification settings

mattwells/faker-vehicle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Faker provider for random vehicle make/model and UK registration and US license plates

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages