Download the PHP package mrcnpdlk/mojepanstwo-api without Composer
On this page you can find all versions of the php package mrcnpdlk/mojepanstwo-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mrcnpdlk/mojepanstwo-api
More information about mrcnpdlk/mojepanstwo-api
Files in mrcnpdlk/mojepanstwo-api
Package mojepanstwo-api
Short Description MojePanstwo API
License MIT
Informations about the package mojepanstwo-api
mojepanstwo-api
API v3 for https://mojepanstwo.pl
Api coverage
Lp | Method name | Returned type |
---|---|---|
1 | getCommune | Commune |
2 | getDistrict | District |
3 | getProvince | Province |
4 | getKrsEntityType | KrsEntityType |
5 | getKrsEntity | KrsEntity |
6 | getKrsPerson | KrsPerson |
7 | searchCommune | QueryBuilder |
8 | searchDistrict | QueryBuilder |
9 | searchProvince | QueryBuilder |
10 | searchKrsEntityType | QueryBuilder |
11 | searchKrsEntity | QueryBuilder |
12 | searchKrsPerson | QueryBuilder |
For methods returned QueryBuilder
object, you are able to use below actions to specify your own conditions:
Lp | Method name | Returned type |
---|---|---|
1 | page() | QueryBuilder |
2 | where() | QueryBuilder |
3 | whereQ() | QueryBuilder |
4 | orderBy() | QueryBuilder |
5 | limit() | QueryBuilder |
6 | get() | SearchResponse |
Basic usage
Client settings
Library supports Cache bundles based on PSR-16 standard.
For below example was used phpfastcache/phpfastcache.
phpfastcache/phpfastcache
supports a lot of endpoints, i.e. Files
, Sqlite
, Redis
and many other.
More information about using cache and configuration it you can find in this Wiki.
Library also supports logging packages based on PSR-3 standard, i.e. very popular
monolog/monolog.
Pushing Log and Cache instances. Not required, but suggested for better performance.
Getting KRS Entity
Request
Available pull flags
KrsEntity::PULL_NONE
KrsEntity::PULL_COMPANIES
- Layerfirmy
KrsEntity::PULL_DEPARTMENTS
- Layeroddzialy
KrsEntity::PULL_PARTNERS
- Layerwspolnicy
KrsEntity::PULL_PKDS
- Layerdzialalnosci
KrsEntity::PULL_SHARES
- Layeremisje_akcji
KrsEntity::PULL_PERSON_REPRESENTATION
- Layerreprezentacja
KrsEntity::PULL_PERSON_SUPERVISION
- Layernadzor
KrsEntity::PULL_PERSON_PROXY
- Layerprokurenci
KrsEntity::PULL_PERSON_FOUNDING
- LayerkomitetZalozycielski
KrsEntity::PULL_ALL
- All layers
Response
Searching KRS Entity
Request
Calling searchKrsEntity()
method returns QueryBuilder instance, additional functions as limit()
, where()
, page()
are available.
At the end call method get()
to receive SearchResponse
object.
Response
Getting KRS Person
Request
Available pull flags
KrsPerson::PULL_NONE
KrsPerson::PULL_KRS_ENTITIES
KrsPerson::PULL_ALL
Searching KRS Person
Request
Calling searchKrsPerson()
method returns QueryBuilder instance, additional functions as limit()
, where()
/whereQ()
, page()
are available.
At the end call method get()
to receive SearchResponse
object.
All versions of mojepanstwo-api with dependencies
ext-curl Version *
mrcnpdlk/psr16cache-adapter Version ~0
sunra/php-simple-html-dom-parser Version ~1