PHP code example of codekanzlei / cake-notifications

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

    

codekanzlei / cake-notifications example snippets


$email->beforeSendCallback(['Foo', 'bar'], ['first_param', 'second_param'])


public function bar($first_param, $second_param)
{
    // do something
    return function (&$instance) {
        $instance->profile([
            'from' => '[email protected]'
        ]);
    };
}

$email-> afterSendCallback(['Foo::bar'], ['first_param', 'second_param'])