2017 © Pedro Peláez
 

library shopify-php

PHP library for the Shopify API

image

shopify/shopify-php

PHP library for the Shopify API

  • Wednesday, February 28, 2018
  • by shopify
  • Repository
  • 128 Watchers
  • 40 Stars
  • 696 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 15 Forks
  • 9 Open issues
  • 5 Versions
  • 10 % Grown

The README.md

🚧 Currently Inactive 🚧

Build Status codecov, (*1)

Getting started

<?php
require 'vendor/autoload.php'; 

use Shopify\ShopifyClient;

$client = new ShopifyClient($access_token, "yourshop.myshopify.com");
$products = $client->products->readList();

Creating orders

$newOrder = ['line_items' => [['title' => 'cool', 'price' => 4]]];
$response = $client->orders->create($newOrder);

Reading orders

$response = $client->orders->read($orderId);
$object = $response->parsedResponse();
$orders = $client->orders->readList();
foreach ($order in $orders->parsedResponse()) {
    var_dump($order->id);
}

Updating orders

$response = $client->orders->update($orderId, ["note" => "cool order"]);

Counting open orders

$response = $client->orders->readCount(["status" => "open"]);

Deleting orders

$response = $client->orders->delete($orderId);

Testing phpunit

phpunit

Running PHP CodeSniffer

./vendor/bin/phpcs ./src/ --standard=PSR2
./vendor/bin/phpcs ./test/ --standard=PSR2

The Versions

28/02 2018

dev-webhook_resource_support

dev-webhook_resource_support

PHP library for the Shopify API

  Sources   Download

The Requires

  • php >=5.5.9
  • ext-curl *

 

The Development Requires

21/08 2017

dev-master

9999999-dev

PHP library for the Shopify API

  Sources   Download

The Requires

  • ext-curl *
  • php >=5.5.9

 

The Development Requires

21/08 2017

v0.11

0.11.0.0

PHP library for the Shopify API

  Sources   Download

The Requires

  • php >=5.5.9
  • ext-curl *

 

The Development Requires

09/04 2017

v0.1

0.1.0.0

PHP library for the Shopify API

  Sources   Download

The Requires

  • php >=5.5.9
  • ext-curl *

 

The Development Requires

09/03 2017

v0.1-alpha

0.1.0.0-alpha

PHP library for the Shopify API

  Sources   Download

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires