PHP code example of nkamuo / notification-tracker-bundle

1. Go to this page and download the library: Download nkamuo/notification-tracker-bundle 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/ */

    

nkamuo / notification-tracker-bundle example snippets


return [
    // ...
    Nkamuo\NotificationTrackerBundle\NotificationTrackerBundle::class => ['all' => true],
];

// Emails are automatically tracked
$email = (new Email())
    ->from('[email protected]')
    ->to('[email protected]')
    ->subject('Time for Symfony Mailer!')
    ->html('<p>See Twig integration for better HTML integration!</p>');

$mailer->send($email);
bash
php bin/console doctrine:migrations:diff
php bin/console doctrine:migrations:migrate
bash
# Process failed messages
php bin/console notification-tracker:process-failed

# View analytics
php bin/console notification-tracker:analytics

# Clean up old messages
php bin/console notification-tracker:cleanup --days=90