{"id":37000228,"url":"https://github.com/codebyray/laravel-vehapi","last_synced_at":"2026-01-14T00:01:48.550Z","repository":{"id":56954987,"uuid":"351683689","full_name":"codebyray/laravel-vehapi","owner":"codebyray","description":"Vehicle Information API Laravel Package. This package works with our API at vehapi.com to retrieve vehicle information such as: year, make, model, trim, transmission and engine types.","archived":false,"fork":false,"pushed_at":"2021-12-21T05:03:39.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-25T11:42:49.882Z","etag":null,"topics":["api","laravel","php","vehicle","vehicleapi","vehicleinfo","vehicleinformationservice"],"latest_commit_sha":null,"homepage":"https://vehapi.com/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codebyray.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-26T06:25:17.000Z","updated_at":"2023-05-15T06:33:09.000Z","dependencies_parsed_at":"2022-08-21T08:50:08.483Z","dependency_job_id":null,"html_url":"https://github.com/codebyray/laravel-vehapi","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/codebyray/laravel-vehapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebyray%2Flaravel-vehapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebyray%2Flaravel-vehapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebyray%2Flaravel-vehapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebyray%2Flaravel-vehapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codebyray","download_url":"https://codeload.github.com/codebyray/laravel-vehapi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebyray%2Flaravel-vehapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28406468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","laravel","php","vehicle","vehicleapi","vehicleinfo","vehicleinformationservice"],"created_at":"2026-01-14T00:01:47.590Z","updated_at":"2026-01-14T00:01:48.369Z","avatar_url":"https://github.com/codebyray.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Vehicle Information API\n\n[![Packagist Version](https://img.shields.io/packagist/v/codebyray/laravel-vehapi)](https://packagist.org/packages/codebyray/laravel-vehapi)\n[![Build Status](https://img.shields.io/travis/codebyray/laravel-vehapi/master.svg?style=flat-square)](https://travis-ci.org/codebyray/laravel-vehapi)\n[![Quality Score](https://img.shields.io/scrutinizer/g/codebyray/laravel-vehapi.svg?style=flat-square)](https://scrutinizer-ci.com/g/codebyray/laravel-vehapi)\n[![Total Downloads](https://img.shields.io/packagist/dt/codebyray/laravel-vehapi.svg?style=flat-square)](https://packagist.org/packages/codebyray/laravel-vehapi)\n\nVehicle Information API is an API system for retrieving vehicle information to include, vehicle year, make, model, trim, transmission, engine and logos for vehicle makes. \nFor more information on this service or to subscribe, please visit [Vehicle Information API](https://vehapi.com)\n\n\u003e 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. \n\u003e We will be adding that ability in a future release.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require codebyray/laravel-vehapi\n```\n\nThen include the service provider within you `app/config/app.php`. \n\u003e NOTE: If you're running Laravel 5.5+ this will be auto loaded for you.\n\n``` php\n'providers' =\u003e [\n    Codebyray\\LaravelVehapi\\LaravelVehapiServiceProvider::class\n];\n```\n\nPublish the config file (optional)\n```bash\nphp artisan vendor:publish --provider=\"Codebyray\\LaravelVehapi\\LaravelVehapiServiceProvider\" --tag=\"config\"\n```\n\n## Setup .env file\nAdd your API token, API version \u0026 API SSL check to your .env file:\n\u003e NOTE: API version will default to v1, you DO NOT need to specify the version unless you are using a different \n\u003e version of Vehicle Info API. API token is required. However, it can be entered in your .env file (recommended), or the published\n\u003e config file.\n\n```dotenv\nVEH_API_TOKEN=YOUR_VEH_API_TOKEN\nVEH_API_VERSION=v1\nVEH_CHECK_SSL_CERT=true // Defaults to true. Change to false if testing locally.\n```\n## Usage\n\nLet's get all the distinct years for all the makes available\n```php\n/**\n * @param string $sort - optional, defaults to 'asc'\n */\nLaravelVehapi::getAllYears($sort = 'asc');\n\n// Returns associative array\n// This will return all years from 1899-2022\n$vehYears = LaravelVehapi::getAllYears($sort);\n\n// Convert array to json format\n$vehYears = json_encode(LaravelVehapi::getAllYears($sort));\n```\nLet's get all the distinct years for all the makes available\n```php\n/**\n * @param int $minYear - required\n * @param int $maxYear - required\n * @param string $sort - optional, defaults to 'asc'\n */\nLaravelVehapi::getYearsRange(int $minYear, int $maxYear, $sort = 'asc');\n\n// Returns associative array\n$vehYears = LaravelVehapi::getYearsRange('2010', '2014', 'desc');\n\n// Convert array to json format\n$vehYears = json_encode(LaravelVehapi::getYearsRange('2010', '2014', 'desc'));\n```\n\nLet's get all the distinct makes available\n```php\n/**\n * @param string $sort - optional, defaults to 'asc'\n */\nLaravelVehapi::getAllMakes($sort = 'asc');\n\n// Returns associative array\n$vehMakes = LaravelVehapi::getAllMakes();\n\n// Convert array to json format\n$vehMakes = json_encode(LaravelVehapi::getAllMakes());\n```\n\nLet's get all the distinct makes available for a specific year\n```php\n/**\n * @param int $year - required\n * @param string $sort - optional, defaults to 'asc'\n */\nLaravelVehapi::getMakesByYear($year, $sort = 'asc');\n\n// Returns associative array\n$vehMakes = LaravelVehapi::getMakesByYear(2015);\n\n// Convert array to json format\n$vehMakes = json_encode(LaravelVehapi::getMakesByYear(2015));\n```\n\nLet's get all the distinct makes available for a specific year range\n```php\n/**\n * @param int $minYear - required\n * @param int $maxYear - required\n * @param string $sort - optional, defaults to 'asc'\n */\nLaravelVehapi::getMakesByYearsRange($minYear, $maxYear, $sort = 'asc');\n\n// Returns associative array\n$vehMakes = LaravelVehapi::getMakesByYear(2015);\n\n// Convert array to json format\n$vehMakes = json_encode(LaravelVehapi::getMakesByYear(2015));\n```\n\nLet's get all the models available for a specific make\n```php\n/**\n * @param string $make - required\n * @param string $sort - optional, defaults to 'asc'\n */\nLaravelVehapi::getAllModelsByMake($make, $sort = 'asc');\n\n// Returns associative array\n$vehModels = LaravelVehapi::getAllModelsByMake('Acura');\n\n// Convert array to json format\n$vehModels = json_encode(LaravelVehapi::getAllModelsByMake('Acura'));\n```\n\nLet's get all the models available for a specific year \u0026 make\n```php\n/**\n * @param int $year - required\n * @param string $make - required\n * @param string $sort - optional, defaults to 'asc'\n */\nLaravelVehapi::getModelsByYearAndMake($year, $make, $sort = 'asc');\n\n// Returns associative array\n$vehModels = LaravelVehapi::getModelsByYearAndMake(2015, 'Acura');\n\n// Convert array to json format\n$vehModels = json_encode(LaravelVehapi::getModelsByYearAndMake(2015, 'Acura'));\n```\n\nLet's get all the trims levels available for a specific year, make \u0026 model\n```php\n/**\n * @param int $year - required\n * @param string $make - required\n * @param string $model - required\n */\nLaravelVehapi::getTrimsByYearMakeAndModel($year, $make, $model);\n\n// Returns associative array\n$vehTrims = LaravelVehapi::getTrimsByYearMakeAndModel(2015, 'Acura', 'MDX');\n\n// Convert array to json format\n$vehTrims = json_encode(LaravelVehapi::getTrimsByYearMakeAndModel(2015, 'Acura', 'MDX'));\n```\n\nLet's get all the transmissions available for a specific year, make, model \u0026 trim\n```php\n/**\n * @param int $year - required\n * @param string $make - required\n * @param string $model - required\n * @param string $trim - required\n */\nLaravelVehapi::getTransmissionsByYearMakeModelAndTrim($year, $make, $model, $trim);\n\n// Returns associative array\n$vehTransmissions = LaravelVehapi::getTransmissionsByYearMakeModelAndTrim(2015, 'Acura', 'MDX', 'FWD');\n\n// Convert array to json format\n$vehTransmissions = json_encode(LaravelVehapi::getTransmissionsByYearMakeModelAndTrim(2015, 'Acura', 'MDX', 'FWD'));\n```\n\nLet's get all the engines available for a specific year, make, model, trim \u0026 transmission\n```php\n/**\n * @param int $year - required\n * @param string $make - required\n * @param string $model - required\n * @param string $trim - required\n * @param string $transmission - required\n */\nLaravelVehapi::getEnginesByYearMakeModelTrimAndTransmission($year, $make, $model, $trim, $transmission);\n\n// Returns associative array\n$vehEngines = LaravelVehapi::getEnginesByYearMakeModelTrimAndTransmission(2015, 'Acura', 'MDX', 'FWD', '6-Speed Automatic');\n\n// Convert array to json format\n$vehEngines = json_encode(LaravelVehapi::getEnginesByYearMakeModelTrimAndTransmission(2015, 'Acura', 'MDX', 'FWD', '6-Speed Automatic'));\n```\n\nLet's get all the wheel options available for a specific year, make, model, trim, transmission \u0026 engine\n```php\n/**\n * Return wheels available for the year, make, model, transmission \u0026 engine supplied.\n *\n * @param int $year\n * @param string $make\n * @param string $model\n * @param string $trim\n * @param string $transmission\n * @param string $engine\n *\n * @return mixed\n */\nLaravelVehapi::getWheelsByYearMakeModelTrimTransmissionAndEngine($year, $make, $model, $trim, $transmission, $engine);\n\n// Returns associative array\n$vehWheels = LaravelVehapi::getWheelsByYearMakeModelTrimTransmissionAndEngine(2021, 'Acura', 'TLX', 'FWD', '10-Speed Automatic', '2.0L 272 hp I4');\n\n// Convert array to json format\n$vehWheels = json_encode(LaravelVehapi::getWheelsByYearMakeModelTrimTransmissionAndEngine(2021, 'Acura', 'TLX', 'FWD', '10-Speed Automatic', '2.0L 272 hp I4'));\n```\n\nLet's get all the vehicle options available for a specific year, make, model, trim, transmission \u0026 engine\n```php\n/**\n * Return options available for the year, make, model, transmission \u0026 engine supplied.\n *\n * @param int $year\n * @param string $make\n * @param string $model\n * @param string $trim\n * @param string $transmission\n * @param string $engine\n *\n * @return mixed\n */\nLaravelVehapi::getOptionsByYearMakeModelTrimTransmissionAndEngine($year, $make, $model, $trim, $transmission, $engine);\n\n// Returns associative array\n$vehOptions = LaravelVehapi::getOptionsByYearMakeModelTrimTransmissionAndEngine(2021, 'Acura', 'TLX', 'FWD', '10-Speed Automatic', '2.0L 272 hp I4');\n\n// Convert array to json format\n$vehOptions = json_encode(LaravelVehapi::getOptionsByYearMakeModelTrimTransmissionAndEngine(2021, 'Acura', 'TLX', 'FWD', '10-Speed Automatic', '2.0L 272 hp I4'));\n```\n\n### Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n### API Documentation\nFor a complete list of available API endpoints, visit [API documentation](https://documenter.getpostman.com/view/185623/TVYM5c17)\n### Security\n\nIf you discover any security related issues, please email dev@codebyray.com instead of using the issue tracker.\n\n## Credits\n\n- [CodebyRay](https://github.com/codebyray)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebyray%2Flaravel-vehapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodebyray%2Flaravel-vehapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebyray%2Flaravel-vehapi/lists"}