awd-studio / novaposhta
Powerful & Simple NovaPoshta API SDK for PHP
v2.0.0-alpha.2
2019-01-21 03:46 UTC
Requires
- php: ^7.2
- ext-curl: *
- ext-json: *
Requires (Dev)
- php-coveralls/php-coveralls: 2.1.x-dev
- phpunit/phpunit: ^7.4.0
This package is auto-updated.
Last update: 2024-10-29 05:28:49 UTC
README
Fast and easy, integrate your PHP apps with official API.
About Nova Poshta company:
Today Nova Poshta is a leader in express delivery owing to its innovation approach and hard work on efficiency improvement. By anticipating Client needs, the company constantly comes up with new products and services.
Nova Poshta’s business isn’t solely about parcels and cargoes delivery. We pride ourselves in e-commerce market development and deployment of complex technological solutions helping businesses to expand on the international scale.
Nova Poshta puts into your service:
- Over 2500 depots all over Ukraine
- Over 2500 vehicles
- 36 cutting-edge sorting stations
- Over 16 000 qualified employees
- More than 60 million shipments a year
- Over 350 cash desks carrying out money transfers
- Modern logistics complex of 4000 sq. m.
- Transparent fees and loyalty programs
- Dedicated customer service and support
- Track and Trace
Very simple usage (see more examples below):
<?php use NP\NP; $response = NP::init($key)->sendWith('Address', 'searchSettlements', [ 'StreetName' => 'Шев', 'SettlementRef' => 'e715719e-4b33-11e4-ab6d-005056801329', 'Limit' => 10, ]);
Requirements
- PHP 7+
- Composer package manager
- API token
- Guzzle or PHP_CURL libraries for sending HTTP-requests (optional - you can define custom HTTP-driver)
Install
Via Composer
composer require awd-studio/novaposhta
Uninstall
composer remove awd-studio/novaposhta
Usage:
<?php use NP\NP; $np = NP::init(['key' => 'yourApiKey', 'driver' => $yourDriver]); // Simple usage methods: $np->with('modelName', 'methodName', $data); $response = $np->send(); // Or more simple: $response = $np->sendWith('modelName', 'methodName', $data);
See details. All methods implements.