tdev-agency / nova-poshta-sdk
Laravel package for Nova Poshta API v 2.0 (json only)
1.0.6
2022-07-15 08:50 UTC
Requires
- php: ^7.2|^8
- ext-curl: *
- ext-json: *
- guzzlehttp/guzzle: ^7
- illuminate/collections: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.6
- phpstan/phpstan: ^1.7
- phpunit/phpunit: *
- squizlabs/php_codesniffer: ^3.6
README
It provides json format only
It is adaptation of the Nova Poshta API for Laravel
Installation
composer require tdev-agency/nova-poshta-sdk
Examples
Getting wirehouses by CityRef
\TDevAgency\NovaPoshtaSdk\Facades\NovaPoshta::addressGeneralModel()->getWarehouses( ['CityRef' => 'city_ref'], AddressGeneral::CATEGORY_BRANCH );
Search city by name
$collection = \TDevAgency\NovaPoshtaSdk\Facades\NovaPoshta::addressModel()->getCities(['FindByString' => $request->get('q')]);
Adding new features
If you need some features please write me to contact@tdev.agency or create an issue
Contribution guidelines
Support follows PSR-12 PHP coding standards, and semantic versioning.
Please report any issue you find in the issues page. Pull requests are welcome.