PHP code example of arabiacode / laravel-flow-builder
1. Go to this page and download the library: Download arabiacode/laravel-flow-builder 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/ */
arabiacode / laravel-flow-builder example snippets
use Arabiacode\LaravelFlowBuilder\Models\Flow;
$flow = Flow::create([
'name' => 'Order Processing',
'description' => 'Process new orders automatically',
'is_active' => true,
]);
use Arabiacode\LaravelFlowBuilder\Contracts\NodeExecutor;
use Arabiacode\LaravelFlowBuilder\Engine\FlowState;
use Arabiacode\LaravelFlowBuilder\Models\FlowNode;
class SmsExecutor implements NodeExecutor
{
public function execute(FlowNode $node, FlowState $state): mixed
{
return ['ok' => true];
}
}