pierrelemee / mots-fleches-parser
MFL file parser
Installs: 32
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 2
pkg:composer/pierrelemee/mots-fleches-parser
Requires
- php: >=7.1
- ext-json: *
Requires (Dev)
- phpunit/phpunit: 5.5.4
This package is auto-updated.
Last update: 2025-09-26 08:03:34 UTC
README
mots-fleches-parser
A simple but handy library to help you parse mots fléchés files, in MFL or MFJ format.
Example:
use PierreLemee\MotsFleches\GridParser; $parser = new GridParser(); $grid = $parser->parseFile($file = __DIR__ . '/tests/PierreLemee/MflParser/grids/grid_ok.mfj'); echo "Read grid ({$grid->getWidth()}x{$grid->getHeight()}) from file {$file}" . PHP_EOL; foreach ($grid->getWords() as $word) { echo "Definition at ({$word->getX()}:{$word->getY()}) with direction {$word->getDirection()}: {$word->getDefinition()} => {$word->getContent()}" . PHP_EOL; }
Note: for MFJ files, the node
binary is required on the system host