pisystems/fakturownia

Library for set/get invoices into Fakturownia.pl

2.0.0 2024-10-13 17:27 UTC

This package is auto-updated.

Last update: 2025-04-13 22:46:58 UTC


README

Library for all methods available in Fakturownia API.

Latest stable version PHP version License

Polish version wersja polska

Installation

Install via Composer:

composer require pisystems/fakturownia

Install via Git over SSH:

git clone git@github.com:kamilus67/fakturownia.git

Install via Git over HTTPS:

git clone https://github.com/kamilus67/fakturownia.git

Configuration

All you need to do is set the API token using $this-> (examples below). The API token can be generated in the Fakturownia settings.

$this->setToken('myowntoken');

Logs

The library uses the logging system to save all confirmations and notifications sent by the Invoice server, outgoing requests and exceptions. Make sure that the tmp/logs directory is writable and add a rule to Apache .htaccess or NGINX to block browser access to this area.

Logging is enabled by default, but you can disable this feature:

Logger::disableLogging();

You can also set your own logging path by this command:

Logger::setLogPath('/my/own/path/Logs/');

You can also set you own Logger by this command it has to be compatible with Psr\Log\LoggerInterface:

Logger::setLogger(new CustomLogger());

The logs file names is generated automatically.

License

This library is released under the MIT License