2017 © Pedro Peláez
 

library cvrapi

CVR API package

image

kristiani/cvrapi

CVR API package

  • Wednesday, February 8, 2017
  • by KristianI
  • Repository
  • 1 Watchers
  • 1 Stars
  • 479 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 15 % Grown

The README.md

Packagist Downloads Code size Build Status, (*1)

CVR API

Easily look up companies in the danish CVR database using the CVRAPI.dk API., (*2)

Supports tokens., (*3)

Installation

composer require kristiani/cvrapi, (*4)

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., (*5)

The Versions

08/02 2017

dev-master

9999999-dev

CVR API package

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Kristian Just Iversen

08/02 2017

0.1

0.1.0.0

CVR API package

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Kristian Just Iversen