PHP code example of iseazylms / teams-notificator

1. Go to this page and download the library: Download iseazylms/teams-notificator 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/ */

    

iseazylms / teams-notificator example snippets


use LmsTeamsNotificator\LmsTeamsNotificator;

(new LmsTeamsNotificator('Proceso terminado', $webhookUrl))
    ->setText('**Duración**: 3 min')
    ->notify();

'teams' => [
    'driver' => 'custom',
    'via'    => \LmsTeamsNotificator\Logging\TeamsLogger::class,
    'url'    => env('TEAMS_LOG_WEBHOOK_URL'),
    'level'  => env('TEAMS_LOG_LEVEL', 'error'),
    'format' => 'message',      // o 'adaptive_card'
    'title'  => 'Mi aplicación', // opcional
],