mcarrowsmith-packages/shopify-graphql-client 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

mcarrowsmith-packages/shopify-graphql-client

最新稳定版本:v1.2

Composer 安装命令:

composer require mcarrowsmith-packages/shopify-graphql-client

包简介

README 文档

README

Shopify GraphQL Client

PHP Client to send GraphQL requests to Shopify Admin API.

Installation

You can install the package via composer:

composer require mcarrowsmith-packages/shopify-graphql-client

Usage

Make sure you have correct credentials to access the Shopify Store via Partner Account or Custom App.

use \McArrowsmithPackages\ShopifyGraphQLClient\ClientFactory;

$query = <<<'QUERY'
query {
  shop {
    name
  }
}
QUERY;

$factory = ClientFactory::make('example.myshopify.com', '<API-TOKEN>', '2022-07');

try {
    $factory->request($query);
} catch (\Throwable $t) {
    echo $t->getMessage() . PHP_EOL;
}

See scripts for full usage and examples.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-21