Git Product home page Git Product logo

shopify-api-fork's Introduction

Shopify API Library for PHP

License: MIT

This library provides support for PHP Shopify apps to access the Shopify Admin API, by making it easier to perform the following actions:

  • Creating online or offline access tokens for the Admin API via OAuth
  • Making requests to the REST API
  • Making requests to the GraphQL API
  • Registering/processing webhooks

In addition to the Admin API, this library also allows querying the Storefront API.

This library can be used in any application that has a PHP backend, since it doesn't rely on any specific framework—you can include it alongside your preferred stack and only use the features that you need to build your app.

Requirements

To follow these usage guides, you will need to:

  • have a basic understanding of PHP
  • have a Shopify Partner account and development store
  • OR have a test store where you can create a private app
  • have a private or custom app already set up in your test store or partner account
  • use ngrok, in order to create a secure tunnel to your app running on your localhost
  • add the ngrok URL and the appropriate redirect for your OAuth callback route to your app settings

Getting started

You can follow our getting started guide to learn how to use this library's components.

Developing this library

After cloning the repository, composer can install the dependencies:

composer install

To run tests:

composer test

If you want to get a code coverage report from the tests, you'll need to install the php-xdebug extension by running pecl install xdebug, and then run:

composer test -- [--coverage-text|--coverage-html=<path>]

You may have to clear composer's autoload cache when namespaces change:

composer dump-autoload

To run linter:

composer lint

shopify-api-fork's People

Contributors

jbours avatar

Watchers

Tim avatar

shopify-api-fork's Issues

A new release of the Shopify API is due soon

This is an automated reminder for the maintainers that a new Stable release of the Shopify API is due soon, so the library needs to be updated.

A new library release should be prepared to:

  • add the upcoming Stable release
  • remove the oldest Stable release which will no longer be supported.

The PR should be created as a draft but not yet be merged.

The release schedule can be found at https://shopify.dev/concepts/about-apis/versioning

Review the changelog and consider if anything in the library needs to change:

https://shopify.dev/changelog

Test against the upcoming release by using the Release Candidate.

Another reminder issue will be created on the date of the next release.
When that happens, test again using the now Stable API version, and aim to release an update of the library within one week.

Thank you!

A new release of the Shopify API occurred

This is an automated reminder for the maintainers that a new Stable release of the Shopify API is scheduled for today
at 12pm Eastern Time, so a new release of the library is now due.

A draft PR should already exist for this.

Review the changelog again and consider if anything in the library needs to change:

https://shopify.dev/changelog

Test against the new release by using the Stable version just released.

Aim to release an update of the library within one week.

Thank you!

A new release of the Shopify API occurred

This is an automated reminder for the maintainers that a new Stable release of the Shopify API is scheduled for today
at 12pm Eastern Time, so a new release of the library is now due.

A draft PR should already exist for this.

Review the changelog again and consider if anything in the library needs to change:

https://shopify.dev/changelog

Test against the new release by using the Stable version just released.

Aim to release an update of the library within one week.

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.