PHP code example of innoboxrr / make-bridge

1. Go to this page and download the library: Download innoboxrr/make-bridge 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/ */

    

innoboxrr / make-bridge example snippets


// Fire a scenario and pass it data.
MakeBridge::scenario('onboarding')->trigger([
    'user_id' => $user->id,
    'plan'    => 'pro',
]);

// Receive results as a normal Laravel event.
class ScenarioCompleted
{
    public function handle(MakeScenarioResult $result) { /* ... */ }
}