PHPackages                             riipandi/php-metabase - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. riipandi/php-metabase

ActiveLibrary[API Development](/categories/api)

riipandi/php-metabase
=====================

Embedding Metabase on your PHP application

v1.2(4y ago)327.4k↓35.4%MITPHP

Since Jan 21Pushed 4y agoCompare

[ Source](https://github.com/riipandi/php-metabase)[ Packagist](https://packagist.org/packages/riipandi/php-metabase)[ Docs](https://github.com/riipandi/php-metabase)[ RSS](/packages/riipandi-php-metabase/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

PHP Metabase
============

[](#php-metabase)

[![Latest Stable Version](https://camo.githubusercontent.com/7d0b4afc3a168622bf2b38fd450d79b3145c3858182040fc42609ca2a8fa482f/687474703a2f2f706f7365722e707567782e6f72672f72696970616e64692f7068702d6d657461626173652f76)](https://packagist.org/packages/riipandi/php-metabase) [![Total Downloads](https://camo.githubusercontent.com/586e597e37970a5af2b7de13ae0553185a97a6c3e6a278883d0e570bdb4e99ba/687474703a2f2f706f7365722e707567782e6f72672f72696970616e64692f7068702d6d657461626173652f646f776e6c6f616473)](https://packagist.org/packages/riipandi/php-metabase) [![Latest Unstable Version](https://camo.githubusercontent.com/8841fe1832e587b41f2809c5b0781360e83082b9477b021f019b3d586ba7d7ea/687474703a2f2f706f7365722e707567782e6f72672f72696970616e64692f7068702d6d657461626173652f762f756e737461626c65)](https://packagist.org/packages/riipandi/php-metabase) [![License](https://camo.githubusercontent.com/7316afd4f69ccec2bfd4793261d8fb5aab741bfc120f84dd7a3d78893f544f70/687474703a2f2f706f7365722e707567782e6f72672f72696970616e64692f7068702d6d657461626173652f6c6963656e7365)](https://packagist.org/packages/riipandi/php-metabase) [![PHP Version Require](https://camo.githubusercontent.com/589445daceb149d647d71608adaa1352d82ddcbe3fc5670bc66c3e49504d0d10/687474703a2f2f706f7365722e707567782e6f72672f72696970616e64692f7068702d6d657461626173652f726571756972652f706870)](https://packagist.org/packages/riipandi/php-metabase)

---

Library to embed [Metabase](http://www.metabase.com/) frames. Forked from [ipeevski/metabase-php](https://github.com/ipeevski/metabase-php)

Installation
------------

[](#installation)

- Install via composer: `composer require riipandi/php-metabase`
- Go to Metabase and enable embedding - https://{metabase\_url}/admin/settings/embedding\_in\_other\_applications
- Note down the Metabase base url and the Embedding secret key

Basic usage
-----------

[](#basic-usage)

First, you need to find the dashboard or question you want to embed. Note down the id - it would be at the end of the URL (for example https://{metabase\_url}/dashboard/1?date=past26weeks

Note the integer after /dashboard/ - that's the ID of the dashboard. Also note the GET parameters at the end of the url - those are parameters you might want to pass to the dashboard too.

```
