Download the PHP package omnibus/canpar without Composer

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

omnibus/canpar

Canpar for omnisense/omnibus: rates, shipments with their labels, tracking and voids - the CanShip web services (SOAP).

Install and a first call

No account for this first call: Canpar's answer is recorded (Omnibus\Testing\RecordedHttpClient answers in place of the API), so nothing leaves the process. With your own credentials, give the factory your HTTP client (or none: it makes its own) and drop the recorded one.

A real call needs a Canpar account (the credentials below). The answer is shaped after Canpar's published documentation; the package has not been run against its service yet.

Configuration

No framework needed: the package requires omnisense/omnibus and symfony/http-client. In a Symfony application, the same through the bundle's configuration:

The service is Canpar's service type: 1 Ground, 2 Select, 3 Overnight, 4 USA, 5 Select USA, 6 International. Rating asks once per service (option services picks them). Shipment options: sender_province and recipient_province (two letters), label_format (PDF, ZPL for thermal). No pickup points: Canpar delivers to the door.

Credentials: a Canpar account with CanShip web services access (ask your account manager for the sandbox login) and your shipper number.

Built from Canpar's published CanShip documentation and tested on recorded answers; not yet run against the sandbox: that needs the credentials above.

Responsibility

This package is an independent, unofficial client: it is not affiliated with, endorsed by or sponsored by Canpar Express (TFI International). It reaches their service on behalf of whoever runs it, and it does not redistribute their data beyond the short excerpts recorded as test fixtures. Its MIT licence covers this package's code only and grants no right to the service or to its data.

Whoever installs and runs this package is responsible for complying with Canpar's terms (canpar.com terms of use), for obtaining whatever they require (an account, a key, a licence or subscription, an attribution or a citation, a rate limit to respect), and for any use made of what it returns. The authors publish it free of charge, make no commercial use of it, and accept no liability for how it is used (see LICENSE).

License: MIT since 2026-10-09; earlier versions remain published under LGPL-3.0-or-later.


All versions of canpar with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
omnisense/contracts Version ^1.0
omnisense/omnibus Version ^2.0
symfony/http-client Version ^6.4|^7.0|^8.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 omnibus/canpar contains the following files

Loading the files please wait ...