PHPackages                             mcarrowsmith-packages/oauth2-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. mcarrowsmith-packages/oauth2-shopify

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

mcarrowsmith-packages/oauth2-shopify
====================================

v1.0(3y ago)0152MITPHPPHP ^7.4 || ^8.0

Since Sep 17Pushed 3y agoCompare

[ Source](https://github.com/mcarrowsmith/oauth2-shopify)[ Packagist](https://packagist.org/packages/mcarrowsmith-packages/oauth2-shopify)[ RSS](/packages/mcarrowsmith-packages-oauth2-shopify/feed)WikiDiscussions main Synced 1mo ago

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

[![](https://camo.githubusercontent.com/1b27de602c8b14990582d1cf88db3fb6dc00915592f368406bf1a50e7d955aaa/68747470733a2f2f6d636172726f77736d6974682e636f2e756b2f6173736574732f696d616765732f6d636172726f77736d6974682d636f6e73756c74696e672d736f6369616c2d636172642e706e67)](https://mcarrowsmith.co.uk)

OAuth2 Shopify
==============

[](#oauth2-shopify)

PHP OAuth 2.0 provider for Shopify extending [PHP League's OAuth Client](https://github.com/thephpleague/oauth2-client).

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

[](#installation)

You can install the package via composer:

```
composer require mcarrowsmith/oauth2-shopify
```

Usage
-----

[](#usage)

Make sure you have configured and app via your Shopify Partner account.

```
$provider = new \McArrowsmithPackages\Oauth2Shopify\ShopifyProvider([
    'shop'         => '{example-shopify-store}.myshopify.com',
    'clientId'     => '{shopify-add-id}',
    'clientSecret' => '{shopify-app-secret}',
    'redirectUri'  => 'https://{example-ngrok-subdomain}.ngrok.io/login'
]);
```

See [web/login/index.php](web/login/index.php) for full workflow example.

Testing
-------

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/mcarrowsmith/.github/blob/main/CONTRIBUTING.md) for details.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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

1330d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a1213100c1ec9c2e4e38636305b81d721b35fb3ec0e5c0ee127b86ca8917fd14?d=identicon)[mcarrowsmith](/maintainers/mcarrowsmith)

---

Top Contributors

[![bennoislost](https://avatars.githubusercontent.com/u/1015154?v=4)](https://github.com/bennoislost "bennoislost (1 commits)")

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mcarrowsmith-packages-oauth2-shopify/health.svg)

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

###  Alternatives

[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M117](/packages/league-oauth2-google)[knpuniversity/oauth2-client-bundle

Integration with league/oauth2-client to provide services

83416.7M61](/packages/knpuniversity-oauth2-client-bundle)[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2509.6M47](/packages/thenetworg-oauth2-azure)[stevenmaguire/oauth2-keycloak

Keycloak OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2275.9M27](/packages/stevenmaguire-oauth2-keycloak)[patrickbussmann/oauth2-apple

Sign in with Apple OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1132.5M6](/packages/patrickbussmann-oauth2-apple)[microsoft/kiota-authentication-phpleague

Authentication provider for Kiota using the PHP League OAuth 2.0 client to authenticate against the Microsoft Identity platform

153.2M7](/packages/microsoft-kiota-authentication-phpleague)

PHPackages © 2026

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