PHP code example of roliod / texas-holdem-up-validation-rules

1. Go to this page and download the library: Download roliod/texas-holdem-up-validation-rules library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

roliod / texas-holdem-up-validation-rules example snippets



declare(strict_types=1);

$evaluator = \Roliod\TexasHUPoker\Evaluate(PATH_TO_TXT_FILE);
$rankingList = $evaluator->rank();

print_r($rankingList);