baraja-core / combinations
Smart algorithms about combinations and generators.
Installs: 45 768
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^8.0
Requires (Dev)
- phpstan/phpstan: ^0.12.74
- phpstan/phpstan-nette: ^0.12.14
- roave/security-advisories: dev-master
- tracy/tracy: ^2.8
This package is auto-updated.
Last update: 2024-12-08 18:48:01 UTC
README
Smart algorithms about combinations and generators.
📦 Installation
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.
How to use
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'
}
}
📄 License
baraja-core/combinations
is licensed under the MIT license. See the LICENSE file for more details.