GusApi
PHP GUS API library based on BIR1 service.
Install / Use
/learn @rudashi/GusApiREADME
PHP GUS API
PHP GUS API is a wrapper to get information from Portal API GUS based on official BIR1 API.
Official API REGON documentation.
Installation
Use Composer, to install:
composer require rudashi/gusapi
Supported Versions
| Version | PHP version | BIR service version | |---------|-------------|-----------------------------------| | 1.0.2 | ^8.2 | BIR1.1 (available since May 2019) | | 1.0.1 | ^8.1 | BIR1.1 (available since May 2019) | | --- | --- | BIR1 (available from 2015) |
General usage
$api = new \Rudashi\GusApi\GusApi('GUS API KEY');
$company = $api->login()->getByNip('xxx');
$api->logout();
Methods
| BIR Method | Parameter | PHP method | Description | |---------------------------|-----------------|-------------------|----------------------------------------------------------------------------------------| | Zaloguj | | login | Login with user key | | Wyloguj | | logout | Termination of session activity | | --- | | isLogged | Verification if the user is logged in | | --- | | getSessionId | Returns the session identifier | | --- | | setSessionId | Sets the session identifier | | DaneSzukajPodmioty | Krs | getByKrs | Searches the REGON database looking for a record by KRS identifier | | DaneSzukajPodmioty | Krsy | getByKrses | Searches the REGON database looking for records using several KRS identifiers | | DaneSzukajPodmioty | Nip | getByNip | Searches the REGON database looking for a record by NIP identifier | | DaneSzukajPodmioty | Nipy | getByNips | Searches the REGON database looking for records using several NIP identifiers | | DaneSzukajPodmioty | Regon | getByRegon | Searches the REGON database looking for a record by REGON identifier | | DaneSzukajPodmioty | Regony14zn | getByRegons | Searches the REGON database looking for records using several 9char REGON identifiers | | DaneSzukajPodmioty | Regony9zn | getByRegons14 | Searches the REGON database looking for records using several 14char REGON identifiers | | DanePobierzPelnyRaport | | getFullReport | Fetches data regarding an activity registered in CEIDG or a legal entity | | DanePobierzRaportZbiorczy | | --- | --- | | GetValue | StanDanych | dataStatus | Returns the status date | | GetValue | KomunikatKod | getMessageCode | Returns the message code | | GetValue | KomunikatTresc | --- | --- | | GetValue | StatusSesji | getSessionStatus | Returns the session status | | GetValue | StatusUslugi | getServiceStatus | Returns the service status | | GetValue | KomunikatUslugi | getServiceMessage | Returns the service message |
Authors
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
