Download the PHP package scratchy2/billomat without Composer

On this page you can find all versions of the php package scratchy2/billomat. 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 billomat

A PHP Billomat API Client

Latest Stable Version License

Introduction

This is a Billomat PHP client for interacting with the REST Billomat API.

Extend of this client

All methods on the following assets are supported:

Dependencies

Integration with frameworks

If you want to use this client with Symfony 2, there is a ready-to-use bundle:

Installation via composer

How to use this

Instantiate the client:

If you have a registered app for billomat’s API (which is highly recommended due to higher rate limits) instantiate the client like this:

The client will find the correct endpoint automatically based on your id.

All methods are accessible from that client object:

Calling methods

All method names are based on the Billomat API URLs and follow the CRUD naming schema whenever possible.

All parameter names are exactly mapped. Therefore, you can refer to the official API documentation. Deep links to specific documentation sections are given in the complete method reference list below.

Here is the user update method as an example for the client asset:

Return values

All delete* methods return nothing.

The methods get*Pdf (when called with 'format' => 'pdf') and getTemplatePreview return a guzzle response. You can easily extract the file content:

All the other methods return array values.

Exception handling

This client creates exceptions from Billomat errors based on the HTTP status code and filled with the error message provided by the Billomat API. All exceptions implement the Phobetor\Billomat\Exception\ExceptionInterface interface, so you can catch this to handle everything. You can find all exceptions in the Phobetor\Billomat\Exception folder.

Usage example:

Automatic rate limit handling

If this client is used in asynchronous processes or CLI commands you can activate automatic waiting for rate limit reset. In that mode all method calls that would otherwise throw a \Phobetor\Billomat\Exception\TooManyRequestsException will wait for the rate limit reset and retry automatically. You should not use this in synchronous request (e. g. a website request) because all method calls in that mode can last very long and most likely longer than your server’s request timeout. There are two ways to do this.

At construction:

After construction:

Complete method reference

CLIENT RELATED METHODS doc:

CLIENT PROPERTY VALUE RELATED METHODS doc:

ARTICLE RELATED METHODS doc:

ARTICLE PROPERTY VALUE RELATED METHODS doc:

INVOICE RELATED METHODS doc:

INVOICE ITEM RELATED METHODS doc:

INVOICE PAYMENT RELATED METHODS doc:

INVOICE TAG RELATED METHODS doc:

CREDIT NOTE RELATED METHODS doc:

CREDIT NOTE ITEM RELATED METHODS doc:

CREDIT NOTE PAYMENT RELATED METHODS doc:

TEMPLATE RELATED METHODS doc:

ARTICLE PROPERTY RELATED METHODS doc:

CLIENT PROPERTY RELATED METHODS doc:

USER PROPERTY RELATED METHODS doc:

TAX RELATED METHODS doc:

COUNTRY TAX RELATED METHODS doc:

REMINDER TEXT RELATED METHODS doc:

EMAIL TEMPLATE RELATED METHODS doc:

USER PROPERTY VALUE RELATED METHODS doc:

API glitches handled by this client internally

The Billomat API provides two data formats, xml and json. The json format is used here. Due to an xml to json conversion in the Billomat API lists have a data inconsistency in the json responses.

If there is ony one element in a list the API returns something like this:

If there are more elements in a list the API returns something like this:

The type of $result['clients']['client'] changes from an associative array to a numeric array of associative arrays.

This issue is addressed by this client internally. You can be sure that lists are numeric arrays (like in the lower example) no matter how many elements are returned.

Advanced usage

This client is built on top of Guzzle, so you can take advantage of all its features. Please refer to the Guzzle documentation to learn more …


All versions of billomat with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
guzzle/guzzle Version ~3.5
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 scratchy2/billomat contains the following files

Loading the files please wait ....