Download the PHP package quellabs/canvas-shipments-myparcel without Composer

On this page you can find all versions of the php package quellabs/canvas-shipments-myparcel. 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 canvas-shipments-myparcel

MyParcel Shipping Provider

A MyParcel shipping provider for the Canvas framework. Supports both api.myparcel.nl (NL) and api.sendmyparcel.be ( BE).

Installation

Configuration

Publish config/myparcel.php and fill in your credentials:

Important behaviours

Tracking code is not available at creation time. ShipmentResult::$trackingCode is always null after create(). MyParcel assigns the carrier barcode asynchronously. Use the webhook or call exchange() later.

Cancellation is not supported. Calling cancel() always throws ShipmentCancellationException. Parcels must be deleted manually in the MyParcel panel before carrier pickup.

Package type defaults to parcel. Set ShipmentRequest::$packageType to control the MyParcel product type per shipment:

$packageType MyParcel code Description
'parcel' 1 Standard package (default)
'mailbox' 2 Mailbox package
'letter' 3 Letter
'digital_stamp' 4 Unstamped letter

Webhooks carry only the shipment ID. The controller makes one API call per webhook event to fetch the current state. MyParcel does not sign webhook requests — restrict the endpoint by IP or use a secret path.

Delivery options require a recipient address. Pass a ShipmentAddress as the second argument to getShippingOptions(). Without it, an empty array is returned. MyParcel computes available timeframes and pickup points per postal code, so the address is mandatory for meaningful results.

Supported modules

Module Carrier Region
myparcel_postnl PostNL NL
myparcel_cheapcargo CheapCargo NL
myparcel_dhl DHL NL
myparcel_dhlforyou DHL For You NL
myparcel_dpd DPD NL
myparcel_bpost bpost BE

License

MIT


All versions of canvas-shipments-myparcel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
symfony/http-client Version ^7.0 || ^8.0
quellabs/support Version *
quellabs/contracts Version *
quellabs/canvas-shipments-contracts 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 quellabs/canvas-shipments-myparcel contains the following files

Loading the files please wait ...