graymatterlabs/pingtree

A Ping Tree is a process in which a single lead is offered to multiple buyers in real-time and sold to the highest bidder


Keywords
graymatterlabs, pingtree
License
MIT

Documentation

Ping Tree Lead Distribution

Latest Version on Packagist Tests Total Downloads

A Ping Tree is a process in which a single lead is offered to multiple buyers in real-time and sold to the highest bidder.

Installation

You can install the package via composer:

composer require graymatterlabs/pingtree:^0.1

Usage

$tree = new Tree($strategy, $offers);

$response = $tree->ping($lead);

if ($response instanceof RedirectResponse) {
    redirect($response->getRedirect());
}

For examples of usage and implementation, please check out the tests/ directory.

Testing

composer test

Changelog

Please see the Release Notes for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.