Download the PHP package annajeanine/instabox-php-client without Composer

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

Instabox API PHP Client

Unofficial PHP API Client for the Instabox API. More information about Instabox can be found on https://instabox.io/.

Full documentation about the Instabox API can be found on https://www.instadocs.se. Contact your account manager for credentials.

Installation

The client can be easily installed through composer:

Connection

Initialize the Connection class with your Client ID and Client Secret. Optionally for development purposes, set the Sandbox variable to true.

The connection is required for the Instabox interface which handles which models can be initialized.

Create an order instance

To create an order, use the Instabox class. Initialize an order through here.

Set all required properties of the order. For the required properties, consult the API documentation.

The order model has nested properties, such as the Recipient and Sender. Initialize these and set these to the corresponding property of the Order model.

Create order through API

To create the order through the API, you have to save the Order model.

Note; There are a couple of exceptions which could be thrown. Working on improving these once response examples become available.

Generate a label

Instabox provides support to create a label through their API. But, as stated in their documentation

Please avoid to use this if you can create labels on your own. This function is designed for really small merchants. Note that an order needs to be created first and then the label can be fetched. So it can take a few minutes before the label is available.

Therefore, this client provides generating a label through the usage of dompdf. Therefore, there is no need to wait and a label can be generated directly after making the order. To generate a label for a order use:

Example

A full example of the implementation can be found here.

Credits

The setup of the API is inspired by the set-up of Picqer PHP clients:

To do's


All versions of instabox-php-client with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
guzzlehttp/guzzle Version ^7.4
picqer/php-barcode-generator Version ^2.2
dompdf/dompdf Version ^1.2
twig/twig Version ^3.0
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 annajeanine/instabox-php-client contains the following files

Loading the files please wait ....