PHP code example of crosseno / clues

1. Go to this page and download the library: Download crosseno/clues 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/ */

    

crosseno / clues example snippets


use Crosseno\Clues\Assignment\ClueAssignmentConstraints;
use Crosseno\Clues\Assignment\ClueSeed;
use Crosseno\Lexicon\Language\LanguageCode;

$result = $assigner->assign(
    $generatedCrossword,
    $clueCatalog,
    new ClueAssignmentConstraints(new LanguageCode('en'), targetDifficulty: 50),
    new ClueSeed('publication-2026-07-17'),
);

use Crosseno\Clues\Catalog\LexicalCatalogClueProvider;

$provider = new LexicalCatalogClueProvider(
    $runtimePack->catalog(),
    $runtimePack->metadata()->stableKeyAlgorithmVersion,
);