PHP code example of webstik / yii2-telegram-notifications

1. Go to this page and download the library: Download webstik/yii2-telegram-notifications 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/ */

    

webstik / yii2-telegram-notifications example snippets


'modules' => [
   'telegramNotifications' =>  [
        'class' => '\webstik\telegramNotifications\Module'
    ]
],

'controllerMap' => [
    'migrate-webstik-telegram' => [
        'class' => 'yii\console\controllers\MigrateController',
        'migrationTable' => 'migration_webstik_telega',
        'migrationPath' => '@webstik/telegramNotifications/migrations',
    ],
],

php yii migrate-webstik-telegram
/index.php?r=<moduleName>/telegram-setting
/index.php?r=telegramNotifications/telegram-setting