PHP code example of mcarrowsmith-packages / oauth2-shopify

1. Go to this page and download the library: Download mcarrowsmith-packages/oauth2-shopify library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mcarrowsmith-packages / oauth2-shopify example snippets


$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'
]);