smart-dato/brt-tracking

Laravel package for interfacing with the BRT VAS100 tracking SOAP webservices.
6,644
Install
composer require smart-dato/brt-tracking
Latest Version:0.0.6
PHP:^8.2|^8.5
Laravel:10 – 13
License:MIT
Last Updated:Oct 12, 2026
Links: GitHub  ·  Packagist
Maintainer: smart-dato

Laravel BRT Tracking

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

This package provides a Laravel-friendly wrapper around the BRT VAS100 tracking SOAP services. It allows you to resolve shipment identifiers based on your own references, fetch full shipment details, and retrieve legends for statuses and events. It also includes utilities for caching and patching the WSDL files to ensure that PHP's SOAP client uses secure HTTPS endpoints.

Installation

You can install the package via composer:

composer require smart-dato/brt-tracking

You can publish the config file with:

php artisan vendor:publish --tag="brt-tracking-config"
BRT_CLIENT_ID=your-client-id
BRT_LANG=en
BRT_THROTTLE_PER_MINUTE=250
BRT_LOG_CHANNEL=

The config also holds the WSDL and endpoint URLs (production by default), timeout and retry values, and the local WSDL cache settings.

Optionally you may cache the WSDL files to fix the http/https mismatch:

php artisan brt:cache-wsdl

Usage

You can resolve the BrtTrackingClient from the service container or use the facade provided by this package. All methods return simple arrays or data objects for easy consumption.

use SmartDato\BrtTracking\Facades\BrtTracking;

// Look up a shipment id by your numeric reference
$shipmentId = BrtTracking::getShipmentIdByRMN(123456789);

// Fetch detailed shipment information
$shipment = BrtTracking::trackingByShipmentId($shipmentId);

// Retrieve legends for statuses and events
$esiti = BrtTracking::getLegendaEsiti();
$eventi = BrtTracking::getLegendaEventi();

See the published configuration file for all available options.

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/fedex-sdk

FedEx REST API SDK for Laravel

6,719 0
smart-dato/inpost-sdk

A Laravel SDK for the InPost API — Shipping, Points, Tracking, Returns, and Pick...

6,050 0
smart-dato/post-it-sdk

Poste Italiane (POST_IT) shipping API SDK for Laravel — Saloon-based client with...

5,619 0
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

641,106,524 9,700
laravel/framework

The Laravel Framework.

593,882,149 34,959

Version History

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