2017 © Pedro Peláez
 

library shopify-php-sdk

Shopify PHP SDK

image

signifly/shopify-php-sdk

Shopify PHP SDK

  • Friday, July 27, 2018
  • by signifly
  • Repository
  • 3 Watchers
  • 1 Stars
  • 836 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 19 Versions
  • 60 % Grown

The README.md

Shopify PHP SDK

The signifly/shopify-php-sdk package allows you to easily make requests to the Shopify API., (*1)

Below is a small example of how to use it with the CredentialsProfile., (*2)

use Signifly\Shopify\Shopify;
use Signifly\Shopify\Profiles\CredentialsProfile;

$shopify = new Shopify(
    new CredentialsProfile(
        env('SHOPIFY_API_KEY'),
        env('SHOPIFY_PASSWORD'),
        env('SHOPIFY_DOMAIN'),
        env('SHOPIFY_API_VERSION')
    )
);

// Retrieve a list of products
$shopify->products()->all(); // returns a collection of ProductResource

// Count all products
$shopify->products()->count();

// Find a product
$resource = $shopify->products()->find($id); // returns a ProductResource

// Update a product
$shopify->products()->update($id, $data); // returns a ProductResource

// Delete a product
$shopify->products()->destroy($id);

Documentation

To get started follow the installation instructions below., (*3)

Installation

You can install the package via composer:, (*4)

$ composer require signifly/shopify-php-sdk

Reference

A list of the available methods on the Shopify API client. The examples below assumes you have knowledge of how to make valid requests to the Shopify API., (*5)

If you want to learn more about what options are available when making a request, please refer to Shopify's documentation., (*6)

Products

Retrieve a list of products, (*7)

$shopify->products()->all([
    'page' => 1,
    'limit' => 250,
]);

// returns a collection of ProductResource

NOTE: There's a max limit of 250 items per request., (*8)

Retrieve a count of products, (*9)

$shopify->products()->count(); // returns an integer

Retrieve a single product, (*10)

$shopify->products()->find(123456789); // returns a ProductResource

Create a new product, (*11)

$shopify->products()->create([
    'title' => 'Burton Custom Freestyle 151',
    'body_html' => '<strong>Good snowboard!</strong>',
    'vendor' => 'Burton',
    'product_type' => 'Snowboard',
    'tags' => 'Barnes & Noble, John\'s Fav, "Big Air"',
]);

// returns a ProductResource

Update a product, (*12)

$shopify->products()->update(123456789, [
    'title' => 'An updated title',
]);

// returns a ProductResource

Delete a product, (*13)

$shopify->products()->destroy(123456789); // returns void

Testing

$ composer test

Security

If you discover any security issues, please email dev@signifly.com instead of using the issue tracker., (*14)

Credits

License

The MIT License (MIT). Please see License File for more information., (*15)

The Versions

27/07 2018

dev-master

9999999-dev https://github.com/signifly/shopify-php-sdk

Shopify PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Travis Elkins
by Morten Poul Jensen

05/06 2018

v0.0.17

0.0.17.0 https://github.com/signifly/shopify-php-sdk

Shopify PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Travis Elkins
by Morten Poul Jensen

14/05 2018

v0.0.16

0.0.16.0 https://github.com/signifly/shopify-php-sdk

Shopify PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Travis Elkins
by Morten Poul Jensen

08/05 2018

v0.0.15

0.0.15.0 https://github.com/signifly/shopify-php-sdk

Shopify PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Travis Elkins
by Morten Poul Jensen

18/04 2018

v0.0.14

0.0.14.0 https://github.com/signifly/shopify-php-sdk

Shopify PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Travis Elkins
by Morten Poul Jensen

18/04 2018

v0.0.13

0.0.13.0 https://github.com/signifly/shopify-php-sdk

Shopify PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Travis Elkins
by Morten Poul Jensen

10/04 2018

v0.0.12

0.0.12.0 https://github.com/signifly/shopify-php-sdk

Shopify PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Travis Elkins
by Morten Poul Jensen

10/04 2018

v0.0.11

0.0.11.0 https://github.com/signifly/shopify-php-sdk

Shopify PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Travis Elkins
by Morten Poul Jensen

09/04 2018

v0.0.10

0.0.10.0 https://github.com/signifly/shopify-php-sdk

Shopify PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Travis Elkins
by Morten Poul Jensen

26/03 2018

v0.0.9

0.0.9.0 https://github.com/signifly/shopify-php-sdk

Shopify PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Travis Elkins
by Morten Poul Jensen

23/03 2018

v0.0.8

0.0.8.0 https://github.com/signifly/shopify-php-sdk

Shopify PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Travis Elkins
by Morten Poul Jensen

23/03 2018

v0.0.7

0.0.7.0 https://github.com/signifly/shopify-php-sdk

Shopify PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Travis Elkins
by Morten Poul Jensen

06/03 2018

v0.0.6

0.0.6.0 https://github.com/signifly/shopify-php-sdk

Shopify PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Travis Elkins
by Morten Poul Jensen

06/03 2018

v0.0.5

0.0.5.0 https://github.com/signifly/shopify-php-sdk

Shopify PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Travis Elkins
by Morten Poul Jensen

20/02 2018

v0.0.4

0.0.4.0 https://github.com/signifly/shopify-php-sdk

Shopify PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Travis Elkins
by Morten Poul Jensen

31/01 2018

v0.0.3

0.0.3.0 https://github.com/signifly/shopify-php-sdk

Shopify PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Travis Elkins
by Morten Poul Jensen

30/01 2018

v0.0.2

0.0.2.0 https://github.com/signifly/shopify-php-sdk

Shopify PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Travis Elkins
by Morten Poul Jensen

30/01 2018

dev-feature/products-tests

dev-feature/products-tests https://github.com/signifly/shopify-php-sdk

Shopify PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Travis Elkins
by Morten Poul Jensen

30/01 2018

v0.0.1

0.0.1.0 https://github.com/signifly/shopify-php-sdk

Shopify PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Travis Elkins
by Morten Poul Jensen