christhompsontldr/laravel-rng
Deterministic, stream-isolated RNG for Laravel built on PHP’s Random extension. Seed once to get reproducible sequences across named streams (e.g., seeding vs combat). Includes helpers for int ranges, chance, and pick, plus optional roll logging with audit command.
Randomizer directly; on older PHP/Laravel versions; for simple non-deterministic random needs where streams aren't required; or if zero dependencies are mandatory (though package size is trivial at <100 LOC).For executives: This package gives us a battle-tested solution for deterministic randomness in games and simulations – eliminating hard-to-reproduce bugs and accelerating development of player-facing features like replayable combat systems. It’s a 5-minute integration with zero runtime overhead, directly supporting our roadmap for reliable game mechanics while reducing engineering toil.
For engineering: It’s a lightweight, well-documented tool that solves stream-isolated deterministic RNG out-of-the-box with Laravel integration. We get artisan commands for auditing rolls, seamless test seed overrides, and guaranteed isolation between game systems (e.g., combat vs. loot) – all without reinventing the wheel on a problem we’d otherwise spend weeks debugging.
How can I help you explore Laravel packages today?