Download the PHP package codeinternetapplications/shopify-oauth without Composer

On this page you can find all versions of the php package codeinternetapplications/shopify-oauth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package shopify-oauth

Shopify Oauth connector

This packages enables you to make an OAuth connection with Shopify.

The package was originally written to use with Lumen. But it can also be used in combination with Laravel. Note that since it was made for Lumen the connector is stateless.

Installation

Use composer to install this package into your project

Configuration

We tried to make it as easy as possible. Perform these steps to start:

Copy config file

Copy the shopify_oauth.php config file to your config directory and make it available in the bootstrap/app.php file.

Adjust your keys in the config

Set your api_key, api_secret_key and base_url. Also adjust your scopes. You can use the .env file for this (see below)

Make sure your app supports Facades and Eloquent

In Lumen you will have to uncomment these lines in bootstrap/app.php:

Environment file

Put these variables in your .env file:

Also make sure that your APP_KEY is defined. Since we encrypt some data in the database Lumen/Laravel needs this key to encrypt it.

Register the ShopifyOauthServiceProvider

Register the ShopifyOauthServiceProvider in your application.

Run migrations

Run the migrations so you get the con_shops and con_shop_access_tokens table.

Usage of Middleware

Make sure that when you want to use the online token you will have to add the Middleware shopify-oauth-handler. It is advisable to use these middlewares in your routes:

For example:

Execute scripts after installation

To install webhooks or trigger something right after the installation of the application you will have to implement an event listener into your app.

When the App is installed an event is triggered. You can listen to this event and implement custom actions such as:

Create listener and listen

Open your bootstrap/app.php file and make sure that the EventServiceProvider is enabled.

Open the EventServiceProvider.php file and add these lines:

Create a new local listener in your app/Listeners folder and add the scripts you want to perform. You can start with this template:


All versions of shopify-oauth with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
guzzlehttp/guzzle Version ^6.2
league/oauth2-client Version ^2.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package codeinternetapplications/shopify-oauth contains the following files

Loading the files please wait ....