We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc56982 commit ab5c886Copy full SHA for ab5c886
1 file changed
README.md
@@ -35,6 +35,18 @@ $notation = new FenNotation('rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq
35
echo $notation->toString(); // or cast it: (string)$notation
36
```
37
38
+### Validating a FEN
39
+
40
+```php
41
+use ChessZebra\ForsythEdwardsNotation\Validator;
42
43
+$validator = new Validator();
44
45
+$validationResult = $validator->validate('rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1');
46
47
+// $validationResult is a ValidationResult constant.
48
+```
49
50
## Contributing
51
52
Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.
0 commit comments