Download the PHP package quitenoisemaker/shipping-tracker without Composer

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

ShippingTracker

CI Pipeline

A Laravel package to simplify shipment tracking and webhook handling for Africa and Europe logistics. Supports providers like Cargoplug, Sendbox, and DHL, with an open-source spirit welcoming contributions.

Features

Requirements

Installation

  1. Install via Composer:

  2. Publish the configuration and migrations:

  3. Run migrations to create the shipping_webhooks and jobs tables:

  4. Add Environment Variables

    Update your .env file:

Configuration

The config/shipping-tracker.php file allows you to:

Note: Providers like (Sendbox and Cargoplug) do not use tracking number prefixes or webhook signatures. The package caches successful provider matches for known tracking numbers to optimize tracking. New tracking numbers trigger a full provider search, and explicit provider selection via use() is respected without affecting the cache.

Example:

Usage

Tracking a Shipment

Track a single shipment. If no provider is specified, the package tries all configured providers, caching the successful provider for the tracking number. New tracking numbers trigger a full provider search.

Explicitly specify a provider to bypass automatic resolution and caching:

The response is a strict TrackingResult object, not an array.

Tracking Multiple Shipments

Track multiple shipments in one call (client-side, as providers do not support batch API calls):

The response is an array keyed by tracking number, with results or error messages.

CLI Commands (New in v2.0)

Track a shipment directly from your terminal:

Check API Health: Validate your configuration and API keys for all providers:

Testing with Fakes

You can use the FakeShippingProvider to test your application without making real API calls.

Tracking History

Shipment updates from webhooks are stored in the shipments table, including tracking_number, provider, status, location, estimated_delivery, and history.

Retrieve a shipment’s history:

Or use the convenience method:

Handling Webhooks

Webhooks are validated for required fields. *

Register the webhook URL (e.g., https://your-app.com/api/shipping/webhooks/sendbox) with your provider.

Status Normalization

ShippingTracker normalizes provider statuses using StatusMapper in both webhooks and API tracking (track method). It handles case and space variations (e.g., Cargoplug's "In Transit" → in_transit, "PAID" → paid). Examples:

Extending the Package

Create a custom provider:

  1. Create a class implementing Quitenoisemaker\ShippingTracker\Contracts\ShippingProvider:

  2. Register it in config/shipping-tracker.php:

  3. Use it:

Troubleshooting

Testing

Run tests with:

Changelog

v2.0.0 (Latest)

v1.2.0

v1.0.0

Contributing

We love open source! Join us by contributing at github.com/quitenoisemaker/shipping-tracker. See CONTRIBUTING.md for how to submit issues or pull requests.

License

MIT License. See LICENSE for details.


All versions of shipping-tracker with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0|^8.1|^8.2|^8.3
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
illuminate/http Version ^9.0|^10.0|^11.0|^12.0
illuminate/database Version ^9.0|^10.0|^11.0|^12.0
illuminate/cache Version ^9.0|^10.0|^11.0|^12.0
illuminate/events Version ^9.0|^10.0|^11.0|^12.0
illuminate/log Version ^9.0|^10.0|^11.0|^12.0
guzzlehttp/guzzle Version ^7.9
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 quitenoisemaker/shipping-tracker contains the following files

Loading the files please wait ...