remp / remp-commons
REMP common tools (for Beam, Campaign and Mailer)
5.0.1
2026-03-30 07:21 UTC
Requires
- php: ^8.3
- gburtini/distributions: ^0.0.2
- guzzlehttp/guzzle: ^7.0
This package is auto-updated.
Last update: 2026-06-07 09:33:40 UTC
README
Installation
To include this set of tools within the project, update your composer.json file accordingly:
{
"minimum-stability": "dev",
"prefer-stable": true,
"repositories": [
{
"type": "path",
"url": "../Composer/remp-commons"
}
],
"require": {
// ...
"remp/remp-commons": "*"
}
}
Usage
Multi-armed bandit
$machine = new Machine(1000); $machine->addLever(new Lever('variant-a', 10, 1000)); $machine->addLever(new Lever('variant-b', 5, 900)); $result = $machine->run(); echo $result->getWinningLever()->getId(); // variant-a echo $result->getWinningLeverProbability(); // 0.875