Download the PHP package mrcnpdlk/teryt-api without Composer

On this page you can find all versions of the php package mrcnpdlk/teryt-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 teryt-api

Latest Stable Version Latest Unstable Version Total Downloads Monthly Downloads License

Scrutinizer Code Quality Build Status Code Coverage

Code Climate Issue Count

Dependency Status

TERYT WS1 API - Polish address database

Installation

Install the latest version with composer

Basic usage

Cache

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.

Log

Library also supports logging packages based on PSR-3 standard, i.e. very popular monolog/monolog.

Teryt Authentication

Service TERYT WS1 shares API based on SOAP Protocol. More information about service you can find on this site There are two ways to connect to the server:

First of all we need configure connection calling setTerytConfig() method and optionally set cache and log instances

After that we able to call auxiliary static methods defined in NativeApi class, i.e:

Defined methods (\mrcnpdlk\Teryt\NativeApi)

Almost all methods from official documentation have been mapped and defined.

Full list below \mrcnpdlk\Teryt\NativeApi:

General

Method Status Description
CzyZalogowany() :ok_hand:
PobierzDateAktualnegoKatTerc() :ok_hand:
PobierzDateAktualnegoKatNTS() :ok_hand:
PobierzDateAktualnegoKatSimc() :ok_hand:
PobierzDateAktualnegoKatUlic() :ok_hand:

Catalog TERC

Method Status Description
PobierzListeWojewodztw() :ok_hand:
PobierzListePowiatow() :ok_hand:
PobierzListeGmin() :ok_hand:
PobierzGminyiPowDlaWoj() :ok_hand:

Catalog NTS

Method Status Description
PobierzListeRegionow() :ok_hand:
PobierzListeWojewodztwWRegionie() :ok_hand:
PobierzListePodregionow() :ok_hand:
PobierzListePowiatowWPodregionie() :ok_hand:
PobierzListeGminPowiecie() :ok_hand:

Catalog ULIC

Method Status Description
PobierzListeUlicDlaMiejscowosci() :ok_hand:

Catalog SIMC

Method Status Description
PobierzListeMiejscowosciWGminie() :ok_hand:
PobierzListeMiejscowosciWRodzajuGminy() :ok_hand:

Dictionary

Method Status Description
PobierzSlownikRodzajowJednostek() :ok_hand:
PobierzSlownikRodzajowSIMC() :ok_hand:
PobierzSlownikCechULIC() :ok_hand:

Catalog

Method Status Description
PobierzKatalogTERCAdr() :ok_hand:
PobierzKatalogTERC() :ok_hand:
PobierzKatalogNTS() :ok_hand:
PobierzKatalogSIMCAdr() :ok_hand:
PobierzKatalogSIMC() :ok_hand:
PobierzKatalogSIMCStat() :ok_hand:
PobierzKatalogULIC() :ok_hand:
PobierzKatalogULICAdr() :ok_hand:
PobierzKatalogULICBezDzielnic() :ok_hand:
PobierzKatalogWMRODZ() :ok_hand:

Changes

Method Status Description
PobierzZmianyTercUrzedowy() :ok_hand:
PobierzZmianyTercAdresowy() :ok_hand:
PobierzZmianyNTS() :ok_hand:
PobierzZmianySimcUrzedowy() :ok_hand:
PobierzZmianySimcAdresowy() :ok_hand:
PobierzZmianySimcStatystyczny() :ok_hand:
PobierzZmianyUlicUrzedowy() :ok_hand:
PobierzZmianyUlicAdresowy() :ok_hand:

Verification

Method Status Description
WeryfikujAdresDlaMiejscowosci() :ok_hand:
WeryfikujAdresDlaMiejscowosciAdresowy() :ok_hand:
WeryfikujAdresWmiejscowosci() :ok_hand:
WeryfikujAdresWmiejscowosciAdresowy() :ok_hand:
WeryfikujAdresDlaUlic() :ok_hand:
WeryfikujAdresDlaUlicAdresowy() :ok_hand:
WeryfikujNazwaAdresUlic() :warning: empty response
WeryfikujNazwaAdresUlicAdresowy() :ok_hand:

Search

Method Status Description
WyszukajJPT() :warning: empty response
WyszukajMiejscowosc() :ok_hand:
WyszukajMiejscowoscWJPT() :ok_hand:
WyszukajUlice() :ok_hand:
WyszukajJednostkeWRejestrze() :ok_hand:
WyszukajMiejscowoscWRejestrze() :ok_hand:
WyszukajUliceWRejestrze() :ok_hand:

Defined methods (\mrcnpdlk\Teryt\Api)

Method Status Description
getCity() :ok_hand:

All versions of teryt-api with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
ext-soap Version *
ext-dom Version *
mrcnpdlk/lib-exception Version ^0
mrcnpdlk/lib-configuration Version ^0
robrichards/wse-php Version ^2
mrcnpdlk/psr16cache-adapter Version ^0
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/teryt-api contains the following files

Loading the files please wait ....