2017 © Pedro Peláez
 

library prestashop-webservice

PHP wrapper for PrestaShop Webservices 1.7.x and 1.6.x.

image

kusflo/prestashop-webservice

PHP wrapper for PrestaShop Webservices 1.7.x and 1.6.x.

  • Friday, June 23, 2017
  • by kusflo
  • Repository
  • 2 Watchers
  • 7 Stars
  • 127 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 9 Versions
  • 18 % Grown

The README.md

Actions Status Latest Stable Version Total Downloads License, (*1)

PrestashopWebService Easy

PHP wrapper for PrestaShop Webservices 1.7.x and 1.6.x, (*2)

Description

This wrapper allows you to download data from the prestashop store in a simple way. The data is transformed to an associative array., (*3)

Installation

composer require kusflo/prestashop-webservice, (*4)

Example Usage

function listOrdersAll()
{
    try {
        $o = new PShopWsOrders(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);
        $orders = $o->getList();
    } catch (PShopWsException $e) {
        echo $e->getMessage();
    }
}
function listOrdersLastDays($days)
{
    try {
        $o = new PShopWsOrders(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);
        $orders = $o->getListLastDays($days);
    } catch (PShopWsException $e) {
        echo $e->getMessage();
    }
}
function listOrdersToday()
{
    try {
        $o = new PShopWsOrders(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);
        $orders = $o->getListToday();
    } catch (PShopWsException $e) {
        echo $e->getMessage();
    }
}
function getOrderById($id)
{
    try {
        $o = new PShopWsOrders(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);
        $order = $o->getById($id);
    } catch (PShopWsException $e) {
        echo $e->getMessage();
    }
}
function listProducts()
{
    try {
        $p = new PShopWsProducts(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);
        $products = $p->getList();
    } catch (PShopWsException $e) {
        echo $e->getMessage();
    }
}
function getProductById($id)
{
    try {
        $p = new PShopWsProducts(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);
        $product = $p->getById($id);
    } catch (PShopWsException $e) {
        echo $e->getMessage();
    }
}
function listCategories()
{
    try {
        $p = new PShopWsCategories(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);
        $categories = $p->getList();
    } catch (PShopWsException $e) {
        echo $e->getMessage();
    }
}
function getCategoryById($id)
{
    try {
        $p = new PShopWsCategories(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);
        $category = $p->getById($id);
    } catch (PShopWsException $e) {
        echo $e->getMessage();
    }
}
function listManufacturers()
{
    try {
        $p = new PShopWsManufacturers(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);
        $manufacturers = $p->getList();
    } catch (PShopWsException $e) {
        echo $e->getMessage();
    }
}
function getManufacturerById($id)
{
    try {
        $p = new PShopWsManufacturers(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);
        $manufacturer = $p->getById($id);
    } catch (PShopWsException $e) {
        echo $e->getMessage();
    }
}
function listCustomers()
{
    try {
        $c = new PShopWsCustomers(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);
        $customers = $c->getList();
    } catch (PShopWsException $e) {
        echo $e->getMessage();
    }
}
function getCustomerById($id)
{
    try {
        $c = new PShopWsCustomers(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);
        $customer = $c->getById($id);
    } catch (PShopWsException $e) {
        echo $e->getMessage();
    }
}
function listApiPermissionsToXml()
{
    try {
        $c = new PShopWsCustomers(_PS_SHOP_PATH, _PS_WS_AUTH_KEY);
        $permissions = $c->getApiPermissions();
        echo '<pre>';
        var_dump($permissions);
    } catch (PShopWsException $e) {
        echo $e->getMessage();
    }
}

The Versions

23/06 2017

dev-master

9999999-dev https://github.com/kusflo/PrestaShopWebService

PHP wrapper for PrestaShop Webservices 1.7.x and 1.6.x.

  Sources   Download

GNU-3.0

The Requires

 

The Development Requires

by Marcos Redondo

api php filter date arrays prestashop store webservices erp

01/06 2017

v0.0.8

0.0.8.0 https://github.com/kusflo/PrestaShopWebService

PHP wrapper for PrestaShop Webservices 1.7.x and 1.6.x.

  Sources   Download

GNU-3.0

The Requires

 

The Development Requires

by Marcos Redondo

api php filter date arrays prestashop store webservices erp

30/05 2017

v0.0.7

0.0.7.0 https://github.com/kusflo/PrestaShopWebService

PHP wrapper for PrestaShop Webservices 1.7.x and 1.6.x.

  Sources   Download

GNU-3.0

The Requires

 

The Development Requires

by Marcos Redondo

api php filter date arrays prestashop store webservices erp

12/04 2017

v0.0.6

0.0.6.0 https://github.com/kusflo/PrestaShopWebService

PHP library (not official) for PrestaShop 1.7.x Webservices.

  Sources   Download

GNU-3.0

The Requires

 

The Development Requires

by Marcos Redondo

api php filter date arrays prestashop store webservices erp

06/04 2017

v0.0.5

0.0.5.0 https://github.com/kusflo/PrestaShopWebService

PHP library (not official) for PrestaShop 1.7.x Webservices.

  Sources   Download

GNU-3.0

The Requires

 

The Development Requires

by Marcos Redondo

api php filter date arrays prestashop store webservices erp

06/04 2017

v0.0.4

0.0.4.0 https://github.com/kusflo/PrestaShopWebService

PHP library (not official) for PrestaShop 1.7.x Webservices.

  Sources   Download

GNU-3.0

The Requires

 

The Development Requires

by Marcos Redondo

api php filter date arrays prestashop store webservices erp

04/04 2017

v0.0.3

0.0.3.0 https://github.com/kusflo/PrestaShopWebService

PHP library (not official) for PrestaShop 1.7.x Webservices.

  Sources   Download

GNU-3.0

The Requires

  • php >=5.6.0
  • ext-curl *

 

The Development Requires

by Marcos Redondo

api php filter date arrays prestashop store webservices erp

04/04 2017

v0.0.2

0.0.2.0 https://github.com/kusflo/PrestaShopWebService

PHP library (not official) for PrestaShop 1.7.x Webservices.

  Sources   Download

GNU-3.0

The Requires

  • php >=5.6.0
  • ext-curl *

 

The Development Requires

by Marcos Redondo

api php filter date arrays prestashop store webservices erp

03/04 2017

v0.0.1

0.0.1.0 https://github.com/kusflo/PrestaShopWebService

PHP library (not official) for PrestaShop 1.7.x Webservices.

  Sources   Download

GNU-3.0

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

by Marcos Redondo

api php filter date arrays prestashop store webservices erp