Download the PHP package thank-song/track123 without Composer

On this page you can find all versions of the php package thank-song/track123. 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 track123

Track123 OpenAPI Laravel Package

thank-song/track123 是一个用于接入 Track123 快递轨迹 OpenAPI 的 Laravel 工具包,支持物流单号注册、查询、轨迹同步及队列处理,适用于中大型 Laravel 项目。


⚙️ 环境要求


📦 安装

通过 Composer 安装:


⚙️ 配置

在项目 .env 文件中添加以下配置:

⚠️ TRACK123_API_TOKEN 为必填项,否则接口请求将失败。


🗄 数据库迁移

本包内置所需的数据表迁移文件,直接执行:


🧠 核心概念

模型 说明
Courier 快递商信息(由 Track123 提供)
Tracking 物流单号主体
TrackingDetail 轨迹节点明细
TrackingExtraInfo 额外轨迹信息
LocalLogistic 本地物流补充信息

🚀 使用说明

1️⃣ 获取 Courier(快递商)列表

该命令将:


2️⃣ 注册物流单号(Tracking)

2.1 使用工厂静态方法注册(同步)


2.2 使用队列 Job 注册(推荐生产环境)


3️⃣ 查询物流轨迹

3.1 使用工厂静态方法查询


3.2 使用 Artisan 命令查询(并同步模型数据)

该命令将:


🧰 Artisan 命令汇总

命令 说明
track123:get-couriers 同步快递商列表
track123:query {tracking_no} 查询并更新物流轨迹

4️⃣ 修改快递商信息


设置webhook

your-domin.com/api/track123/webhook

❓ 常见问题

Q:数据是 UTC 还是本地时间?

Q:是否支持队列?


📄 License

MIT License


All versions of track123 with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
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 thank-song/track123 contains the following files

Loading the files please wait ...