PHP code example of samfelgar / metabase-dashboard
1. Go to this page and download the library: Download samfelgar/metabase-dashboard library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
samfelgar / metabase-dashboard example snippets
$dashboard = new \Samfelgar\MetabaseDashboard\DataTransferObjects\Dashboard(
'https://example.com',
'your-secret',
1, // resource id
[
'param' => 'value'
]
);
public function tools(): array
{
return [
(new \Samfelgar\MetabaseDashboard\MetabaseDashboard('uniqueIdentifier', $dashboard))
->label('Awesome Label')
->title('Awesome Title'),
];
}