Download the PHP package 4port/ocean-tracking without Composer

On this page you can find all versions of the php package 4port/ocean-tracking. 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 ocean-tracking

Ocean Tracking Laravel Package

Ocean Tracking 是一个轻量级的 Laravel 扩展包,用于集成外部 API 并跟踪国际海运物流状态。适用于需要追踪提单号、箱号、多段运输信息的跨境业务系统。

📦 安装 Installation

适配 Laravel 8.x 及以上版本

推荐使用本地路径方式安装:

⚙️ 配置 Configuration

发布配置文件到主项目:

config/ocean-tracking.php 中配置:

🧬 数据库迁移 Migration

执行包内迁移文件:

如需发布迁移文件自行修改:

🚀 使用方式 Usage

所有请求类均提供 fetch() 方法作为统一入口,内部完成参数校验、请求发送及响应解析处理。

📝 示例一:注册追踪信息

该示例演示如何注册一个新的追踪信息,向外部接口订阅物流状态更新,并将返回的数据保存到本地数据库。

📦 示例二:获取追踪信息

该示例展示如何根据订阅 ID 拉取最新的追踪信息,并同步更新本地数据库中的相关记录。

🔁 示例三:自动同步追踪数据(Webhook)

你可以创建一个 webhook 接口用于接收来自平台的箱动态推送,并自动保存更新:

平台推送示例:

将自动更新主表、航程、箱信息及状态节点,无需额外处理。

该示例说明如何通过 webhook 接收平台主动推送的物流状态变更,实现自动同步和持久化,极大简化数据维护工作。

📡 API 对接 API Integration

本包默认支持以下功能:

接口文档地址:

查看接口文档

📚 License

MIT © 2024 Andy / 4portun


All versions of ocean-tracking 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 4port/ocean-tracking contains the following files

Loading the files please wait ...