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
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-10-21