2017 © Pedro Peláez
 

library gusapi

Gus Api Library for PHP

image

gusapi/gusapi

Gus Api Library for PHP

  • Tuesday, July 17, 2018
  • by johnzuk
  • Repository
  • 8 Watchers
  • 37 Stars
  • 25,665 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 25 Forks
  • 14 Open issues
  • 20 Versions
  • 36 % Grown

The README.md

PHP GUS API library

Packagist Build Status Codecov Packagist Packagist StyleCI Scrutinizer Code Quality, (*1)

PHP GUS API is an object-oriented library to get information from REGON site based on official REGON SOAP API. Official GUS docs here., (*2)

Installation

This library uses Composer, just type in:, (*3)

composer require gusapi/gusapi

Supported Versions

Version PHP version BIR service version Support Doc
6.x >= 8.0 BIR1.1 (available since October 2022) Support ends on April 1, 2023 Doc
5.x >= 7.1 BIR1.1 (available since May 2019) Support ends on December 1, 2020 Doc

If you still use PHP <= 8.0 see documentation for 5.x version HERE

Upgrade from 5.x to 6.x

For more information see UPGRADE.md., (*4)

Example for 6.x

See file examples/readmeExample.php., (*5)


require_once '../vendor/autoload.php'; use GusApi\Exception\InvalidUserKeyException; use GusApi\Exception\NotFoundException; use GusApi\GusApi; use GusApi\ReportTypes; use GusApi\BulkReportTypes; $gus = new GusApi('your api key here'); //for development server use: //$gus = new GusApi('abcde12345abcde12345', 'dev'); try { $nipToCheck = 'xxxxxxxxxx'; //change to valid nip value $gus->login(); $gusReports = $gus->getByNip($nipToCheck); var_dump($gus->dataStatus()); var_dump($gus->getBulkReport( new DateTimeImmutable('2019-05-31'), BulkReportTypes::REPORT_DELETED_LOCAL_UNITS )); foreach ($gusReports as $gusReport) { //you can change report type to other one $reportType = ReportTypes::REPORT_PERSON; echo $gusReport->getName(); echo 'Address: ' . $gusReport->getStreet() . ' ' . $gusReport->getPropertyNumber() . '/' . $gusReport->getApartmentNumber(); $fullReport = $gus->getFullReport($gusReport, $reportType); var_dump($fullReport); } } catch (InvalidUserKeyException $e) { echo 'Bad user key'; } catch (NotFoundException $e) { echo 'No data found <br>'; echo 'For more information read server message below: <br>'; echo sprintf( "StatusSesji:%s\nKomunikatKod:%s\nKomunikatTresc:%s\n", $gus->getSessionStatus(), $gus->getMessageCode(), $gus->getMessage() ); }

Stargazers over time

Stargazers over time, (*6)

The Versions

17/07 2018

dev-master

9999999-dev

Gus Api Library for PHP

  Sources   Download

LGPL-2.1 LGPL-2.1-or-later

The Requires

  • ext-soap *
  • php ^7.1

 

The Development Requires

by Janusz Żukowicz

api library soap regon nip gus ceidg krs cegid

17/07 2018

4.0.1

4.0.1.0

Gus Api Library for PHP

  Sources   Download

LGPL-2.1-or-later

The Requires

  • php ^7.1
  • ext-soap *

 

The Development Requires

by Janusz Żukowicz

api library soap regon nip gus ceidg krs

17/07 2018

dev-fix/search-report-values

dev-fix/search-report-values

Gus Api Library for PHP

  Sources   Download

LGPL-2.1-or-later

The Requires

  • php ^7.1
  • ext-soap *

 

The Development Requires

by Janusz Żukowicz

api library soap regon nip gus ceidg krs

16/05 2018

4.0.0

4.0.0.0

Gus Api Library for PHP

  Sources   Download

LGPL-2.1-or-later

The Requires

  • php ^7.1
  • ext-soap *

 

The Development Requires

by Janusz Żukowicz

api library soap regon nip gus ceidg krs

10/05 2018

4.0.0-alpha

4.0.0.0-alpha

Gus Api Library for PHP

  Sources   Download

LGPL-2.1-or-later

The Requires

  • php ^7.1
  • ext-soap *

 

The Development Requires

by Janusz Żukowicz

api library soap regon nip gus ceidg krs

07/05 2018

dev-feature/architecture-upgrade

dev-feature/architecture-upgrade

Gus Api Library for PHP

  Sources   Download

LGPL-2.1-or-later

The Requires

  • php ^7.1
  • ext-soap *

 

The Development Requires

by Janusz Żukowicz

api library soap regon nip gus ceidg krs cegid

27/04 2018

v3.2.x-dev

3.2.9999999.9999999-dev

Gus Api Library for PHP

  Sources   Download

LGPL-2.1-or-later

The Requires

  • ext-soap *
  • php >=5.3

 

The Development Requires

by Janusz Żukowicz

api library soap regon nip gus krs cegid

27/04 2018

3.2.1

3.2.1.0

Gus Api Library for PHP

  Sources   Download

LGPL-2.1-or-later

The Requires

  • php >=5.3
  • ext-soap *

 

The Development Requires

by Janusz Żukowicz

api library soap regon nip gus krs cegid

27/04 2018

3.3.x-dev

3.3.9999999.9999999-dev

Gus Api Library for PHP

  Sources   Download

LGPL-2.1-only

The Requires

  • php >=5.6

 

The Development Requires

by Janusz Żukowicz

api library soap regon nip gus krs cegid

27/04 2018

3.3.2

3.3.2.0

Gus Api Library for PHP

  Sources   Download

LGPL-2.1-only

The Requires

  • php >=5.6

 

The Development Requires

by Janusz Żukowicz

api library soap regon nip gus krs cegid

21/04 2018

v3.3.1.x-dev

3.3.1.9999999-dev

Gus Api Library for PHP

  Sources   Download

LGPL-2.1-only

The Requires

  • php >=5.6
  • ext-soap *

 

The Development Requires

by Janusz Żukowicz

api library soap regon nip gus krs cegid

21/04 2018

3.3.1

3.3.1.0

Gus Api Library for PHP

  Sources   Download

LGPL-2.1-only

The Requires

  • php >=5.6
  • ext-soap *

 

The Development Requires

by Janusz Żukowicz

api library soap regon nip gus krs cegid

21/04 2018

3.3

3.3.0.0

Gus Api Library for PHP

  Sources   Download

LGPL-2.1-only

The Requires

  • php >=5.6

 

The Development Requires

by Janusz Żukowicz

api library soap regon nip gus krs cegid

03/01 2018

3.2

3.2.0.0

Gus Api Library for PHP

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.4

 

The Development Requires

by Janusz Żukowicz

api library soap regon nip gus krs cegid

01/10 2017

3.1.1

3.1.1.0

Gus Api Library for PHP

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.4

 

The Development Requires

by Janusz Żukowicz

api library soap regon nip gus krs cegid

30/09 2017

3.1

3.1.0.0

Gus Api Library for PHP

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.4

 

The Development Requires

by Janusz Żukowicz

api library soap regon nip gus krs cegid

11/03 2017

1.0

1.0.0.0

Gus Api Library for PHP

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.3

 

The Development Requires

by Janusz Żukowicz

api library soap regon nip gus krs cegid

11/03 2017

3.0

3.0.0.0

Gus Api Library for PHP

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.3

 

The Development Requires

by Janusz Żukowicz

api library soap regon nip gus krs cegid

29/09 2015

3.0.x-dev

3.0.9999999.9999999-dev

Gus Api Library for PHP

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.3

 

The Development Requires

by Janusz Żukowicz

api library soap regon nip gus krs cegid

14/08 2015

2.0.x-dev

2.0.9999999.9999999-dev

Gus Api Library for PHP

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

by Janusz Żukowicz

api regon nip gus krs