{"id":19606862,"url":"https://github.com/chesszebra/forsyth-edwards-notation","last_synced_at":"2025-10-11T18:10:28.173Z","repository":{"id":62501588,"uuid":"250728674","full_name":"chesszebra/forsyth-edwards-notation","owner":"chesszebra","description":"This library provides support for reading and writing chess boards in the Forsyth-Edwards notation.","archived":false,"fork":false,"pushed_at":"2021-04-01T21:57:57.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-30T06:33:59.906Z","etag":null,"topics":["board","chess","chessboard","fen","forsyth-edwards","forsyth-edwards-notation","php","reader","writer"],"latest_commit_sha":null,"homepage":"https://chesszebra.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chesszebra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-28T06:22:20.000Z","updated_at":"2024-03-03T08:30:49.000Z","dependencies_parsed_at":"2022-11-02T12:01:47.909Z","dependency_job_id":null,"html_url":"https://github.com/chesszebra/forsyth-edwards-notation","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/chesszebra/forsyth-edwards-notation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chesszebra%2Fforsyth-edwards-notation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chesszebra%2Fforsyth-edwards-notation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chesszebra%2Fforsyth-edwards-notation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chesszebra%2Fforsyth-edwards-notation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chesszebra","download_url":"https://codeload.github.com/chesszebra/forsyth-edwards-notation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chesszebra%2Fforsyth-edwards-notation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008298,"owners_count":26084428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["board","chess","chessboard","fen","forsyth-edwards","forsyth-edwards-notation","php","reader","writer"],"created_at":"2024-11-11T10:07:26.209Z","updated_at":"2025-10-11T18:10:28.152Z","avatar_url":"https://github.com/chesszebra.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# forsyth-edwards-notation\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]](LICENSE.md)\n[![Build Status][ico-travis]][link-travis]\n[![Total Downloads][ico-downloads]][link-downloads]\n\nThis library provides support for reading and writing chess boards in the Forsyth-Edwards notation.\n\n## Installation\n\nVia composer\n\n```\ncomposer require chesszebra/forsyth-edwards-notation\n```\n\n## Usage\n\n### Parse a FEN\n\n```php\nuse ChessZebra\\ForsythEdwardsNotation\\FenNotation;\n\n$notation = new FenNotation('rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1');\n```\n\n### Convert a FEN to a string\n\n```php\nuse ChessZebra\\ForsythEdwardsNotation\\FenNotation;\n\n$notation = new FenNotation('rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1');\n\necho $notation-\u003etoString(); // or cast it: (string)$notation\n```\n\n### Validating a FEN\n\n```php\nuse ChessZebra\\ForsythEdwardsNotation\\Validator;\n\n$validator = new Validator();\n\n$validationResult = $validator-\u003evalidate('rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1');\n\n// $validationResult is a ValidationResult constant. \n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.\n\n## Security\n\nIf you discover any security related issues, please report them via [HackerOne][link-hackerone].\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/chesszebra/forsyth-edwards-notation.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-travis]: https://img.shields.io/travis/chesszebra/forsyth-edwards-notation/master.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/chesszebra/forsyth-edwards-notation.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/chesszebra/forsyth-edwards-notation\n[link-travis]: https://travis-ci.org/chesszebra/forsyth-edwards-notation\n[link-downloads]: https://packagist.org/packages/chesszebra/forsyth-edwards-notation\n[link-contributors]: ../../contributors\n[link-hackerone]: https://hackerone.com/chesszebra\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchesszebra%2Fforsyth-edwards-notation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchesszebra%2Fforsyth-edwards-notation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchesszebra%2Fforsyth-edwards-notation/lists"}