PHP code example of degordian / yii2-webhooks

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

    

degordian / yii2-webhooks example snippets


'bootstrap' => [
    // ...
    'webhooks'
],

'modules' => [
    // ...
    'webhooks' => [
        'class' => 'degordian\webhooks\Module',
    ],
],

Event::trigger(Example::class, Example::EVENT_EXAMPLE, new Event(['sender' => $model]));

'modules' => [
    // ...
    'webhooks' => [
        'class' => 'degordian\webhooks\Module',
        'eventDispatcherComponentClass' => 'app\components\MyDispatcher',
    ],
],
bash
php yii migrate --migrationPath=@degordian/webhooks/migrations