Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ospnko/nova-poshta
Nova poshta warehouses pre-loader
https://github.com/ospnko/nova-poshta
laravel laravel-framework laravel-package nova-poshta nova-poshta-api
Last synced: 28 days ago
JSON representation
Nova poshta warehouses pre-loader
- Host: GitHub
- URL: https://github.com/ospnko/nova-poshta
- Owner: ospnko
- License: mit
- Created: 2020-09-21T08:01:57.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-06T12:05:55.000Z (over 3 years ago)
- Last Synced: 2024-09-28T20:20:47.856Z (about 1 month ago)
- Topics: laravel, laravel-framework, laravel-package, nova-poshta, nova-poshta-api
- Language: PHP
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This package provides a command for pre-loading Nova Poshta warehouses and class for working with it.
## Installation
1. Install package by `composer require scary-layer/nova-poshta`.
1. Add command `php artisan nova-poshta:load` to 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.