richbarrett/parcelforce-tracking-scraper
Composer 安装命令:
composer require richbarrett/parcelforce-tracking-scraper
包简介
Scrapes Parcelforce tracking events from their website because they do not provide an official tracking API
README 文档
README
This scrapes Parcelforce tracking events from their website because they do not provide an official tracking API.
Installation
composer require richbarrett/parcelforce-tracking-scraper
Usage
include_once('vendor/autoload.php'); try { $trackingNumber = 'AB1234567'; $scraper = new \richbarrett\ParcelforceTrackingScraper\ParcelforceTrackingScraper($trackingNumber); $events = $scraper->getEvents(); print_r($events); } catch(Exception $e) { die('Error: '.$e->getMessage()); }
Health Warning
Obviously Parcelforce could change their tracking webpage at any time resulting in this breaking, so bear that in mind if you use it in your application.
统计信息
- 总下载量: 39
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-12-21