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

ActiveLibrary[API Development](/categories/api)

boaideas/laravel-shopify
========================

An easier to use rocket-code/shopify for Shopify integration in Laravel applications

v1.0.0(8y ago)22.3k2MITPHPPHP ^7.0

Since Sep 25Pushed 8y ago3 watchersCompare

[ Source](https://github.com/amosmos/laravel-shopify)[ Packagist](https://packagist.org/packages/boaideas/laravel-shopify)[ Docs](https://github.com/amosmos/laravel-shopify)[ RSS](/packages/boaideas-laravel-shopify/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Easier Laravel integration for rocket-code/shopify
==================================================

[](#easier-laravel-integration-for-rocket-codeshopify)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d1655cb212e1698a7a07c5d4cebb6c80ca7c0a4b8ff2bbaafe9bced5a56c8803/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626f6169646561732f6c61726176656c2d73686f706966792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/boaideas/laravel-shopify)[![Software License](https://camo.githubusercontent.com/183281f322b6688a8de4a0e003ab58f666738f362b7de879100bac639de43176/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626f6169646561732f6c61726176656c2d73686f706966792e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![StyleCI](https://camo.githubusercontent.com/5f8b2d48b60b2f71921c649edee9b5feda0b14fc233c02c6b3d6a7fede72d49a/68747470733a2f2f7374796c6563692e696f2f7265706f732f3130343734383433332f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/104748433)[![Total Downloads](https://camo.githubusercontent.com/cb4198a6abf5dbec1c1a60e03798be55a06ffecb6d07a7d6fe3645ae23f6dea3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626f6169646561732f6c61726176656c2d73686f706966792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/boaideas/laravel-shopify)

This packages allows for a better integration of [rocket-code/shopify](https://github.com/joshrps/laravel-shopify-API-wrapper) in Laravel applications.

Benefits
--------

[](#benefits)

By using this package you get these added values:

- Auto discovery (Laravel 5.5 or higher) - no need to manually add any service provider
- Configuration in env file
- Allow the service to be used in dependency injection
- Allow usage as [real time facade](https://twitter.com/taylorotwell/status/814944242158149632) (Laravel 5.4 or higher)

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

[](#installation)

You can install the package via composer:

```
composer require boaideas/laravel-shopify
```

If you're installing the package on Laravel 5.5 or higher, you're done (The package uses Laravel's auto package discovery).

If you're using Laravel 5.4 or less, add the `BOAIdeas\Shopify\ShopifyServiceProvider` service provider to your providers array:

```
// config/app.php

'providers' => [
    ...
    BOAIdeas\Shopify\ShopifyServiceProvider::class,
];
```

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

[](#configuration)

Now, by default, the package will look for the following values in your .env file:

```
// .env

SHOPIFY_KEY=YourAppApiKey
SHOPIFY_SECRET=YourAppSecret
SHOPIFY_DOMAIN=YourShopDomain (for private apps)
SHOPIFY_TOKEN=YourToken

```

If, for some reason, you want to change any of these settings, you can publish the config file with:

```
php artisan vendor:publish --provider="BOAIdeas\Shopify\ShopifyServiceProvider"
```

This is the content of the published config file:

```
// config/shopify.php

return [
    'api_key'       => env('SHOPIFY_KEY'),
    'api_secret'    => env('SHOPIFY_SECRET'),
    'shop_domain'   => env('SHOPIFY_DOMAIN'),
    'access_token'  => env('SHOPIFY_TOKEN'),
];
```

Usage
-----

[](#usage)

Once installed, you can use the service by either injecting it to your methods or as a real time facade, and then just use it regularly.

For more information about how to use the service, look at .

### Dependency Injection

[](#dependency-injection)

Now you can simply type hint the service in your method's arguments. For better readabilty, we prefer to import the full class name with a `use` statement, and alias it to Shopify while we're at it.

```
use RocketCode\Shopify\API as Shopify;

Route::get('/', function (Shopify $shopify) {

    $call = $shopify->call(
    [
        'URL' => 'products.json',
        'METHOD' => 'GET',
        'DATA' => [
            'limit' => 5,
            'published_status' => 'any'
        ]
    ]);

});
```

### Facade

[](#facade)

Now you can use Laravel's [on the fly facades](https://twitter.com/taylorotwell/status/814944242158149632) feature to use the service "statically". We prefer to alias it to ShopifyAPI while we're at it.

```
use Facades\RocketCode\Shopify\API as ShopifyAPI;

Route::get('/', function () {

    $call = ShopifyAPI::call(
    [
        'URL' => 'products.json',
        'METHOD' => 'GET',
        'DATA' => [
            'limit' => 5,
            'published_status' => 'any'
        ]
    ]);

});
```

Credits
-------

[](#credits)

- [Amos Shacham](https://github.com/amosmos)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3200d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2318695?v=4)[Amos Shacham](/maintainers/amosmos)[@amosmos](https://github.com/amosmos)

---

Top Contributors

[![amosmos](https://avatars.githubusercontent.com/u/2318695?v=4)](https://github.com/amosmos "amosmos (16 commits)")

---

Tags

apilaravelshopifylaravel-shopifyBOA Ideas

### Embed Badge

![Health badge](/badges/boaideas-laravel-shopify/health.svg)

```
[![Health](https://phpackages.com/badges/boaideas-laravel-shopify/health.svg)](https://phpackages.com/packages/boaideas-laravel-shopify)
```

###  Alternatives

[kyon147/laravel-shopify

Shopify package for Laravel to aide in app development

482287.3k](/packages/kyon147-laravel-shopify)[dan/shopify

Shopify API with Laravel integrations using latest Guzzle.

2325.6k](/packages/dan-shopify)[dan/shopify-api

Shopify API for PHP

218.3k](/packages/dan-shopify-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
