siestacat / bool-permutations
Permutate bool n times
1.0.0
2023-12-25 01:38 UTC
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9 || ^10
README
Install:
composer require siestacat/bool-permutations
Usage:
use Siestacat\BoolPermutations\Permutate;
print_r(Permutate::get(1));
OUTPUT:
Array
(
[0] => Array
(
[0] =>
)
[1] => Array
(
[0] => 1
)
)
print_r(Permutate::get(2));
Array
(
[0] => Array
(
[0] =>
[1] =>
)
[1] => Array
(
[0] =>
[1] => 1
)
[2] => Array
(
[0] => 1
[1] =>
)
[3] => Array
(
[0] => 1
[1] => 1
)
)
Tests:
git clone https://github.com/SiestaCat/php-bool-permutations.git
cd php-bool-permutations
composer install
composer run-script test