How To Build Shopify Apps with PHP (Update 2020)



We are aware that there are hundreds of PHP tutorials online on how to create a Shopify app using PHP, but in this course, we’ll tackle all the components that you may want to add to your Shopify app like displaying products and such.

Now before we proceed, Shopify made an update with their API where they version their API quarterly also known as API versioning. It is important to know that Shopify will always make updates to their API so if you are developing Shopify apps, then you should also keep your apps updated.

What is Shopify PHP?

There’s no such thing called “Shopify PHP”, but to make it understandable to you. PHP is a programming language for web development that can be used to develop a Shopify app. Though there are PHP Frameworks that you can use as well to build a Shopify app like Laravel.


Is it hard to do Shopify App Development?

Building your own Shopify Apps is very easy, all you need is to understand how the API works. Shopify is a Rails application, there are lots of Shopify repository that you can use for FREE to integrate your website to Shopify API. Here’s the list:

Personally, I use this Shopify API Client made by Alex here:
Shopify Generating API Token Guide

To begin, you have to create a new Shopify app in your Shopify Developer account, so if you don’t have an account yet, you can sign up by visiting

Shopify App Development Tutorial PHP - WeeklyHow

Building Your Own Shopify App with PHP

In this article, we’re going to learn how to make a Shopify application from the scratch using PHP, if you already have a Shopify developer account this is the first page you’re going to see:

Developer Shopify Dashboard
Developer Shopify Dashboard

Proceed to left navigation panel and click the Apps category

Shopify App Development Tutorial PHP

Click Create app and fill out the forms like this:

Shopify App Development Tutorial PHP
Create Shopify App Form

App Name – The name of the Shopify application you’re about to create.
App URL – The URL of your website where you’re going to upload your Shopify files
Whitelisted Redirection URL(s) – This is where you’re going to list your generate token script or URLs you need as you Authenticate your Shopify.


Image of Shopify App Development using PHP

Once you’re done, filling the form, click Create app

Image of Shopify App Development using PHP
Here’s everything you need to start building your Shopify App

Now that we have our first Shopify app created, it’s time to make our website connected using these API credentials. To do this, download at least one of the Shopify repositories that I have provided in this article.

Create Shopify Apps for Storefront

Customize and add more features to your Shopify store using Shopify apps!

To continue with this project, you may proceed to this article.

In part 2, we’ll be using the credentials that we have to connect it to PHP. If you’re interested, proceed to this article below:


React to this topic

9 comments on How To Build Shopify Apps with PHP (Update 2020)

  1. Hi Bernard, further to my question yesterday, I found that I can get the token when I input “” in the google browser. But I cannot access/show the index of/apps/example_app/ folders in the ‘Apps’ page of my shopify store after clicking the installed app.

    Thank you very much for your kind help

  2. Thanks Bernard for this great article.
    I tried to follow the youtube tutorial.
    After installed the app to my test development store, and when I clicked the installed app in the ‘Apps” page of the store, I got the error message as follows:

    You don’t have permission to access this resource.
    Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

    Please if you could help?

  3. Hi! Do you know how to add product with variants & images?

    I have this array :

    [product] => Array
    [title] => TITLE
    [body_html] => DESCRIPTION
    [vendor] => TESTSTORE
    [product_type] =>
    [tags] =>
    [published] => 1
    [variants] => Array
    [0] => Array
    [price] => 1160


    [images] => Array
    [0] => Array
    [src] => urlofimage.jpg

    [1] => Array
    [src] => urlofimage.jpg




    But it does not add the price and images of the product when shopify_call is called. Thanks!

    1. Hi Raff,

      Thank you for reaching out to us!

      Are you referring to displaying product prices and images?
      If so, you may read this article, we have explained here how to use Product API.

      However, if you’re talking about adding products to the store. You may use POST instead of GET and send an array of product data.

      We’d love to help you more! If you have more questions or issues, please don’t hesitate to let us know.


  4. Thanks for sharing the information. It was really helpful.
    Can you please also write article on uninstall of Shopify app?
    Thank you very much. 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *