Skip to content

php-packages/fluent

Repository files navigation

Fluent Build Status

Readability is the key. Version 1.0.1.

Navigation

Installation

composer require php-packages/fluent

Usage

class A
{

    use \PhpPackages\Fluent\FluentTrait;
}

$a = new A;

$a->should->do->something("useful");
$a->getFluent()->getCalls(); # => ["should", "do", ["something", ["useful"]]]
$a->getFluent()->clearCalls();

$a->_jump_and_scream();
$a->postCatsInInstagram();
$a->getFluent()->getCalls(); # => ["jump", "and", "scream", "post", "cats", "in", "instagram"]
$a->getFluent()->clearCalls();

$a->doThat()->and->doThis(123, null);
$a->getFluent()->getCalls(); # => ["do", "that", "and", "do", ["this", [123, null]]]

Additional information

Fluent is licensed under the MIT License (MIT).

About

Readability is the key.

Resources

License

Stars

Watchers

Forks

Packages

No packages published