PHP code example of kevdotbadger / shopify

1. Go to this page and download the library: Download kevdotbadger/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/ */

    

kevdotbadger / shopify example snippets


$url = $auth->asShop('kevinruscoe')
		->withScopes(['read_products', 'write_products'])
		->redirectingTo(route('auth.callback'))
		->requestAccess();

return redirect(url($url));		

$token = $auth->requestAccessToken($request);

return redirect(url('products'));