PHP code example of cupoftea / chain

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

    

cupoftea / chain example snippets


$chain = new Chain();
$chain-> ->call('method1', 'method2')
    ->with($parameter1, $parameter2)
    ->run();

$method1_result = $chain->getResult('method1');