Download the PHP package icontact/booxtreamclient without Composer

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

BooXtreamClient

A client class in PHP for use with the BooXtream webservice.

Installing via Composer

BooXtreamClient is available in Packagist, just add it to your composer.json

or

Alternatively you can just download the package and run to get the requirements.

The only requirements at the moment are PHP 7.2.5 and up and Guzzle.

If you do not wish to use Composer you will need to fulfill the dependencies on your own.

Usage

You will need:

The type parameter can be either 'epub', 'mobi' or 'xml'. In the first two cases a file will be returned by the service, in the case of 'xml' you will receive one or two downloadlinks, depending on your settings (aka delivery platform).

We're now going to send the request.

A request with a stored file is slightly different. Instead of adding an epubfile you just need to provide the name of the file (with or without .epub extension):

Options

The available options are as follows. Refer to the API Documentation for details:

required:

additionaly required if using xml (aka delivery platform):

optional:

optional if using xml (aka delivery platform):

custom ex libris

It is also possible to set a custom ex libris file according to the specifications in the API Documentation.

Response

The BooXtreamClient returns an object of the type of GuzzleHttp\Psr7\Response

The response always contains a statuscode (). If the request was successful this will be 200. Any other status code is an error and will throw an Exception of the type of GuzzleHttp\Exception\ClientException. You can retrieve a Response object as follows:

Check the HTTP Reason () for more information.

Epub/Mobi

If you requested an epub or mobi file this can be accessed by reading the body (). The body is a stream, refer to the PHP Documentation for more information on how to access it. Furthermore you can access the file's content-type with .

XML or error

If you requested xml (aka delivery platform) or if an error occurred more information can be found by accessing the body (). The body is a stream, refer to the PHP Documentation for more information on how to access it.

The XML looks like this:


All versions of booxtreamclient with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.5
guzzlehttp/guzzle Version ^7.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 icontact/booxtreamclient contains the following files

Loading the files please wait ....