baru / correios
一个从巴西邮政跟踪页面解析中生成API的库。
1.0.1
2018-09-19 13:02 UTC
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: 5.2.*
This package is auto-updated.
Last update: 2024-09-20 03:10:23 UTC
README
从巴西邮政跟踪页面解析中构建的API。
用法
$Correios = new \Baru\Correios\RastreioParser();
$Correios->setCode('RE999999999BR');
//Último evento
$Evento = $Correios->getEventLast();
//Lista todos eventos
$Eventos = $Correios->getEventsList();
事件
标签 $evento->getLabel();
已寄出的对象
位置 $evento->getLocation();
戈亚尼亚 / GO
日期 $evento->getDate();
12/12/2012
时间 $evento->getHour();
12:12
描述 $evento->getDescription();
从圣保罗州的SUMARE / SP的配送单元到SUMARE / SP的邮政局