定制 smart-dato/brt-tracking 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

smart-dato/brt-tracking

最新稳定版本:0.0.4

Composer 安装命令:

composer require smart-dato/brt-tracking

包简介

Laravel package for interfacing with the BRT VAS100 tracking SOAP webservices.

README 文档

README

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"

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

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.

Contributing

Please see CONTRIBUTING for details.

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.

统计信息

  • 总下载量: 343
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-12