PHP code example of microcode / filament-integrations

1. Go to this page and download the library: Download microcode/filament-integrations 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/ */

    

microcode / filament-integrations example snippets


use Microcode\FilamentIntegrations\IntegrationsPlugin;

$panel->plugin(
    IntegrationsPlugin::make()
        ->navigationGroup('Settings')
        ->canAccessSettings(fn (): bool => true)
        ->canAccessMonitoring(fn (): bool => true)
        ->only(['google', 'telegram', 'mailgun', 'zoom'])
);

integration_setting('google', 'client_id');

app(\Microcode\FilamentIntegrations\Messaging\MessengerSenderManager::class)
    ->send('telegram', $chatId, 'Hello');
bash
composer vendor:publish --tag=filament-integrations-config
php artisan migrate