Skip to content

baraja-core/combinations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Combinations

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.