kristiani / cvrapi
CVR API package
Installs: 5 607
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 2
Open Issues: 0
Requires
- php: >=7.3.0
Requires (Dev)
- phpunit/phpunit: dev-master
This package is auto-updated.
Last update: 2024-10-18 22:50:24 UTC
README
CVR API
Easily look up companies in the danish CVR database using the CVRAPI.dk API.
Supports tokens.
Installation
composer require kristiani/cvrapi
Usage
// Get by VAT number $result = \Cvrapi\Cvrapi::get('29910251', 'dk', 'Description of my project'); // Get by P-number $result = \Cvrapi\Cvrapi::get('1012697712', 'dk', 'Description of my project'); // Get by company name $result = \Cvrapi\Cvrapi::get('I/S Just Iversen', 'dk', 'Description of my project'); // Get company by searching specifically in the VAT field $result = \Cvrapi\Cvrapi::request('29910251', 'dk', 'vat', 'Description of my project'); // Get company by searching specifically in the P-number field $result = \Cvrapi\Cvrapi::request('1012697712', 'dk', 'produ', 'Description of my project'); // Get company by searching specifically in the company name field $result = \Cvrapi\Cvrapi::request('I/S Just Iversen', 'dk', 'name', 'Description of my project'); // Get company by searching specifically in the phone number field $result = \Cvrapi\Cvrapi::request('61401169', 'dk', 'phone', 'Description of my project'); // Get company using 'get' with token $result = \Cvrapi\Cvrapi::get('29910251', 'dk', 'Description of my project', 'secret-token'); // Get company using 'request' with token $result = \Cvrapi\Cvrapi::request('61401169', 'dk', 'phone', 'Description of my project', 'secret-token');
License
The MIT License (MIT). Please see License File for more information.