2017 © Pedro Peláez
 

symfony-bundle shopify-bundle

Symfony2 Bundle to interact with a Shopify Store (API Call)

image

adezandee/shopify-bundle

Symfony2 Bundle to interact with a Shopify Store (API Call)

  • Monday, April 28, 2014
  • by Adezandee
  • Repository
  • 1 Watchers
  • 2 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 13 % Grown

The README.md

ShopifyBundle

Build Status Scrutinizer Code Quality Code Coverage Total Downloads License, (*1)

Symfony2 Bundle to interact with a Shopify Store (API Call), (*2)

Configuration

After installing the bundle, you'll need private api key and password of your shopify shop and add it in your config file: http://docs.shopify.com/api/tutorials/creating-a-private-app, (*3)

``` yaml, (*4)

app/config/config.yml

shopify: api_key: "%shopify_api_key%" password: "%shopify_password%" secret: "%shopify_secret%" domain: "%shopify_domain%", (*5)


## Basic Usage This bundle provide a mapping of Shopify object and allow you to create / update / delete items of your shopify store through API call. ``` php # AcmeBundle/Controller/DefaultController.php public function newProductAction() { $product = new Product(); $product ->setTitle('Test Product1') ->setBodyHtml('Body Test Product1') ->setProductType('Test') ->setVendor('symfony') ; $product = $this->get('shopify.product_exporter')->export($product); // Now you can persist locally that you created a shopifyProduct // with $product->getId(); }

The Versions