
A PHPFaker provider for generating vehicle information like registrations, car makes and car models.
Getting Started
·
Report Bug
·
Request Feature
Table of Contents
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
Install the package with Composer
composer require carlwhittick/vehicle.faker
Add the provider to Faker
$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
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Install
nix
package manager. - Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Make your changes.
- Run
nix develop
at the root. - Ensure that tests pass with
vendor/bin/phpunit
. - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.