The SDK is licensed under the MIT License. Feel free to contribute!
The API documentation provides all information about the available endpoints.
The SDK requires a PHP version of 7.1 or higher and ext-xml. The recommended way to install the SDK is through Composer.
composer require fastbill/fastbill-php-sdkYou can find for every implemented api action an example file in the examples directory.
The development environment is based on DDEV. The Makefile wraps the most common commands (run make help for the full list).
make ddev-up # start the ddev project (ddev start)
make ddev-install # install the composer dependencies
make ddev-unit # run phpunit
make ddev-cs # fix the code style with php-cs-fixer
make ddev-phpstan # run phpstan (level 5)
make ddev-quality # run cs fixer, phpstan and phpunit
make ddev-coverage # run phpunit with html coverage (temporarily enables xdebug)
make ddev-ssh # open a shell in the web container
make ddev-down # stop the ddev project