PHPackages                             codebyray/laravel-vehapi - 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. [API Development](/categories/api)
4. /
5. codebyray/laravel-vehapi

ActiveLibrary[API Development](/categories/api)

codebyray/laravel-vehapi
========================

Vehicle Information API Laravel Package

1.1.1(4y ago)112MITPHPPHP ^7.3|^8.0

Since Mar 26Pushed 4y ago2 watchersCompare

[ Source](https://github.com/codebyray/laravel-vehapi)[ Packagist](https://packagist.org/packages/codebyray/laravel-vehapi)[ Docs](https://github.com/codebyray/laravel-vehapi)[ RSS](/packages/codebyray-laravel-vehapi/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Laravel Vehicle Information API
===============================

[](#laravel-vehicle-information-api)

[![Packagist Version](https://camo.githubusercontent.com/a396732c00eb75e794acd7e5fc5690b469231777e38ba4e23be9cd535867effa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f646562797261792f6c61726176656c2d766568617069)](https://packagist.org/packages/codebyray/laravel-vehapi)[![Build Status](https://camo.githubusercontent.com/0de5c4efad7d0696d1fd66edfb41990fc582d55e11c0d201728a6ca41e5370a7/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636f646562797261792f6c61726176656c2d7665686170692f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/codebyray/laravel-vehapi)[![Quality Score](https://camo.githubusercontent.com/0d948ccd0592bc649ec5e4a31f88e286ef1eb3e33ca084e8a2bbd24f16ee7b2f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f636f646562797261792f6c61726176656c2d7665686170692e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/codebyray/laravel-vehapi)[![Total Downloads](https://camo.githubusercontent.com/5ed34401c9671df6316d211413ab2f3a918fec671d58c9d20ad504f16519ca06/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f646562797261792f6c61726176656c2d7665686170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codebyray/laravel-vehapi)

Vehicle Information API is an API system for retrieving vehicle information to include, vehicle year, make, model, trim, transmission, engine and logos for vehicle makes. For more information on this service or to subscribe, please visit [Vehicle Information API](https://vehapi.com)

> NOTE: This package currently only works to retrieve vehicle data from our API, it will not work to retrieve ANY data from our MOTO API endpoints. We will be adding that ability in a future release.

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

[](#installation)

You can install the package via composer:

```
composer require codebyray/laravel-vehapi
```

Then include the service provider within you `app/config/app.php`.

> NOTE: If you're running Laravel 5.5+ this will be auto loaded for you.

```
'providers' => [
    Codebyray\LaravelVehapi\LaravelVehapiServiceProvider::class
];
```

Publish the config file (optional)

```
php artisan vendor:publish --provider="Codebyray\LaravelVehapi\LaravelVehapiServiceProvider" --tag="config"
```

Setup .env file
---------------

[](#setup-env-file)

Add your API token, API version &amp; API SSL check to your .env file:

> NOTE: API version will default to v1, you DO NOT need to specify the version unless you are using a different version of Vehicle Info API. API token is required. However, it can be entered in your .env file (recommended), or the published config file.

```
VEH_API_TOKEN=YOUR_VEH_API_TOKEN
VEH_API_VERSION=v1
VEH_CHECK_SSL_CERT=true // Defaults to true. Change to false if testing locally.
```

Usage
-----

[](#usage)

Let's get all the distinct years for all the makes available

```
/**
 * @param string $sort - optional, defaults to 'asc'
 */
LaravelVehapi::getAllYears($sort = 'asc');

// Returns associative array
// This will return all years from 1899-2022
$vehYears = LaravelVehapi::getAllYears($sort);

// Convert array to json format
$vehYears = json_encode(LaravelVehapi::getAllYears($sort));
```

Let's get all the distinct years for all the makes available

```
/**
 * @param int $minYear - required
 * @param int $maxYear - required
 * @param string $sort - optional, defaults to 'asc'
 */
LaravelVehapi::getYearsRange(int $minYear, int $maxYear, $sort = 'asc');

// Returns associative array
$vehYears = LaravelVehapi::getYearsRange('2010', '2014', 'desc');

// Convert array to json format
$vehYears = json_encode(LaravelVehapi::getYearsRange('2010', '2014', 'desc'));
```

Let's get all the distinct makes available

```
/**
 * @param string $sort - optional, defaults to 'asc'
 */
LaravelVehapi::getAllMakes($sort = 'asc');

// Returns associative array
$vehMakes = LaravelVehapi::getAllMakes();

// Convert array to json format
$vehMakes = json_encode(LaravelVehapi::getAllMakes());
```

Let's get all the distinct makes available for a specific year

```
/**
 * @param int $year - required
 * @param string $sort - optional, defaults to 'asc'
 */
LaravelVehapi::getMakesByYear($year, $sort = 'asc');

// Returns associative array
$vehMakes = LaravelVehapi::getMakesByYear(2015);

// Convert array to json format
$vehMakes = json_encode(LaravelVehapi::getMakesByYear(2015));
```

Let's get all the distinct makes available for a specific year range

```
/**
 * @param int $minYear - required
 * @param int $maxYear - required
 * @param string $sort - optional, defaults to 'asc'
 */
LaravelVehapi::getMakesByYearsRange($minYear, $maxYear, $sort = 'asc');

// Returns associative array
$vehMakes = LaravelVehapi::getMakesByYear(2015);

// Convert array to json format
$vehMakes = json_encode(LaravelVehapi::getMakesByYear(2015));
```

Let's get all the models available for a specific make

```
/**
 * @param string $make - required
 * @param string $sort - optional, defaults to 'asc'
 */
LaravelVehapi::getAllModelsByMake($make, $sort = 'asc');

// Returns associative array
$vehModels = LaravelVehapi::getAllModelsByMake('Acura');

// Convert array to json format
$vehModels = json_encode(LaravelVehapi::getAllModelsByMake('Acura'));
```

Let's get all the models available for a specific year &amp; make

```
/**
 * @param int $year - required
 * @param string $make - required
 * @param string $sort - optional, defaults to 'asc'
 */
LaravelVehapi::getModelsByYearAndMake($year, $make, $sort = 'asc');

// Returns associative array
$vehModels = LaravelVehapi::getModelsByYearAndMake(2015, 'Acura');

// Convert array to json format
$vehModels = json_encode(LaravelVehapi::getModelsByYearAndMake(2015, 'Acura'));
```

Let's get all the trims levels available for a specific year, make &amp; model

```
/**
 * @param int $year - required
 * @param string $make - required
 * @param string $model - required
 */
LaravelVehapi::getTrimsByYearMakeAndModel($year, $make, $model);

// Returns associative array
$vehTrims = LaravelVehapi::getTrimsByYearMakeAndModel(2015, 'Acura', 'MDX');

// Convert array to json format
$vehTrims = json_encode(LaravelVehapi::getTrimsByYearMakeAndModel(2015, 'Acura', 'MDX'));
```

Let's get all the transmissions available for a specific year, make, model &amp; trim

```
/**
 * @param int $year - required
 * @param string $make - required
 * @param string $model - required
 * @param string $trim - required
 */
LaravelVehapi::getTransmissionsByYearMakeModelAndTrim($year, $make, $model, $trim);

// Returns associative array
$vehTransmissions = LaravelVehapi::getTransmissionsByYearMakeModelAndTrim(2015, 'Acura', 'MDX', 'FWD');

// Convert array to json format
$vehTransmissions = json_encode(LaravelVehapi::getTransmissionsByYearMakeModelAndTrim(2015, 'Acura', 'MDX', 'FWD'));
```

Let's get all the engines available for a specific year, make, model, trim &amp; transmission

```
/**
 * @param int $year - required
 * @param string $make - required
 * @param string $model - required
 * @param string $trim - required
 * @param string $transmission - required
 */
LaravelVehapi::getEnginesByYearMakeModelTrimAndTransmission($year, $make, $model, $trim, $transmission);

// Returns associative array
$vehEngines = LaravelVehapi::getEnginesByYearMakeModelTrimAndTransmission(2015, 'Acura', 'MDX', 'FWD', '6-Speed Automatic');

// Convert array to json format
$vehEngines = json_encode(LaravelVehapi::getEnginesByYearMakeModelTrimAndTransmission(2015, 'Acura', 'MDX', 'FWD', '6-Speed Automatic'));
```

Let's get all the wheel options available for a specific year, make, model, trim, transmission &amp; engine

```
/**
 * Return wheels available for the year, make, model, transmission & engine supplied.
 *
 * @param int $year
 * @param string $make
 * @param string $model
 * @param string $trim
 * @param string $transmission
 * @param string $engine
 *
 * @return mixed
 */
LaravelVehapi::getWheelsByYearMakeModelTrimTransmissionAndEngine($year, $make, $model, $trim, $transmission, $engine);

// Returns associative array
$vehWheels = LaravelVehapi::getWheelsByYearMakeModelTrimTransmissionAndEngine(2021, 'Acura', 'TLX', 'FWD', '10-Speed Automatic', '2.0L 272 hp I4');

// Convert array to json format
$vehWheels = json_encode(LaravelVehapi::getWheelsByYearMakeModelTrimTransmissionAndEngine(2021, 'Acura', 'TLX', 'FWD', '10-Speed Automatic', '2.0L 272 hp I4'));
```

Let's get all the vehicle options available for a specific year, make, model, trim, transmission &amp; engine

```
/**
 * Return options available for the year, make, model, transmission & engine supplied.
 *
 * @param int $year
 * @param string $make
 * @param string $model
 * @param string $trim
 * @param string $transmission
 * @param string $engine
 *
 * @return mixed
 */
LaravelVehapi::getOptionsByYearMakeModelTrimTransmissionAndEngine($year, $make, $model, $trim, $transmission, $engine);

// Returns associative array
$vehOptions = LaravelVehapi::getOptionsByYearMakeModelTrimTransmissionAndEngine(2021, 'Acura', 'TLX', 'FWD', '10-Speed Automatic', '2.0L 272 hp I4');

// Convert array to json format
$vehOptions = json_encode(LaravelVehapi::getOptionsByYearMakeModelTrimTransmissionAndEngine(2021, 'Acura', 'TLX', 'FWD', '10-Speed Automatic', '2.0L 272 hp I4'));
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

### API Documentation

[](#api-documentation)

For a complete list of available API endpoints, visit [API documentation](https://documenter.getpostman.com/view/185623/TVYM5c17)

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [CodebyRay](https://github.com/codebyray)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~135 days

Total

3

Last Release

1656d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/56b9f090994212c557bf9e64ab54e367eacc9f614b152be8ff532cc7f3f2565b?d=identicon)[codebyray](/maintainers/codebyray)

---

Top Contributors

[![codebyray](https://avatars.githubusercontent.com/u/2058181?v=4)](https://github.com/codebyray "codebyray (12 commits)")

---

Tags

apilaravelphpvehiclevehicleapivehicleinfovehicleinformationservicecodebyraylaravel-vehapi

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/codebyray-laravel-vehapi/health.svg)

```
[![Health](https://phpackages.com/badges/codebyray-laravel-vehapi/health.svg)](https://phpackages.com/packages/codebyray-laravel-vehapi)
```

###  Alternatives

[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.6k3](/packages/defstudio-telegraph)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[rapidez/core

Rapidez Core

1823.5k72](/packages/rapidez-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
