carlwhittick/vehicle.faker
最新稳定版本:v1.0.0
Composer 安装命令:
composer require carlwhittick/vehicle.faker
包简介
A PHPFaker provider for vehicles
README 文档
README
Vehicle.Faker
A PHPFaker provider for generating vehicle information like registrations, car makes and car models.
Getting Started
·
Report Bug
·
Request Feature
Table of Contents
Getting Started
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.
Installation
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));
Usage
$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
Contributing
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
nixpackage manager. - Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Make your changes.
- Run
nix developat 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
License
Distributed under the MIT License. See LICENSE for more information.
Acknowledgments
统计信息
- 总下载量: 25
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-04-25