eblick / contao-trigger
Time and condition based trigger framework for notifications and other things inside Contao Open Source CMS
Installs: 443
Dependents: 0
Suggesters: 0
Security: 0
Stars: 16
Watchers: 4
Forks: 2
Open Issues: 1
Type:contao-bundle
Requires
- php: >=8.1
- contao/core-bundle: ^4.13 || ^5.1
- doctrine/dbal: ^3.3
- symfony/expression-language: ^5.4 || ^6.0
- symfony/lock: ^5.4 || ^6.0
- symfony/stopwatch: ^5.4 || ^6.0
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.4
- contao/manager-plugin: ^2.0
- contao/test-case: ^4.2
- phpunit/phpunit: ^8.4
- terminal42/notification_center: ^1.7
Suggests
This package is auto-updated.
Last update: 2024-12-12 11:43:07 UTC
README
This bundle adds an extensible condition ⇒ action framework to Contao OpenSource CMS. The condition checking is processed on a regular basis via a cron job. If one or more actions are executed a respective entry gets created in the trigger log.
Components
By default the following components are available:
-
Conditions
-
Table Records: Executes an action at most once for each of a selected table's rows if:
A) a custom expression based on the table's columns is met
category == 'things' and sum_total - coupon 2 > 100
B) a field containing datetime information matches a given time constraint (e.g. 7 days later / 15 minutes before). When using the latter, the execution time can be overwritten (e.g. 3 days in advance, but at 6pm).
-
Point in Time: Executes an action as soon as a given point in time is reached. This allows basic scheduling.
-
-
Actions
- Notification Action: Allows to send a custom notification via
terminal42\notification-center
(must be installed individually). The available simple tokens are based on the selected condition and are displayed in the backend.
- Notification Action: Allows to send a custom notification via