Download the PHP package portavice/permutation without Composer
On this page you can find all versions of the php package portavice/permutation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download portavice/permutation
More information about portavice/permutation
Files in portavice/permutation
Download portavice/permutation
More information about portavice/permutation
Files in portavice/permutation
Vendor portavice
Package permutation
Short Description Generating permutations of arrays normal and recursive
License MIT
Homepage https://portavice.de
Package permutation
Short Description Generating permutations of arrays normal and recursive
License MIT
Homepage https://portavice.de
Please rate this library. Is it a good library?
Informations about the package permutation
Permutation
This is a simple permutation library for PHP.
It can be used to generate all possible permutations of a given array.
It can also be used to generate all possible permutations of a given array recursively.
Installation
To install this package with Composer:
To install it, just add the following to your composer.json
file:
Methods
Method | Static | Recursive |
---|---|---|
permutate() |
No | No |
getPermutations(array $input, bool $withSort = false) |
Yes | No |
getPermutationsWithCallback(array $input, callable $callback, bool $unsetAfterCall = false, mixed ...$args) |
Yes | No |
permutateRecursive() |
No | Yes |
getPermutationsRecursive(array $input, bool $withSort = false) |
Yes | Yes |
getPermutationsRecursiveWithCallback(array $input, callable $callback, bool $unsetAfterCall = false, mixed ...$args) |
Yes | Yes |
getResult(bool $sorted = false) |
No | |
setOffset(int $offset) |
No | |
setLimit(int $limit) |
No | |
setCallback(callable $callback, bool $unsetAfterCall = false, mixed ...$args) |
No |
Usage
License
This library is licensed under the MIT license.
Author
This library was written by Shaun Lüdeke for Portavice GmbH.
Development
How to develop
- Run
composer install
to install the dependencies for PHP. - Run
composer test
to run all PHPUnit tests. - Run
composer cs
to check compliance with the code style andcomposer csfix
to fix code style violations before every commit.
Code Style
PHP code MUST follow PSR-12 specification.
We use PHP_CodeSniffer for the PHP code style check.
All versions of permutation with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
The package portavice/permutation contains the following files
Loading the files please wait ....