{"id":15031218,"url":"https://github.com/behat/gherkin","last_synced_at":"2025-05-12T20:51:41.554Z","repository":{"id":1281862,"uuid":"1221384","full_name":"Behat/Gherkin","owner":"Behat","description":"Gherkin parser, written in PHP for Behat project","archived":false,"fork":false,"pushed_at":"2025-04-15T18:19:15.000Z","size":1117,"stargazers_count":1051,"open_issues_count":27,"forks_count":94,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-22T06:19:39.623Z","etag":null,"topics":["behat","dsl","gherkin","gherkin-parser","php"],"latest_commit_sha":null,"homepage":"","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/Behat.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2011-01-05T00:38:11.000Z","updated_at":"2025-04-15T18:19:19.000Z","dependencies_parsed_at":"2024-06-18T10:42:42.527Z","dependency_job_id":"4bd63c2a-60ba-46b5-a806-a93f20e4a095","html_url":"https://github.com/Behat/Gherkin","commit_stats":{"total_commits":505,"total_committers":46,"mean_commits":"10.978260869565217","dds":0.3722772277227723,"last_synced_commit":"70cf6bf6b87ada9710e9f15584769d625bb19c82"},"previous_names":[],"tags_count":76,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Behat%2FGherkin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Behat%2FGherkin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Behat%2FGherkin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Behat%2FGherkin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Behat","download_url":"https://codeload.github.com/Behat/Gherkin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250479636,"owners_count":21437396,"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":["behat","dsl","gherkin","gherkin-parser","php"],"created_at":"2024-09-24T20:15:11.177Z","updated_at":"2025-04-23T17:27:39.076Z","avatar_url":"https://github.com/Behat.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Behat Gherkin Parser\n\nThis is the php Gherkin parser for Behat. It comes bundled with more than 40 native languages (see `i18n.php`) support\nand clean architecture.\n\n## Useful Links\n\n- [Behat Site](https://behat.org)\n- [Note on Patches/Pull Requests](CONTRIBUTING.md)\n\n## Usage Example\n\n```php\n\u003c?php\n\n$keywords = new Behat\\Gherkin\\Keywords\\ArrayKeywords(array(\n    'en' =\u003e array(\n        'feature'          =\u003e 'Feature',\n        'background'       =\u003e 'Background',\n        'scenario'         =\u003e 'Scenario',\n        'scenario_outline' =\u003e 'Scenario Outline|Scenario Template',\n        'examples'         =\u003e 'Examples|Scenarios',\n        'given'            =\u003e 'Given',\n        'when'             =\u003e 'When',\n        'then'             =\u003e 'Then',\n        'and'              =\u003e 'And',\n        'but'              =\u003e 'But'\n    ),\n    'en-pirate' =\u003e array(\n        'feature'          =\u003e 'Ahoy matey!',\n        'background'       =\u003e 'Yo-ho-ho',\n        'scenario'         =\u003e 'Heave to',\n        'scenario_outline' =\u003e 'Shiver me timbers',\n        'examples'         =\u003e 'Dead men tell no tales',\n        'given'            =\u003e 'Gangway!',\n        'when'             =\u003e 'Blimey!',\n        'then'             =\u003e 'Let go and haul',\n        'and'              =\u003e 'Aye',\n        'but'              =\u003e 'Avast!'\n    )\n));\n$lexer  = new Behat\\Gherkin\\Lexer($keywords);\n$parser = new Behat\\Gherkin\\Parser($lexer);\n\n$feature = $parser-\u003eparse(file_get_contents('some.feature'));\n```\n\n## Installing Dependencies\n\n```shell\ncurl https://getcomposer.org/installer | php\nphp composer.phar update\n```\n\n## Contributors\n\n* Konstantin Kudryashov [everzet](http://github.com/everzet) [lead developer]\n* Other [awesome developers](https://github.com/Behat/Gherkin/graphs/contributors)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbehat%2Fgherkin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbehat%2Fgherkin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbehat%2Fgherkin/lists"}