siestacat / bool-permutations
Permutate bool n times
Installs: 39
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/siestacat/bool-permutations
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