定制 hasura-extra/api-client 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

hasura-extra/api-client

最新稳定版本:5.0.0

Composer 安装命令:

composer require hasura-extra/api-client

包简介

The library provides an api client to interact with Hasura api.

README 文档

README

Library to help interact with Hasura api.

Installation

Install via Composer:

composer require hasura-extra/api-client

Usages

Create client and call api:

<?php

$client = new \Hasura\ApiClient\Client('Your Hasura base uri', 'Your Hasura admin secret (optional)');

// Get Hasura config
$config = $client->config()->get();

// Export Hasura metadata
$metadata = $client->metadata()->query('export_metadata', []);

// Execute graphql query:
$data = $client->graphql()->query('query { __typename }');

// And more...

Client method provides to interact with Hasura api:

Method Api reference
config link
graphql link
relay graphql link
metadata link
version link

License

This project is released under the MIT License.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-10-27