2017 © Pedro Peláez
 

library gusclient

GUS companies database API client

image

mwojtowicz/gusclient

GUS companies database API client

  • Tuesday, November 7, 2017
  • by mwojtowicz
  • Repository
  • 3 Watchers
  • 2 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 12 Versions
  • 0 % Grown

The README.md

GUS API Client

Latest Stable Version Travis build on master Coverage Status Total Downloads License, (*1)

1. Installation

composer require mwojtowicz/gusclient, (*2)

2. Usage

Each client is instance of GusClientInterface, which has one method find. Find method accepts as input strings or array of strings., (*3)

Before using this library you have to register your user key. After you'll be able to put it as constructor argument., (*4)

You can either pass this key as environment variable GUSAPI_KEY. If you won't pass it as constructor argument (it's optional) library will look at environment variable., (*5)

Code usage:, (*6)

<?php
$nipClient = new MWojtowicz\GusClient\NIPClient(<GUS_API_USER_KEY>);
$regonClient = new MWojtowicz\GusClient\RegonClient(<GUS_API_USER_KEY>);
$krsClient = new MWojtowicz\GusClient\KrsClient(<GUS_API_USER_KEY>);

$company   = $nipClient->find('1234567890');
$companies = $nipClient->find(['1234567890', '9876054321']);

$company   = $regonClient->find('1234567890');
$companies = $regonClient->find(['1234567890', '9876054321']);

$company   = $krsClient->find('1234567890');
$companies = $krsClient->find(['1234567890', '9876054321']);

The Versions

07/11 2017

dev-master

9999999-dev

GUS companies database API client

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Michał Wójtowicz

07/11 2017

2.2

2.2.0.0

GUS companies database API client

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Michał Wójtowicz

07/11 2017

2.1

2.1.0.0

GUS companies database API client

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Michał Wójtowicz

07/11 2017

2.0

2.0.0.0

GUS companies database API client

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Michał Wójtowicz

26/10 2017

dev-develop

dev-develop

GUS companies database API client

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Michał Wójtowicz

05/05 2016

1.1.5

1.1.5.0

GUS companies database API client

  Sources   Download

MIT

The Development Requires

by Michał Wójtowicz

05/05 2016

1.1.4

1.1.4.0

GUS companies database API client

  Sources   Download

MIT

The Development Requires

by Michał Wójtowicz

02/05 2016

1.1.3

1.1.3.0

GUS companies database API client

  Sources   Download

MIT

The Development Requires

by Michał Wójtowicz

17/12 2015

1.1.2

1.1.2.0

GUS companies database API client

  Sources   Download

MIT

The Development Requires

by Michał Wójtowicz

16/12 2015

1.1.1

1.1.1.0

GUS companies database API client

  Sources   Download

MIT

The Development Requires

by Michał Wójtowicz

16/12 2015

1.1

1.1.0.0

GUS companies database API client

  Sources   Download

MIT

The Development Requires

by Michał Wójtowicz

11/12 2015

1.0

1.0.0.0

GUS companies database API client

  Sources   Download

MIT

The Development Requires

by Michał Wójtowicz