Laravel package for interfacing with the BRT VAS100 tracking SOAP webservices.
smart-dato/brt-tracking is a Laravel package for laravel package for interfacing with the brt vas100 tracking soap webservices..
It currently has 0 GitHub stars and 1.806 downloads on Packagist (latest version 0.0.5).
Install it with composer require smart-dato/brt-tracking.
Discover more Laravel packages by smart-dato
or browse all Laravel packages to compare alternatives.
Last updated
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.
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"
This is the contents of the published config file:
return [
];
Optionally you may cache the WSDL files to fix the http/https mismatch:
php artisan brt:cache-wsdl
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.
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.