Skip to content


Folders and files

Last commit message
Last commit date

Latest commit



29 Commits

Repository files navigation

Latest Stable Version Total Downloads Latest Unstable Version StyleCI License


Call a chain of methods on an object.

Chain provides an easy way to chain a set of methods on an object.

Chain provides a set of methods to suit your chaining needs. From requiring you class to be an instance of an earlier specified class to getting back the results from each called method, Chain's got it all. For more info, check the Documentation or browse through the full API.


$ composer require cupoftea/chain ^1.2
$chain = new Chain();
    ->call('method1', 'method2')
    ->with($parameter1, $parameter2)

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