remp / remp-commons
REMP common tools (for Beam, Campaign and Mailer)
Installs: 4 115
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 0
Open Issues: 0
pkg:composer/remp/remp-commons
Requires
- php: ^8.0
- gburtini/distributions: ^0.0.2
- guzzlehttp/guzzle: ^7.0
- dev-master
- 4.2.2
- 4.2.1
- 4.2.0
- 4.1.0
- 4.0.4
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0.0
- 3.11.0
- 3.10.1
- 3.10.0
- 3.9.2
- 3.9.0
- 3.8.0
- 3.7.1
- 3.7.0
- 3.6.0
- 3.5.1
- 3.5.0
- 3.4.0
- 3.3.1
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.0
- 2.2.0
- 2.1.0
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.2.0
- 1.1.0
- 1.0.0
- 0.34.1
- 0.34.0
- 0.32.4
- 0.31.0
- 0.30.1
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.1
- 0.27.0
- 0.26.0
This package is auto-updated.
Last update: 2025-10-13 08:44:20 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