https://github.com/baraja-core/combinations
Smart algorithms about combinations and generators.
https://github.com/baraja-core/combinations
combinations math php
Last synced: about 1 year ago
JSON representation
Smart algorithms about combinations and generators.
- Host: GitHub
- URL: https://github.com/baraja-core/combinations
- Owner: baraja-core
- License: mit
- Created: 2020-11-01T14:10:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-09-08T13:35:23.000Z (almost 4 years ago)
- Last Synced: 2025-03-05T09:46:20.756Z (over 1 year ago)
- Topics: combinations, math, php
- Language: PHP
- Size: 22.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Combinations
============
Smart algorithms about combinations and generators.
📦 Installation
---------------
It's best to use [Composer](https://getcomposer.org) for installation, and you can also find the package on
[Packagist](https://packagist.org/packages/baraja-core/combinations) and
[GitHub](https://github.com/baraja-core/combinations).
To install, simply use the command:
```shell
$ 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](https://github.com/baraja-core/template/blob/master/LICENSE) file for more details.