Skip to content

lujunsan/metabase-php-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

metabase-php-api

Simple Metabase API wrapper written in PHP.

Installation

Install with composer:

composer require lujunsan/metabase-php-api

Usage

Create a Metabase Client with:

/*
 * url: Full URL of the Metabase application (https://metabase.unicorn.com)
 * username: Username of the account that will make the API calls
 * password: Password of username above
*/

$client = new MetabaseClient($url, $username, $password);

Retrieve data from a question with:

/*
 * questionId: Id of the question (query) that will be executed and retrieved
 * format: Optional, defaults as json
 * parameters: Optional, defaults empty, any extra parameters that will be sent in the API call
*/

$client->getQuestion($questionId, $format, $parameters);

About

Simple Metabase API wrapper written in PHP

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages