{"id":19606867,"url":"https://github.com/chesszebra/pgn-splitter","last_synced_at":"2025-04-27T19:33:04.820Z","repository":{"id":62501593,"uuid":"102264958","full_name":"chesszebra/pgn-splitter","owner":"chesszebra","description":"A PHP library to split PGN files into chunks per game.","archived":false,"fork":false,"pushed_at":"2019-11-23T09:42:44.000Z","size":16,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T03:02:02.934Z","etag":null,"topics":["chess","chess-game","pgn","php","portable-game-notation","split","splitter","splitting"],"latest_commit_sha":null,"homepage":null,"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":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-03T13:01:25.000Z","updated_at":"2024-03-03T08:30:20.000Z","dependencies_parsed_at":"2022-11-02T12:01:13.015Z","dependency_job_id":null,"html_url":"https://github.com/chesszebra/pgn-splitter","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chesszebra%2Fpgn-splitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chesszebra%2Fpgn-splitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chesszebra%2Fpgn-splitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chesszebra%2Fpgn-splitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chesszebra","download_url":"https://codeload.github.com/chesszebra/pgn-splitter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251196422,"owners_count":21550950,"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","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":["chess","chess-game","pgn","php","portable-game-notation","split","splitter","splitting"],"created_at":"2024-11-11T10:07:27.654Z","updated_at":"2025-04-27T19:33:04.613Z","avatar_url":"https://github.com/chesszebra.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pgn-splitter\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[![Coverage Status][ico-scrutinizer]][link-scrutinizer]\n[![Quality Score][ico-code-quality]][link-code-quality]\n[![Total Downloads][ico-downloads]][link-downloads]\n\nA PHP library to split PGN files into chunks per game or per section.\n\n## Installation\n\nVia composer:\n\n```bash\ncomposer require chesszebra/pgn-splitter\n```\n\n## Usage\n\nSplit a stream per game:\n\n```php\nuse ChessZebra\\Chess\\Pgn\\Splitter;\n\n$stream = fopen('my-games.pgn', 'r');\n\n$splitter = new Splitter($stream, Splitter::SPLIT_GAMES);\n$splitter-\u003esplit(function(string $buffer) {\n    echo $buffer;\n});\n```\n\nOr split a stream per chunk (tags and moves chunks):\n\n```php\nuse ChessZebra\\Chess\\Pgn\\Splitter;\n\n$stream = fopen('my-games.pgn', 'r');\n\n$splitter = new Splitter($stream, Splitter::SPLIT_CHUNKS);\n$splitter-\u003esplit(function(string $buffer) {\n    echo $buffer;\n});\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/pgn-splitter.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/pgn-splitter/master.svg?style=flat-square\n[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/chesszebra/pgn-splitter.svg?style=flat-square\n[ico-code-quality]: https://img.shields.io/scrutinizer/g/chesszebra/pgn-splitter.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/chesszebra/pgn-splitter.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/chesszebra/pgn-splitter\n[link-travis]: https://travis-ci.org/chesszebra/pgn-splitter\n[link-scrutinizer]: https://scrutinizer-ci.com/g/chesszebra/pgn-splitter/code-structure\n[link-code-quality]: https://scrutinizer-ci.com/g/chesszebra/pgn-splitter\n[link-downloads]: https://packagist.org/packages/chesszebra/pgn-splitter\n[link-contributors]: ../../contributors\n[link-hackerone]: https://hackerone.com/chesszebra\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchesszebra%2Fpgn-splitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchesszebra%2Fpgn-splitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchesszebra%2Fpgn-splitter/lists"}