PHP code example of mattwells / faker-vehicle
1. Go to this page and download the library: Download mattwells/faker-vehicle 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/ */
mattwells / faker-vehicle example snippets
$faker = \Faker\Factory::create();
$faker->addProvider(new \MattWells\Faker\Vehicle\Provider($faker));
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