PHP code example of carlwhittick / vehicle.faker
1. Go to this page and download the library: Download carlwhittick/vehicle.faker 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/ */
carlwhittick / vehicle.faker example snippets
$faker = \Faker\Factory::create();
$faker->addProvider(new \CarlWhittick\Faker\Vehicle\Provider($faker));
$faker = \Faker\Factory::create();
$faker->addProvider(new \CarlWhittick\Faker\Vehicle\Provider($faker));
echo $faker->make(); // Ford
echo $faker->model(); // Mondeo
echo $faker->model('BMW'); // 3 series
echo $faker->registration('current'); // AB19 ETG
echo $faker->registration('military'); // 11AE22
echo $faker->registration('diplomatic'); // 101D454
echo $faker->registration('prefix'); // P311 LVW