PHP code example of dominservice / ceidg_data_warehouse
1. Go to this page and download the library: Download dominservice/ceidg_data_warehouse library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dominservice / ceidg_data_warehouse example snippets
use Dominservice\CeidgDataWarehouse\Ceidg;
$ceidgApi = new Ceidg('[your_token]');
/** criteria make by array or strung key */
$ceidgApi->setCriteria($criteria, $value = null)
/** or shortly */
$ceidgApi->setDateFrom('YYY-MM-DD');
$ceidgApi->setDateTo('YYY-MM-DD');
$ceidgApi->setNIP('0000000000');
$ceidgApi->setNIP_SC('0000000000');
$ceidgApi->setREGON('000000000');
$ceidgApi->setREGON_SC('000000000');
$ceidgApi->setFirstname('Marian');
$ceidgApi->setLastname('Paździch');
$ceidgApi->setName('Paźdzochmania S.A.');
$ceidgApi->setStreet('Ćwiartki');
$ceidgApi->setBuilding('4');
$ceidgApi->setFlat('5');
$ceidgApi->setCity('Wrocław');
$ceidgApi->setVoivodship('Dolnośląskie');
$ceidgApi->setDistrict('Wrocławski');
$ceidgApi->setCommune('Wrocław');
$ceidgApi->setPostcode('00-000');
$ceidgApi->setPKD(['[pkd_list_in_array]']);
$ceidgApi->setStatus($status);
$ceidgApi->getCompanies($getAll = false, $getFullCompanyData = false)
$ceidgApi->clearCriteria();