PHPackages                             purple-zotapay/symfony-shopify-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. purple-zotapay/symfony-shopify-bundle

ActiveLibrary[API Development](/categories/api)

purple-zotapay/symfony-shopify-bundle
=====================================

Makes Shopify app development a breeze

1.0.0(11y ago)024MITPHPPHP &gt;=5.3.0

Since Apr 8Pushed 6y agoCompare

[ Source](https://github.com/Sergey-razumov/symfony-shopify-bundle)[ Packagist](https://packagist.org/packages/purple-zotapay/symfony-shopify-bundle)[ Docs](https://github.com/codecloud/symfony-shopify-bundle)[ RSS](/packages/purple-zotapay-symfony-shopify-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (5)Used By (0)

Symfony Shopify Bundle
======================

[](#symfony-shopify-bundle)

This bundle enables quick and easy integration with Shopify.

[![Build Status on Travis](https://camo.githubusercontent.com/9d6ea69ac83d1fc7817bb03a402bfbb152a47d820e1e071383b8f82005df6ecc/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f526963687465726d6569737465722f73796d666f6e792d73686f706966792d62756e646c652f6d61737465722e737667)](http://travis-ci.org/Richtermeister/symfony-shopify-bundle)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/ed4aa1b0d13c30dc740b1995f20e76b0a08030dad5e14812237948d0622c947f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f526963687465726d6569737465722f73796d666f6e792d73686f706966792d62756e646c652e737667)](https://scrutinizer-ci.com/g/Richtermeister/symfony-shopify-bundle/)

Features
--------

[](#features)

- Shopify OAuth signup flow with a few configuration options.
- Thin wrapper around Guzzle for easy API interactions. All API endpoints are supported.
- Symfony firewall to verify incoming API requests are authenticated (to embed app in Shopify Admin)
- Webhook support to listen for Shopify events.

The Store Model
---------------

[](#the-store-model)

Stores are represented by instances of `ShopifyStoreInterface`. It is up to you to provide an implementation of it and handle persistence.

OAUTH Configuration
-------------------

[](#oauth-configuration)

```
// app/confiy.yml

code_cloud_shopify:
    store_manager_id: { id of your store manager service }
    oauth:
        api_key: { your app's API Key }
        shared_secret: { your app's shared secret }
        scope: { the scopes your app requires, i.e.: "read_customers,write_customers" }
        redirect_route: { the route to redirect users to after installing the app, i.e.: "admin_dashboard".. }
    webhooks:
        - orders/create
        - customers/update
```

API Usage
---------

[](#api-usage)

You can access the API of an authorized store via the `` service:

```
// in Controller

$api = $this->get('')->getForStore("name-of-store");

$customers = $api->Customer->findAll();
$orders = $api->Order->findAll();
```

Webhooks
--------

[](#webhooks)

You can register a list of webhooks you are interested in receiving. The bundle will automatically register them with Shopify and dispatch an event every time a webhook is received.

```
