baraja-core/combinations

There is no license information available for the latest version (v2.0.0) of this package.

Smart algorithms about combinations and generators.

v2.0.0 2021-02-09 11:04 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.