PHP code example of i-lateral / silverstripe-notifier

1. Go to this page and download the library: Download i-lateral/silverstripe-notifier 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/ */

    

i-lateral / silverstripe-notifier example snippets


class MyMonitoredObject extends DataObject
{
  private static $db = [
    'Sender' => 'Email',
    'Recipient' => 'Email'
  ];

  private static $extensions = [
    'ilateral\SilverStripe\Notifier'
  ];
}