Smart algorithms about combinations and generators.
It's best to use Composer for installation, and you can also find the package on Packagist and GitHub.
To install, simply use the command:
$ composer require baraja-core/combinations
You can use the package manually by creating an instance of the internal classes, or register a DIC extension to link the services directly to the Nette Framework.
Expected input:
{
'format': ['M', 'L'],
'date': ['2020', '2021']
}
sample output:
[
{
'format': 'M',
'date': '2020'
},
{
'format': 'M',
'date': '2021'
},
{
'format': 'L',
'date': '2020'
},
{
'format': 'L',
'date': '2021'
}
}
baraja-core/combinations
is licensed under the MIT license. See the LICENSE file for more details.