bentools/cartesian-product
Generate the cartesian product (all combinations) from a multidimensional array with a low-memory iterator. Supports dynamic values via closures that can inspect the partial combination. Iterate results or dump them to an array when needed.
A simple, low-memory footprint function to generate all combinations from a multi-dimensionnal array.
How can I help you explore Laravel packages today?