scary-layer / nova-poshta
Nova poshta warehouses pre-loader
Installs: 132
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/scary-layer/nova-poshta
Requires
- php: >=8.0
- laravel/framework: >=10.49.28
This package is auto-updated.
Last update: 2025-10-24 13:22:09 UTC
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.