Download the PHP package fiskaly/fiskaly-sdk-php without Composer
On this page you can find all versions of the php package fiskaly/fiskaly-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fiskaly/fiskaly-sdk-php
More information about fiskaly/fiskaly-sdk-php
Files in fiskaly/fiskaly-sdk-php
Package fiskaly-sdk-php
Short Description fiskaly Cloud-TSE SDK for PHP
License MIT
Homepage https://github.com/fiskaly/fiskaly-sdk-php
Informations about the package fiskaly-sdk-php
fiskaly SDK for PHP
The fiskaly SDK includes an HTTP client that is neededKassensicherungsverordnung).
Supported Versions
- PHP 7.1+
Features
- [X] Automatic authentication handling (fetch/refresh JWT and re-authenticate upon 401 errors).
- [X] Automatic retries on failures (server errors or network timeouts/issues).
- [ ] Automatic JSON parsing and serialization of request and response bodies.
- [X] Future: [1] compliance regarding BSI CC-PP-0105-2019 which mandates a locally executed SMA component for creating signed log messages.
- [ ] Future: Automatic offline-handling (collection and documentation according to Anwendungserlass zu § 146a AO)
Integration
Composer
The PHP SDK is available for a download via Composer.
Packagist - Package Repository.
Simply execute this command from the shell in your project directory:
Or you can manually add the package to your composer.json
file:
then run
Finally, be sure to include the autoloader in your code:
Service
Additionally, to the SDK, you'll also need the fiskaly service. Follow these steps to integrate it into your project:
- Go to https://developer.fiskaly.com/downloads#service
- Download the appropriate service build for your platform
- Start the service
Usage
Demo
Another way to create FiskalyClient object is using context
string.
You can get it via getContext
method and save it in memory via $_SESSION variable
or persistent in cache or database.
Client Configuration
The SDK is built on the fiskaly Client which can be configured through the SDK.
A reason why you would do this, is to enable the debug mode.
Enabling the debug mode
The following code snippet demonstrates how to enable the debug mode in the client.
`