PHPackages                             kerrigan/laravel-dvla - 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. [Caching](/categories/caching)
4. /
5. kerrigan/laravel-dvla

ActiveLibrary[Caching](/categories/caching)

kerrigan/laravel-dvla
=====================

Cached DVLA lookup service for use with Laravel.

v1.0.2(3mo ago)01.2k↓48.9%MITPHPPHP ^8.4

Since Dec 11Pushed 3mo agoCompare

[ Source](https://github.com/PJKerrigan/laravel-dvla)[ Packagist](https://packagist.org/packages/kerrigan/laravel-dvla)[ Docs](https://github.com/PJKerrigan/laravel-data)[ RSS](/packages/kerrigan-laravel-dvla/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (9)Versions (5)Used By (0)

This Laravel package can retrieve and cache vehicle information from the UK DVLA.

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

[](#installation)

This package relies upon PHP 8.4, as it uses a number of relatively new language features with which I wanted to get to grips.

You can install the package via composer:

```
composer require kerrigan/laravel-dvla
```

The package will automatically register itself.

Then assign values to the environment variables mentioned in the `dvla.php` configuration file.

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-dvla"
```

These are the contents of the published config file:

```
// config/dvla.php

return [
    /*
     * DVLA VES API configuration.
     */
    'api' => [
        /*
         * API key.
         */
        'key' => env('DVLA_API_KEY', ''),

        /*
         * Use the live API?
         */
        'is_live' => env('DVLA_API_IS_LIVE', false),

        /*
         * Use a correlation ID for debugging purposes?
         */
        'correlation_id' => env('DVLA_API_CORRELATION_ID', null),
    ],

    /*
     * Should results be cached? The cache will keep results until midnight. DVLA data is updated
     * daily, meaning that results queried via the VES lookup API will be valid until at least midnight.
     */
    'cache_enabled' => env('DVLA_CACHE_ENABLED', false),

    /*
     * If `cache_enabled` is set to true, what prefix should be used to cache results?
     */
    'cache_prefix' => env('DVLA_CACHE_PREFIX', CachedVehicleLookup::DEFAULT_CACHE_PREFIX),
];
```

Usage
-----

[](#usage)

### Basic usage

[](#basic-usage)

Simply use `app(VehicleLookupService::class)` to instantiate the service according to your configuration.

Then invoke the `vehicleLookup()` method, passing in a suitable valid UK registration string, e.g. AA01AAA.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance82

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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 ~31 days

Total

3

Last Release

96d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d99cb610bdb25fbc0653bac0ee0a25bc46de3163bdc5cd59753ee37df053ad4?d=identicon)[PJKerrigan](/maintainers/PJKerrigan)

---

Top Contributors

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

---

Tags

cachedvlakerriganlaravel-dvla

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/kerrigan-laravel-dvla/health.svg)

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

###  Alternatives

[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.2M51](/packages/spatie-laravel-responsecache)[genealabs/laravel-model-caching

Automatic caching for Eloquent models.

2.4k4.8M26](/packages/genealabs-laravel-model-caching)[mikebronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k127.1k1](/packages/mikebronner-laravel-model-caching)[laragear/cache-query

Remember your query results using only one method. Yes, only one.

272122.8k](/packages/laragear-cache-query)[awssat/laravel-visits

Laravel Redis visits counter for Eloquent models

975163.6k2](/packages/awssat-laravel-visits)[anahkiasen/flatten

A package for the Illuminate framework that flattens pages to plain HTML

33113.0k](/packages/anahkiasen-flatten)

PHPackages © 2026

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