# Faker Vehicle Provider

A provider for [Faker](https://github.com/fzaninotto/Faker#faker-internals-understanding-providers) to generate random vehicle makes & models as well as [UK registration plate](https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_the_United_Kingdom,_Crown_dependencies_and_overseas_territories#Current_system).

## Install

This package is not available on Packagist, this means that in order to make Composer be aware of this package you will need to add this [repository to your `composer.json`](https://getcomposer.org/doc/05-repositories.md#vcs) like below:

```
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/mattwells/faker-vehicle.git"
        }
    ]
```

Then add `"mattwells/faker-vehicle": "dev-master"` to your `require` or `require-dev` array.

Finally you need to add the provider to Faker:

```
$faker = \Faker\Factory::create();
$faker->addProvider(new \MattWells\Faker\Vehicle\Provider($generator));
```

## Usage

```
echo $faker->vehicleMake;         // Nissan
echo $faker->vehicleModel;        // C Class
echo $faker->vehicleModel('BMW'); // 3 Series
echo $faker->vehicleRegistration; // XA13 LYE
```

# Faker Vehicle Provider

A provider for [Faker](https://github.com/fzaninotto/Faker#faker-internals-understanding-providers) to generate random vehicle makes & models as well as [UK registration plate](https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_the_United_Kingdom,_Crown_dependencies_and_overseas_territories#Current_system).

## Install

This package is not available on Packagist, this means that in order to make Composer be aware of this package you will need to add this [repository to your `composer.json`](https://getcomposer.org/doc/05-repositories.md#vcs) like below:

```json
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/mattwells/faker-vehicle.git"
        }
    ]
```

Then add `"mattwells/faker-vehicle": "dev-master"` to your `require` or `require-dev` array.

Finally you need to add the provider to Faker:

```php
$faker = \Faker\Factory::create();
$faker->addProvider(new \MattWells\Faker\Vehicle\Provider($faker));
```

## Usage

```php
echo $faker->vehicleMake;         // Nissan
echo $faker->vehicleModel;        // C Class
echo $faker->vehicleModel('BMW'); // 3 Series
echo $faker->vehicleRegistration; // XA13 LYE
```

Fix $generator variable and add code highlighting
Fix $generator variable and add code highlighting