PHPackages                             gerardojbaez/vehicle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. gerardojbaez/vehicle

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

gerardojbaez/vehicle
====================

Laravel 5.2 package to work with vehicles data.

v1.0.0(9y ago)171.8k8[2 PRs](https://github.com/gerardojbaez/vehicle/pulls)PHPPHP &gt;=5.5.9

Since Jul 7Pushed 2y ago4 watchersCompare

[ Source](https://github.com/gerardojbaez/vehicle)[ Packagist](https://packagist.org/packages/gerardojbaez/vehicle)[ RSS](/packages/gerardojbaez-vehicle/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (5)Dependencies (1)Versions (8)Used By (0)

Vehicles Data for Laravel 5.2
=============================

[](#vehicles-data-for-laravel-52)

This package allows you to work with vehicles makes, models, years and other details in Laravel 5.2.

##### Where the data come from?

[](#where-the-data-come-from)

The original list was collected from [www.fueleconomy.gov](http://www.fueleconomy.gov). (They offer XML and CSV files). The list is updated and validated against some industry standards.

Content
-------

[](#content)

- [Installation](#installation)
    - [Composer](#composer)
    - [Service Provider](#service-provider)
    - [Config File, Migrations and Seeders](#config-file-migration-and-seeders)
    - [Traits and Contracts](#traits-and-contracts)
- [Usage](#usage)
    - [The CSV File](#the-csv-file)
    - [Models](#models)
    - [Controllers](#controllers)
    - [Routes](#routes)
- [License](#license)

Installation
------------

[](#installation)

### Composer

[](#composer)

Pull this package through Composer (file `composer.json`)

```
{
    "require": {
        "php": ">=5.5.9",
        "laravel/framework": "5.2.*",
        "gerardojbaez/vehicle": "1.*"
    }
}
```

Run this command inside your terminal.

```
composer update

```

### Service Provider

[](#service-provider)

Add the package to your application service providers in config/app.php file.

```
