coshi/variator
Generate all combinations of parameter values from a simple config array. Supports enums, integer ranges, callbacks/functions, and cross-referenced variations between fields. Iterate results as arrays keyed by parameter name for easy testing or data generation.
itertools).enum, int, callback) and doesn’t require advanced features (e.g., weighted randomness, nested structures).collect() + custom logic, or dedicated testing libraries like Faker).For Executives: "This open-source PHP package lets us programmatically generate all possible combinations of test data or configurations—cutting manual QA time by X% while reducing bugs in edge cases. For example, if we’re validating 3 feature flags with 2 states each, it’ll auto-generate 8 test scenarios. Low risk (MIT license), minimal dev lift, and reusable across APIs, CLI tools, and internal scripts."
For Engineering: *"A lightweight utility to replace ad-hoc loops for generating permutations. Supports enums, ranges, and callbacks (including context-aware logic). Tradeoff: No active maintenance, but trivial to fork/extend. Ideal for:
VariationsTreeBuilder + VariationFactory = exhaustive input matrices.foreach with a 10-line config block. Downside: 2016 codebase may need minor tweaks for PHP 8+."*How can I help you explore Laravel packages today?