PHP code example of mihaikelemen / apache-superset-php-client

1. Go to this page and download the library: Download mihaikelemen/apache-superset-php-client 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/ */

    

mihaikelemen / apache-superset-php-client example snippets




uperset\SupersetFactory;

// Create an authenticated client
$superset = SupersetFactory::createAuthenticated(
    baseUrl: 'https://your-superset-instance.com',
    username: 'your-username',
    password: 'your-password'
);

// Retrieve dashboards
$dashboards = $superset->dashboard()->list();

// Get a specific dashboard
$dashboard = $superset->dashboard()->get('my-dashboard-slug');