PHPackages                             sh4dw/laracvr - 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. sh4dw/laracvr

ActiveLibrary[API Development](/categories/api)

sh4dw/laracvr
=============

Wrapper for danish CVR API

1.0.11(8y ago)0195MITPHPPHP ~5.6|~7.0

Since Feb 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/sh4dw/laracvr)[ Packagist](https://packagist.org/packages/sh4dw/laracvr)[ Docs](https://github.com/sh4dw/laracvr)[ RSS](/packages/sh4dw-laracvr/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (11)Used By (0)

laracvr
=======

[](#laracvr)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ed135f54f2c3ccec9f1dc29a3360741b011251124ad9fe0116c15ad8ce217f5f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73683464772f6c6172616376722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sh4dw/laracvr)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/d040389d54829bc5e1380aa5ff39c682eb6a22ba2be0def4fe21f672e4426bec/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f73683464772f6c6172616376722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/sh4dw/laracvr)[![Coverage Status](https://camo.githubusercontent.com/2cc8a916bef3cb524fec8fb9ba364af4316606d093c5635221e6ca2e7d912136/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f73683464772f6c6172616376722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/sh4dw/laracvr/code-structure)[![Quality Score](https://camo.githubusercontent.com/97e6c07c0236a9e718f30fa691e1262378d175f396952cd11a564a6af7ebb969/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73683464772f6c6172616376722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/sh4dw/laracvr)[![Total Downloads](https://camo.githubusercontent.com/d0dcae5c4d7a7e27fe49e596f8924f0b05e0d23c844bce7727ece32dc17b1172/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73683464772f6c6172616376722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sh4dw/laracvr)

A simple Laravel CVR wrapper for the danish CVR API.

Install
-------

[](#install)

Via Composer

```
$ composer require sh4dw/laracvr
```

Config
------

[](#config)

```
Add the following to your .env file
CVR_USER=
CVR_PASSWORD=
```

Usage
-----

[](#usage)

Lookup a CVR with the following example (query could be any valid Elasticseach format).

Read more: [Virk CVR documentation](http://datahub.virk.dk/dataset/system-til-system-adgang-til-cvr-data)

```
use Sh4dw\Laracvr\CVRClient;

$query = [
    'term' => [
    'cvrNummer' =>
    ]
];

$response = CVRClient::request($query);
return $response;
```

### Response format:

[](#response-format)

```
{
    'millis': 2, // Execution time in millis
    'timedOut': false, // If timed out at the API endpoint
    'totalHits': 1, //Number of hits found (results)
    'data': [] //array containing all data for the CVR record
}
```

Change log
----------

[](#change-log)

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

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Lars Hartmann](https://github.com/sh4dw)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Total

10

Last Release

2988d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1018fb006c554321b01a9be729035ea3e34bb7b5af97474602adb969f93b864b?d=identicon)[sh4dw](/maintainers/sh4dw)

---

Tags

laravelcvrapish4dwLaraCVRcvrcvr apivirk

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/sh4dw-laracvr/health.svg)

```
[![Health](https://phpackages.com/badges/sh4dw-laracvr/health.svg)](https://phpackages.com/packages/sh4dw-laracvr)
```

###  Alternatives

[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[api-ecosystem-for-laravel/dingo-api

A RESTful API package for the Laravel and Lumen frameworks.

3121.5M10](/packages/api-ecosystem-for-laravel-dingo-api)[essa/api-tool-kit

set of tools to build an api with laravel

52680.5k](/packages/essa-api-tool-kit)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[kirschbaum-development/laravel-openapi-validator

Automatic OpenAPI validation for Laravel HTTP tests

581.1M5](/packages/kirschbaum-development-laravel-openapi-validator)

PHPackages © 2026

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