PHP code example of siturra / flow

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

    

siturra / flow example snippets


'providers' => array(
    …
    Siturra\Flow\FlowServiceProvider::class,
    …
),

'aliases' => array(
    …
    'Flow' => Siturra\Flow\FlowFacade::class,
    …
),


...
Route::group(['prefix' => 'payment/flow'], function(){
    Route::get('index', 'FlowController@index');
    Route::post('orden', 'FlowController@orden');
    Route::get('confirm', 'FlowController@confirm');
    Route::match(['get', 'post'], 'success', 'FlowController@success');
    Route::match(['get', 'post'], 'failure', 'FlowController@failure');
    Route::post('index', 'FlowController@orden');
});
...


...
protected $except = [
        //
        'payment/*',
    ];
...