Download the PHP package the42coders/workflows without Composer

On this page you can find all versions of the php package the42coders/workflows. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package workflows

Workflows add Drag & Drop automation's to your Laravel application.

Latest Version on Packagist Build Status Quality Score Total Downloads

Logo

The Workflow Package adds Drag & Drop Workflows to your Laravel Application. A Workflow consists of Triggers and Tasks. The Trigger is responsible for starting a Workflow. The Tasks are single nodes of code execution. The package comes with some handy tasks bundled, but you can easily write your own as well.

If you are interested in news and updates

Video Tutorial

Alt text

Installation

You can install the package via composer:

You need to register the routes to your web.php routes File as well. Since the Workflow Package is very powerful make sure to secure the routes with whatever authentication you use in the rest of your app.

You need to publish the assets of the Package

Other publishable Contents are

config

language

views

Usage

The Workflow Package is working out of the Box in your Laravel application. Just go to the route /workflows to get started.

Workflows

A Workflow is gets started by a Trigger and then executes the Tasks in the Order you set them. To pass information between the Tasks we have the DataBus.

Triggers

A Trigger is the Starting Point and defines how a Workflow gets called. More Triggers coming soon.

ObserverTrigger

The Observer Trigger can listen to Eloquent Model Events and will then pass the Model which triggered the Event to the Workflow.

To make it Work add the WorkflowObservable to your Eloquent Model.

ButtonTrigger

The Button Trigger is able to render a button in your "frontend" and Execute a Workflow based by a click on it. ButtonTrigger also accept an Model which they pass to the Workflow.

You can influence the buttons by adding your own classes or styles directly to each ButtonTrigger. Also you can publish the blade and change it according to your needs.

You have multiple ways of rendering ButtonTrigger.

ByName
ByWorkflowId
ByCategory

This will return all Triggers from the Category.

Tasks

A Task is a single code execution Node in the Workflow.

Task Description
ChangeModel Changes an Eloquent Model (Its not saving the changes to the DB)
DomPDF The DomPDF Task offers you a way to generate a PDF from HTML and put it to the DataBus (Works great with the HtmlInput Task).
Execute The Execute Task offers you to execute Shell Commands and is able to push the output of them to the DataBus.
HtmlInput The HtmlInput Task offers you a Trix Input Field which is able to render Blade. You can put in placeholders for dynamic content in two Ways. From the Model passed through the Workflow or from the DataBus.
HttpStatus The HttpStatus offers you a way to receive the Http Status of a given URL.
PregReplace The PregReplace Task offers you a way to to a preg replace on a Value from the Model or a DataBus Variable.
LoadModel Loads an Eloquent Model from the DB. You can provide the Class and the id.
SaveFile The SaveFile Task allows you to save Data to a File. Works easily with your registered Storage defines.
SaveModel Saves an Eloquent Model.
SendMail The SendMail Task allows you to send a Mail. You can pass the Content and Attachments to it. (Works great with HtmlInput and DomPDF)
SendSlackMessage This Task let you send a Slack Message. Please read the Section about Slack Notifications to make your app ready too use this.

SendSlackMessage

To send Slack messages you need to follow this 3 points.

  1. You need to install Slack notifications Laravel Slack Documentation
  2. You need to set up an incoming Slack Webhook Slack Documentation
  3. Set the WebhookUrl to your env file with WORKFLOW_SLACK_CHANNEL=YourSlackWebhookUrl

DataBus

The DataBus is a way to pass information between the single Tasks. This keeps the Tasks independent of each other.

Resource Description
ValueResource The Value Resource is the simplest Resource. You can just write your Data in an input field.
ConfigResource The Config Resource lets you access values from your Config Files.
ModelResource The ModelResource lets you access the Data from the passed Eloquent Model.
DataBusResource The DataBusResource lets you access the Data from the DataBus. This means all values which got set by a previous Task are access able here.

Testing

Changelog

Please see CHANGELOG for more information about what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.


All versions of workflows with dependencies

PHP Build Version
Package Version
Requires php Version >7.2
barryvdh/laravel-dompdf Version ^0.9.0|^1.0|^2.0
doctrine/dbal Version ^3.4
guzzlehttp/guzzle Version ^7
illuminate/support Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package the42coders/workflows contains the following files

Loading the files please wait ....