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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mojepanstwo-api

Latest Stable Version Latest Unstable Version Total Downloads Monthly Downloads License

Scrutinizer Code Quality Build Status Code Coverage

Maintainability

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

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

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

PHP Build Version
Package Version
Requires php Version >=7.0
ext-curl Version *
mrcnpdlk/psr16cache-adapter Version ~0
sunra/php-simple-html-dom-parser Version ~1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mrcnpdlk/mojepanstwo-api contains the following files

Loading the files please wait ....