2017 © Pedro PelĆ”ez
 

symfony-bundle prestashop-webservice-bundle

PrestaShop WebService library bundle

image

iq2i/prestashop-webservice-bundle

PrestaShop WebService library bundle

  • Friday, November 17, 2017
  • by LoicSapone
  • Repository
  • 2 Watchers
  • 2 Stars
  • 308 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 2 Open issues
  • 7 Versions
  • 10 % Grown

The README.md

PrestaShop Web Service Bundle

This version of the bundle requires Symfony 2.1+., (*1)

Installation

Step 1: Add dependency via Composer

composer require iq2i/prestashop-webservice-bundle, (*2)

Step 2: Active in app/AppKernel.php

``` php public function registerBundles() { $bundles = array( // ... new IQ2i\PrestaShopWebServiceBundle\IQ2iPrestaShopWebServiceBundle(), ); }, (*3)


##### Step 3: Add configuration in app/config/config.yml ``` yaml # app/config/config.yml iq2i_prestashop_web_service: connections: my_prestashop_1: url: http://my-prestashop-1.com/ key: G5U3GCMX88EF9SFYKN82PBRYJAQQ3Z2G debug: false my_prestashop_2: url: http://my-prestashop-1.com/ key: G5U3GCMX88EF9SFYKN82PBRYJAQQ3Z2G debug: false

Use in your application

``` php <?php, (*4)

namespace AppBundle\Controller;, (*5)

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller;, (*6)

class DefaultController extends Controller { /** * @Route("/", name="homepage") */ public function indexAction() {, (*7)

    $presta = $this->container->get('iq2i_prestashop_web_service')->getInstance('my_prestashop_1');
    $result = $presta->get(array(
        "resource" => "orders"
    ));
    var_dump($result);
    die();
}

} ```, (*8)

The Versions

17/11 2017

dev-master

9999999-dev

PrestaShop WebService library bundle

  Sources   Download

GPL-2.0

The Requires

 

by LoĆÆc Sapone - IQ2i

17/11 2017

1.2.0

1.2.0.0

PrestaShop WebService library bundle

  Sources   Download

GPL-2.0

The Requires

 

by LoĆÆc Sapone - IQ2i

23/09 2016

1.1.0

1.1.0.0

PrestaShop WebService library bundle

  Sources   Download

GPL-2.0

The Requires

 

by LoĆÆc Sapone - IQ2i

30/01 2016

1.0.3

1.0.3.0

PrestaShop WebService library bundle

  Sources   Download

The Requires

 

by LoĆÆc Sapone - IQ2i

02/11 2015

1.0.2

1.0.2.0

PrestaShop WebService library bundle

  Sources   Download

The Requires

 

by LoĆÆc Sapone - IQ2i

07/06 2015

1.0.1

1.0.1.0

PrestaShop WebService library bundle

  Sources   Download

The Requires

 

by LoĆÆc Sapone - IQ2i

10/04 2015

1.0.0

1.0.0.0

PrestaShop WebService library bundle

  Sources   Download

The Requires

 

by LoĆÆc Sapone - IQ2i