PHPackages                             bnmetrics/laravel-shopify-api - 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. bnmetrics/laravel-shopify-api

ActiveLibrary[API Development](/categories/api)

bnmetrics/laravel-shopify-api
=============================

Shopify API wrapper for laravel

1.0.5(8y ago)5446.1k30[13 issues](https://github.com/BNMetrics/Laravel-ShopifyAPI/issues)MITPHPPHP &gt;=5.6.4

Since Apr 29Pushed 3y ago2 watchersCompare

[ Source](https://github.com/BNMetrics/Laravel-ShopifyAPI)[ Packagist](https://packagist.org/packages/bnmetrics/laravel-shopify-api)[ RSS](/packages/bnmetrics-laravel-shopify-api/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (5)Versions (6)Used By (0)

Laravel Shopify API Wrapper
===========================

[](#laravel-shopify-api-wrapper)

[![Build Status](https://camo.githubusercontent.com/63c79fb07e54a36841f297c2d55ec42ddd65f8d3838532a83769516a5bce2e00/68747470733a2f2f7472617669732d63692e6f72672f424e4d6574726963732f4c61726176656c2d53686f706966794150492e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/BNMetrics/Laravel-ShopifyAPI)[![Latest Stable Version](https://camo.githubusercontent.com/e82d7bfafe06318a5c26ba6d85545522ed4a041c80f28db7f10a2d1815d5dd01/68747470733a2f2f706f7365722e707567782e6f72672f626e6d6574726963732f6c61726176656c2d73686f706966792d6170692f762f737461626c65)](https://packagist.org/packages/bnmetrics/laravel-shopify-api)

This Package provides a easy way for you to building [Shopify](https://www.shopify.com/?ref=developer-886210bf83bd9c41) Apps with Laravel 5. The OAuth authentication is extended upon Laravel's Socialite.

### This package supports both public and private apps, including billing.

[](#this-package-supports-both-public-and-private-apps-including-billing)

Installation
------------

[](#installation)

You can install this package via composer with:

```
composer require bnmetrics/laravel-shopify-api
```

Or add to your Laravel project composer.json file:

```
"require": {

    "bnmetrics/laravel-shopify-api" : "~1.0",
}
```

To publish the shopify.php configuration file to `app/config` run:

```
php artisan vendor:publish --provider='BNMetrics\Shopify\ShopifyServiceProvider'
```

Configuration
-------------

[](#configuration)

Set shopify environment variables your .env file:

```
SHOPIFY_KEY=YOUR_API_KEY_HERE
SHOPIFY_SECRET=YOUR_API_SECRET_HERE
SHOPIFY_REDIRECT=https://app.example.com/oauth/authorize
```

Register the service provider in your `app/config/app.php`:

```
"providers" => [
   // other providers...
   BNMetrics\Shopify\ShopifyServiceProvider::class,
]
```

Also add the `Shopify` facade in your `aliases` array in `app/config/app.php`:

```
"aliases" => [
   // other facades...
   'Shopify' => BNMetrics\Shopify\Facade\ShopifyFacade::class,
]
```

Basic Usage
-----------

[](#basic-usage)

Now, you are ready to make a shopify app! here is an example of how it might be used in a controller to retrieve information from a shop via GET request to the API endpoint:

```
