2017 © Pedro Peláez
 

library nova-poshta-api

A simple library for working with API 2.0 of Nova Poshta

image

riddman/nova-poshta-api

A simple library for working with API 2.0 of Nova Poshta

  • Monday, January 29, 2018
  • by riddman
  • Repository
  • 0 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

NovaPoshtaAPI

A simple library for working with API 2.0 of Nova Poshta (https://devcenter.novaposhta.ua/start), (*1)

Requirements: - PHP 5.6 or higher, (*2)

Installation

Step 1

Run the following command, (*3)

composer require riddman/nova-poshta-api

Usage

Example, (*4)

<?php

    use Riddman\NovaPoshtaApi\NovaPoshta;

    /* Some of your code*/

    $apiKey = 'your api key';

    $citiesList = NovaPoshta::getCities($apiKey);
    $departmentsList = NovaPoshta::getDepartments($apiKey);

// Get departments with pagination
$itemsPerPage = 2;
$pageNumber = 1;
$departmentsList = NovaPoshta::getDepartments($apiKey, $itemsPerPage, $pageNumber);

Method getCities returns the following data:, (*5)

{
    "success": true,
    "data": [
        // here will be list of cities
    ],
    "errors": [],
    "warnings": [],
    "info": {
        "totalCount": 5964
    },
    "messageCodes": [],
    "errorCodes": [],
    "warningCodes": [],
    "infoCodes": []
}

The Versions

29/01 2018

dev-master

9999999-dev

A simple library for working with API 2.0 of Nova Poshta

  Sources   Download

by Oleksandr Polishchuk

29/01 2018

1.0.0

1.0.0.0

A simple library for working with API 2.0 of Nova Poshta

  Sources   Download

by Oleksandr Polishchuk