PHPackages                             heimrichhannot/contao-alert-reminder-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. heimrichhannot/contao-alert-reminder-bundle

ActiveContao-bundle[Utility &amp; Helpers](/categories/utility)

heimrichhannot/contao-alert-reminder-bundle
===========================================

This utility bundle offers functionality to remind the backend users of existing alerts in the Contao CMS.

0.3.3(2y ago)11.5kproprietaryPHPPHP ^7.4 || ^8.0

Since Aug 6Pushed 2y ago4 watchersCompare

[ Source](https://github.com/heimrichhannot/contao-alert-reminder-bundle)[ Packagist](https://packagist.org/packages/heimrichhannot/contao-alert-reminder-bundle)[ Docs](https://github.com/heimrichhannot/contao-alert-reminder-bundle)[ RSS](/packages/heimrichhannot-contao-alert-reminder-bundle/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (6)Dependencies (9)Versions (11)Used By (0)

Contao Alert Reminder Bundle
============================

[](#contao-alert-reminder-bundle)

This utility bundle offers functionality to remind the backend users of existing alerts in the Contao CMS.

Features
--------

[](#features)

- looks for existing (configurable) contao backend alerts (added via the hook `getSystemMessages`) and adds a backend message in order to remind the backend user of it

Use case
--------

[](#use-case)

You might ask what's the use case of this functionality?

The original use case was in order to remind the backend users to add missing `alt` attributes to images (accessibility).

Without the functionality, the user might forget about it. Making the `alt` mandatory has also not been an option because of contao's simple file upload functionality which doesn't contain the field at all.

Hence the need for reminding the backend user of it.

Installation
------------

[](#installation)

1. Run `composer require heimrichhannot/contao-alert-reminder-bundle` and update the database.

Technical instructions
----------------------

[](#technical-instructions)

### Add new contao alerts to the context of this bundle

[](#add-new-contao-alerts-to-the-context-of-this-bundle)

1. Register a `getSystemMessages` hook as usual in contao:

    ```
    // config.php (or use yaml tags in contao 4.9+)
    $GLOBALS['TL_HOOKS']['getSystemMessages']['myBundle'] = [
        \Acme\MyBundle\EventListener\GetSystemMessagesListener::class, '__invoke'
    ];
    ```

    ```
    // GetSystemMessagesListener.php

    namespace Acme\MyBundle\EventListener;

    use Acme\AlertReminderBundle\Manager\AlertReminderManager;
    use Acme\RequestBundle\Component\HttpFoundation\Request;
    use Symfony\Contracts\Translation\TranslatorInterface;

    class GetSystemMessagesListener
    {
        /**
         * @var TranslatorInterface
         */
        private $translator;
        /**
         * @var Request
         */
        private $request;
        /**
         * @var AlertReminderManager
         */
        private $alertReminderManager;

        public function __construct(AlertReminderManager $alertReminderManager, TranslatorInterface $translator, Request $request)
        {
            $this->translator           = $translator;
            $this->request              = $request;
            $this->alertReminderManager = $alertReminderManager;
        }

        public function __invoke()
        {
            $message = 'My alert message';

            return $this->alertReminderManager->prepareSystemMessage($message, 'some_alert_type_alias');
        }
    }
    ```
2. In order to activate the reminding you have to add your alert type in your project's `app/config/config.yml`:

    ```
    huh_alert_reminder:
      alert_types:
        - { name: some_alert_type_alias }
    ```

### Add your alerts to the alert queue backend module

[](#add-your-alerts-to-the-alert-queue-backend-module)

This bundle introduces the `AlertQueueModule`. It's just a list of messages. You might use it to add the full list of alerts you want to the user to notice. In the context of reminding the user of missing alt-attributes this is the place to add shortcuts to the concrete media files.

You can add your messages by registering an event listener for the event `AddAlertsToAlertReminderQueueEvent` for example as follows:

```
public function __invoke(AddAlertsToAlertReminderQueueEvent $event)
{
    if ('alt_issues_existing' !== Input::get('type')) {
        return;
    }

    $messages = $event->getAlerts();

    $messages[] = [
        'class' => 'tl_error', // you can use Contao's tl_ classes
        'message' => 'My message'
    ];

    $event->setAlerts($messages);
}
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~126 days

Recently: every ~242 days

Total

10

Last Release

975d ago

PHP version history (4 changes)0.1.0PHP ^7.2

0.2.5PHP ^7.2|^8.0

0.3.1PHP ^7.2||^8.0

0.3.3PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/28ad3224d8727b622ebd229840eea6b9dbcb83eb0bd609e6ce65b614830ff538?d=identicon)[digitales@heimrich-hannot.de](/maintainers/digitales@heimrich-hannot.de)

---

Top Contributors

[![koertho](https://avatars.githubusercontent.com/u/12064642?v=4)](https://github.com/koertho "koertho (3 commits)")[![Defcon0](https://avatars.githubusercontent.com/u/1485098?v=4)](https://github.com/Defcon0 "Defcon0 (2 commits)")

---

Tags

contaoalertsreminders

### Embed Badge

![Health badge](/badges/heimrichhannot-contao-alert-reminder-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/heimrichhannot-contao-alert-reminder-bundle/health.svg)](https://phpackages.com/packages/heimrichhannot-contao-alert-reminder-bundle)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3183.3k6](/packages/codefog-contao-news-categories)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
