libpairtwo/dist
2019-06-19 22:01:50 +02:00
..
boilerplate.php Added variable fileformat 2019-06-19 22:01:50 +02:00
composer-dist-installed.json Created a greater libpairtwo distribution 2019-06-18 15:07:22 +02:00
composer-dist.json Created a greater libpairtwo distribution 2019-06-18 15:07:22 +02:00
readme.md Updated dist readme 2019-06-19 22:01:20 +02:00

libpairtwo

This distribution is a good start to use libpairtwo if you don't have knowledge of composer or dependency management.

How to use this distribution?

The file boilerplate.php is the one you'll probably want to work with. You'll want to point your browser to this file. It contains some initializations where the most important one is the variable $pairingfile. You'll want to set this to existing pairing file. The other variable ($pairingfileformat) is a variable that defines the format of the above pairing file. For now only Pairtwo-6 and Pairtwo-5 are available. In the future more formats will become available.

Below the comments you'll find some example code. This code is only a aggregation of several fields that are read out. If you need any modifications like putting the rankings in a table or you want to just write it to a file, go ahead it's all yours.

What if I need other dependencies?

If you started to ask yourself this question, you'll probably know what composer and dependency management is? Therefore this section will become a little more advanced than the ones above. It's actually very simple, just add them like you normally would do.

$ composer require phpoffice/phpspreadsheet

If you already have a project with other dependencies you'll only want to copy the boilerplate.php file and run.

$ composer require jeroened/libpairtwo