bardiz12 / resi-scrapper
JNE,Anteraja,Sicepat Airwaybill Tracker package
dev-master
2021-12-23 10:51 UTC
Requires
- php: >=5.6.0
This package is auto-updated.
Last update: 2025-03-23 17:52:17 UTC
README
A package to get Indonesian Courier package tracking for PHP using curl with Zero Dependency. support : JNE, Sicepat, Anteraja
Installation
composer require bardiz12/resi-scrapper
Usage
<?php require_once __DIR__ ."/../vendor/autoload.php"; use Bardiz12\ResiScrapper\Constants; use Bardiz12\ResiScrapper\ResiTracker; $awbSicepat = 'x'; $awbAnteraja = 'x'; $awbJne = 'x'; $resiTracker = new ResiTracker(); $trackJne = $resiTracker->getTrackData(Constants::COURIER_JNE, $awbJne); $trackSicepat = $resiTracker->getTrackData(Constants::COURIER_SICEPAT, $awbSicepat); $trackAnteraja = $resiTracker->getTrackData(Constants::COURIER_ANTERAJA, $awbAnteraja); var_dump($trackJne, $trackSicepat, $trackAnteraja);