承接 elabuwa/shopifyapi 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

elabuwa/shopifyapi

最新稳定版本:3.0.1

Composer 安装命令:

composer require elabuwa/shopifyapi

包简介

A set of APIs to retrieve data from Shopify

关键字:

README 文档

README

This is a simple wrapper for Shopify's APIs. This will initially focus on GET requests on the customer and product APIs and move to build on other endpoints as well. PRs are most welcome.

Installation

A simple composer install is all you need to get things running.

$ composer require elabuwa/shopifyapi

Development

The response is a Guzzle Response object

$credentials = [
    'userName' => env('SHOPIFY_USERNAME', ''),
    'password' => env('SHOPIFY_PASSWORD', ''),
    'apiVersion' => env('SHOPIFY_API_VERSION', ''),
    'storeShopifyUrl' => env('SHOPIFY_URL', '')
];
$customerObj = new shopifyCustomers($credentials);
$response = $customerObj->customerInfo('customerID');
var_dump($response['customer']);

Plugins

Guzzle is the only plugin used at the moment. Guzzle by default has an option to throw exceptions on http error codes. However, this has been disabled to allow you to handle errors the way you see fit. If you wish to enable this, simply set $http_errors = true.

Todos

  • Add extra endpoints
  • Write Tests

License

MIT

统计信息

  • 总下载量: 504
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-01-02