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(4mo ago)02.3k↓78.7%MITPHPPHP ^8.4

Since Dec 11Pushed 4mo 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 3d 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

43

—

FairBetter than 89% of packages

Maintenance74

Regular maintenance activity

Popularity21

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

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

143d 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.8k9.0M69](/packages/spatie-laravel-responsecache)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k91.9k1](/packages/mike-bronner-laravel-model-caching)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M96](/packages/mongodb-laravel-mongodb)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M132](/packages/laravel-pulse)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M203](/packages/laravel-ai)

PHPackages © 2026

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