scary-layer/nova-poshta
Composer 安装命令:
composer require scary-layer/nova-poshta
包简介
Nova poshta warehouses pre-loader
README 文档
README
This package provides a command for pre-loading Nova Poshta warehouses and class for working with it.
Installation
- Install package by
composer require scary-layer/nova-poshta. - Add command
php artisan nova-poshta:loadto crontab.
Documentation of Nova Poshta API recommends to do it daily.
If you just started development, run this command single time to warehouses to be loaded.
Using
Use ScaryLayer\NovaPoshta\NovaPoshta class to work with loaded data.
Currently it contain methods:
getCities- to get array of available cities like [$cityRef => $cityDescription]getWarehouses- to get array of available warehouses like [$warehouseRef => $warehouseDescription]
Or you may use ScaryLayer\NovaPoshta\Repositories\City and ScaryLayer\NovaPoshta\Repositories\Warehouse to more advanced work with stored data.
统计信息
- 总下载量: 133
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-09-21