Download the PHP package debuss-a/lapostesuivi without Composer

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

Logo

La Poste Suivi API

The best way to track your La Poste, Colissimo and Chronopost packages.


Example


## What does it do ? This framework-agnostic package is an implementation of the tracking API version 2 from La Poste. This API allows you to track your shipments in real time. "Suivi v2" allows you to harmonize the delivery status of tracked parcels, Colissimo parcels and Chronopost shipments. More information on the [developer page](https://developer.laposte.fr/products/suivi/2). ## Installation It is recommended to use [composer](https://getcomposer.org/) to install the package : PHP 5.6 or newer is required. ## Usage First of all you need an X-Okapi-Key to use the API. Subscribe to a new Tracking API to get one **(it is free)**, [here](https://developer.laposte.fr/products/suivi/2), then you can instantiate the app : You need to create an object `Request` for every tracking number : You can pass 2 more parameters to define the `lang` and `ip_address` you wish to set up. By default, `lang` is set to `fr_FR` and `ip_address` to `$_SERVER['REMOTE_ADDR']` (or `123.123.123.123` if `REMOTE_ADDR` is not defined). To track only 1 parcel, you can use the `LaPoste\Suivi\App::call` method : To track more than 1 parcel, use the `LaPoste\Suivi\App::callMultiple` method : `LaPoste\Suivi\App::call` and `LaPoste\Suivi\App::callMultiple` return instances of [`LaPoste\Suivi\Response`](https://github.com/debuss/lapostesuivi/blob/master/src/Suivi/Response.php). Note: in the case of `LaPoste\Suivi\App::callMultiple`, this package uses `curl_multi*` functions therefore all tracking numbers are tracked asynchronously. This means the tracking of multiple packages is done at the same time instead of one by one, and it is much **MUCH!** faster. ## Decorator The package is included with an `AppV1Decorator` decorator class that you can use to format the output of the v2 API to the v1 API. Result of `call` : Result of `callMultiple` : Useful if you do not want to refactor all your code to the different v2 API ! ## License The package is licensed under the MIT license. See [License File](https://github.com/debuss/lapostesuivi/blob/master/LICENSE.md) for more information.

All versions of lapostesuivi with dependencies

PHP Build Version
Package Version
Requires ext-curl Version *
ext-json Version *
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 debuss-a/lapostesuivi contains the following files

Loading the files please wait ....