Skip to content

[READ-ONLY] library provide an api client to interact with Hasura api.

License

Notifications You must be signed in to change notification settings

hasura-extra/api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Api Client

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.

About

[READ-ONLY] library provide an api client to interact with Hasura api.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages