smart-dato/afs-logistic-sdk

AFS Logistic shipment tracking SDK for Laravel
6,639
Install
composer require smart-dato/afs-logistic-sdk
Latest Version:0.0.6
PHP:^8.2|^8.3|^8.4|^8.5
Laravel:10 – 13
License:MIT
Last Updated:Oct 14, 2026
Links: GitHub  ·  Packagist
Maintainer: smart-dato

AFS Logistic SDK

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

A Laravel package for looking up shipment tracking through the AFS Logistic public data service API.

Requirements

  • PHP 8.2+
  • Laravel 10 – 13

Installation

composer require smart-dato/afs-logistic-sdk

Publish the config file:

php artisan vendor:publish --tag="afs-logistic-sdk-config"

Configuration

AFS_LOGISTIC_CLIENT_ID=your-client-id
AFS_LOGISTIC_ORGUNIT_ID=your-orgunit-id
AFS_LOGISTIC_AUTH_TOKEN=your-auth-token

Requests go to {AFS_LOGISTIC_URI}/afs/dataservice/publicapi/v1/shipment/retrieve, with AFS_LOGISTIC_URI defaulting to https://shippingnet01.ondot.at. Set AFS_LOGISTIC_TRACKING to override the full endpoint URL.

Usage

use SmartDato\AfsLogistic\Facades\AfsLogistic;

$shipment = AfsLogistic::tracking('your-shipment-number');

Or pass the credentials explicitly; any you leave out fall back to the config:

use SmartDato\AfsLogistic\AfsLogistic;

$afs = new AfsLogistic(
    clientId: 'your-client-id',
    orgunitId: 'your-orgunit-id',
    authToken: 'your-auth-token',
);

$shipment = $afs->tracking('your-shipment-number');

tracking() looks the shipment up by its matching number and returns the decoded JSON response. It requests the shipment's codes, status, number and pickup/delivery carrier IDs, plus each collo's codes, status, number, tracking number and tracking link.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

smart-dato/duty-refunds-landmark

Duty Refunds Landmark API SDK for Laravel

6,816 0
smart-dato/brt

BRT Laravel sdk

6,734 0
smart-dato/sf-express-sdk

SF Express international open API SDK for Laravel

6,692 0
smart-dato/correos-sdk

Correos SOAP pre-registration and tracking SDK for Laravel

6,699 0
smart-dato/eushipments

EuShipments Laravel SDK

6,142 0

Version History

Version Released PHP Laravel License
0.0.6 ^8.2|^8.3|^8.4|^8.5 ^10.0||^11.0||^12.0||^13.0 MIT
0.0.5 ^8.2|^8.3|^8.4|^8.5 ^10.0||^11.0||^12.0||^13.0 MIT
0.0.4 ^8.2|^8.3|^8.4 ^10.0||^11.0||^12.0 MIT
0.0.3 ^8.2|^8.3|^8.4 ^10.0||^11.0||^12.0 MIT