Download the PHP package beziworld/laravel-debt-registers without Composer

On this page you can find all versions of the php package beziworld/laravel-debt-registers. 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 laravel-debt-registers

Laravel Debt Registers

tests Latest Version

Laravel client for Polish debt registers (biura informacji gospodarczej). Check a person by PESEL or a company by NIP and report unpaid debts, with one driver per register and any number of accounts:

Polska wersja dokumentacji

Which registers have a public API?

Register Public API documentation Driver
KRD (Krajowy Rejestr Długów) Yes: info.krd.pl, Programista (Chase, Nicci/Siddin, Rastin, Solvig, Amnell, Wexler), public WSDL and a free demo environment krd
BIG InfoMonitor Message schemas only (big.pl/dokumentacja/api); the endpoint, authentication and test environment are given to subscribers not included
ERIF BIG No public API documentation not included

The architecture is driver-based, so a BIG InfoMonitor or ERIF driver can be registered with extend() by anyone who has the subscriber documentation.

Why this package

Packagist has no Laravel package for KRD. The existing PHP packages are solvenfinance/krdapi (2017, Zend Framework 2, PHP 5.6/7, last release 0.0.2) and goosfraba/krd-rastin-sdk (the Rastin PESEL and ID card verification service only). This package covers the current Chase 3.3 check service and the Siddin/Nicci 3.2 submission service, works without ext-soap, returns typed results and keeps every call fakeable with Http::fake().

Installation

A free demo account is available on request from KRD (info.krd.pl, demo environment). In the demo, reports contain only the obligations added by the same account. API access in production requires an agreement with KRD.

Checking a company or a person

Consumers are checked by PESEL with the date of their authorisation (Polish law requires the consumer's consent before the disclosure):

Every check in production is billed and appears in the subject's query register. Use the demo environment for development, and never re-run a check just to read the same data: download the report again by its number.

DebtorChecked (register, connection, result, incognito) is dispatched after every successful check, which is a convenient place to keep the audit trail of disclosed information.

Several accounts

Options outside connections (timeout, retries) are shared by all connections. DebtRegister (the contract) and KrdDriver can be injected; they resolve to the default connection.

Reporting debts to KRD (Nicci 3.2)

Debts are sent as batches processed asynchronously by KRD. KRD asks for few large batches instead of many small ones.

KRD accepts an obligation only when it has been due for at least 30 days, at least 30 days passed since the payment demand (callSent), and the arrears exceed 200 PLN for a consumer or 500 PLN for a business. These rules are checked by KRD and reported per order. Without objections an obligation is sent as undisputed.

Updating and removing:

Status and processing report:

A complete Nicci document built elsewhere can be passed to submit() as a string. NicciDocument::toXml() returns the document for review or archiving.

Errors

Situation Result
Invalid login or password (SecurityFault code 1), empty Siddin ticket AuthenticationFailed
Missing permission or access denied (codes 2, 3) PermissionDenied
Data rejected by KRD (ValidationFault, SchemaValidationFault, codes 13, 14) ValidationFailed with validationErrors() per field
Unknown report number (EntityNotFoundFault, code 50) ReportNotFound
Other SOAP faults, HTTP errors, connection failures, unreadable responses ApiException
Invalid PESEL or NIP checksum InvalidIdentifier, before any request
Invalid batch data (empty batch, amounts, lengths, REGON, duplicate order ids) InvalidSubmission, before any request
Report download in incognito mode, result of an unprocessed job, Siddin with a certificate-only connection UnsupportedOperation
Missing credentials, unknown connection or driver InvalidConfiguration

ApiException (and its subclasses) expose errorCode(), faultType(), faultId() (the error id to quote to KRD support at [email protected]), httpStatus(), operation() and raw(). All exceptions extend Beziworld\DebtRegisters\Exceptions\DebtRegistersException.

Not covered

Development

Fixtures follow the examples and the WSDL/XSD published by KRD; no request leaves the test suite. The SOAP envelope, the endpoints and the fault mapping were checked against the KRD demo environment with invalid credentials only.

Author

Created and maintained by Kamil Ćwiertnia, beziworld.eu.

Need an integration? Get in touch through beziworld.eu.

Other packages by the author

laravel-company-data · laravel-krs · laravel-polish-validation · laravel-ksef

License

MIT. See LICENSE.md. This package is not affiliated with or endorsed by Krajowy Rejestr Długów Biuro Informacji Gospodarczej S.A., BIG InfoMonitor S.A. or ERIF Biuro Informacji Gospodarczej S.A. Use of the KRD services requires an agreement with KRD and compliance with the act on disclosure of economic information.


All versions of laravel-debt-registers with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-dom Version *
ext-json Version *
ext-libxml Version *
guzzlehttp/guzzle Version ^7.8
illuminate/contracts Version ^12.0|^13.0
illuminate/http Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.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 beziworld/laravel-debt-registers contains the following files

Loading the files please wait ...