How to build an embedded Shopify app in PHP Symfony without official docs
A developer has published a detailed technical guide on building an embedded Shopify app using Symfony 7.4 and PHP 8.5, based on a real app called StockPilot that passed Shopify's review process. Because Shopify's official documentation primarily supports Node.js, PHP developers have lacked a clear reference for implementing the platform's authentication model. The guide explains how embedded apps run inside admin.shopify.com as cross-origin iframes, making traditional PHP sessions unusable and requiring JWT-based session tokens issued by Shopify's App Bridge instead. It covers key security steps including HMAC signature verification, audience and domain claim validation, and a deliberate clock-skew leeway to prevent false token expiry errors. The article also details the OAuth token exchange flow that converts a session token into an offline access token needed to make authenticated Shopify API calls.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in