Download the PHP package mortenscheel/laravel-automation without Composer
On this page you can find all versions of the php package mortenscheel/laravel-automation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mortenscheel/laravel-automation
More information about mortenscheel/laravel-automation
Files in mortenscheel/laravel-automation
Package laravel-automation
Short Description Laravel automation framework
License MIT
Homepage https://github.com/scheel/laravel-automation
Informations about the package laravel-automation
Laravel Automation
Allow users to configure dynamic automation flows in your Laravel app. Inspired by If this then that, you define a number of triggers and actions, and then allow your users to combine and configure them.
Quick start
Install the package with composer:
Publish and run the migrations:
Run automations automatically via Laravel's scheduler in app/Console/Kernel.php
Concepts
AutomationTrigger
classes
Custom classes that are responsible for discovering models that meet their criteria.
AutomationAction
classes
Custom Job classes that perform an action on a model.
Automation
model
A concrete automation workflow that combines an AutomationTrigger
with an AutomationAction
.
Also includes (optional) parameters for both the trigger and the action.
AutomationLog
model
A record that is created when an Automation
is performed on a specific model.
Automatable
interface
In order to make your models automatable, they must implement the Automatable
interface.
Examples
Send a welcome email 15 minutes after a new user is created
The Automation
model might look something like this
The trigger class only need to implement a single method:
The action class is also rather simple:
Todo
This package is a work in progress, and feedback or pull requests will be appreciated. These are some of the areas that I would like to improve:
- Add more example triggers and actions (with tests).
- Allow using a custom
Automation
child class (wip). - Add more documentation.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Morten Scheel
- All Contributors
License
The MIT License (MIT). Please see License File for more information.