1. Go to this page and download the library: Download bryanyeh/shopify-laravel 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/ */
bryanyeh / shopify-laravel example snippets
use Bryanyeh\Shopify\Facades\Shopify;
Route::get('install', function(Request $request){
return redirect(Shopify::init($request->input('shop'))->install('https://example.com/confirm'));
})->middleware('shopifyrequest');
use Bryanyeh\Shopify\Facades\Shopify;
Route::get('confirm', function(Request $request){
$access_token = Shopify::init($request->input('shop'))->getAccessToken($request->input('code'))['access_token'];
//save the access_token for later use
//redirect to success or billing page
})->middleware('shopifynonce', 'shopifyrequest');