Download the PHP package avto-dev/faker-providers without Composer
On this page you can find all versions of the php package avto-dev/faker-providers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package faker-providers
Additional providers for fakerphp/faker
This package provides set of additional providers for faker package. Also it provides service-provider for Laravel framework.
Install
Require this package with composer using the following command:
Installed
composer
is required (how to install composer).You need to fix the major version of package.
Laravel integration
After installation you can "publish" configuration file (./config/faker.php
) using next command:
And add any additional faker providers in ./config/faker.php
configuration file, if you want.
Usage
For providers using you must register them at first:
If you use this package in laravel application - all providers will be registered automatically. Then you can use all provided methods, for example, in model factory:
Comment
/** @var \Faker\Generator|\AvtoDev\FakerProviders\ExtendedFaker $faker */
is required for correct type-hinting
Providers
All providers located in AvtoDev\FakerProviders\Providers
namespace.
Cars\MarkAndModelProvider
Identifiers\BodyProvider
Identifiers\ChassisProvider
Identifiers\GrzProvider
Identifiers\PtsProvider
Identifiers\StsProvider
Identifiers\VinProvider
Identifiers\DriverLicenseNumberProvider
Identifiers\InnAndKppProvider
Identifiers\CadastralNumberProvider
Packages\IDEntityProvider
Package avto-dev/identity-laravel is required for this.
User\AvatarUriProvider
Examples:
Testing
For package testing we use phpunit
framework and docker-ce
+ docker-compose
as develop environment. So, just write into your terminal after repository cloning:
Changes log
Changes log can be found here.
Support
If you will find any package errors, please, make an issue in current repository.
License
This is open-sourced software licensed under the MIT License.