PHPackages                             malefici/metabase-bundle - 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. malefici/metabase-bundle

ActiveSymfony-bundle[API Development](/categories/api)

malefici/metabase-bundle
========================

The small bundle makes embedding dashboards and questions slightly easier.

v0.0.4(2y ago)0459MITPHPPHP &gt;=8.2

Since Mar 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/malefici/metabase-bundle)[ Packagist](https://packagist.org/packages/malefici/metabase-bundle)[ RSS](/packages/malefici-metabase-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (9)Versions (5)Used By (0)

Symfony Metabase Bundle
=======================

[](#symfony-metabase-bundle)

The small bundle makes embedding dashboards and questions slightly easier.

Supported Metabase versions:

Metabase versionBundle version0.480.0.3Installation and configuration
------------------------------

[](#installation-and-configuration)

```
composer require malefici/metabase-bundle

```

There is no Flex Recipe for now. It will be added later.

Create configuration file `config/packages/metabase.yaml`

```
metabase:
    # The base URL where users access Metabase, e.g. https://metabase.example.com or https://example.com/metabase.
    site_url: '%env(resolve:MB_SITE_URL)%'

    # Secret key used to sign JSON Web Tokens for requests to /api/embed endpoints.
    secret_key: '%env(resolve:MB_EMBEDDING_SECRET_KEY)%'

    # All parameters below are not required; their default values are presented in this configuration.

    # Date and time modifier, see https://www.php.net/manual/en/datetime.formats.php
    token_expiration: '+1 hour'

    # Customizing the appearance of static embeds. Settings from paid plans are not included.
    appearance:
        border: true
        title: true
        theme: light # Available values: light, dark, transparent.

```

Define environment variables in the `.env` file:

```
MB_SITE_URL=https://metabase.example.com
MB_EMBEDDING_SECRET_KEY=76ff41a84ed1c6b294528b8339ab357173c020d767119c571d931eae27bd07d5

```

Twig functions
--------------

[](#twig-functions)

### `metabase_embedded`

[](#metabase_embedded)

Example:

```
{{ metabase_embedded('question', 1, { question_parameter: 10 }) }}

```

Template overriding
-------------------

[](#template-overriding)

Please read [Symfony documentation](https://symfony.com/doc/current/bundles/override.html) about templates overriding.

You may pass additional data to your custom template:

```
{{ metabase_embedded('dashboard', 1, { dashboard_parameter: 10 }, { my_template_variable: 'value' }) }}

```

Commands
--------

[](#commands)

The list of CLI commands.

### `metabase:embedding:generate-token`

[](#metabaseembeddinggenerate-token)

Token generation for embedding.

### `metabase:embedding:generate-url`

[](#metabaseembeddinggenerate-url)

URL generation for embedding.

TODO
----

[](#todo)

- Flex Recipe
- Downgrade requirements to Symfony 6.4
- Unit-tests
- API requests

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

793d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/246c9457df505c0579d526dd7646d8d921361b9921ef571427a48a2a114c1d49?d=identicon)[malefici](/maintainers/malefici)

---

Top Contributors

[![malefici](https://avatars.githubusercontent.com/u/2532057?v=4)](https://github.com/malefici "malefici (13 commits)")

---

Tags

apisymfonyintegrationembeddingmetabase

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/malefici-metabase-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/malefici-metabase-bundle/health.svg)](https://phpackages.com/packages/malefici-metabase-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
