4 This is the php Gherkin parser for Behat. It comes bundled with more than 40 native languages
5 (see `i18n.php`) support & clean architecture.
7 [![Build Status](https://travis-ci.org/Behat/Gherkin.svg?branch=master)](https://travis-ci.org/Behat/Gherkin)
8 [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Behat/Gherkin/badges/quality-score.png?s=04d9d0237c89f4c45a94ba5304234db861dfd036)](https://scrutinizer-ci.com/g/Behat/Gherkin/)
9 [![Code Coverage](https://scrutinizer-ci.com/g/Behat/Gherkin/badges/coverage.png?s=204ca44800469d295b73d18c91011cb9d2dc99fc)](https://scrutinizer-ci.com/g/Behat/Gherkin/)
14 - Official Google Group is at [http://groups.google.com/group/behat](http://groups.google.com/group/behat)
15 - IRC channel on [#freenode](http://freenode.net/) is `#behat`
16 - [Note on Patches/Pull Requests](CONTRIBUTING.md)
24 $keywords = new Behat\Gherkin\Keywords\ArrayKeywords(array(
26 'feature' => 'Feature',
27 'background' => 'Background',
28 'scenario' => 'Scenario',
29 'scenario_outline' => 'Scenario Outline|Scenario Template',
30 'examples' => 'Examples|Scenarios',
38 'feature' => 'Ahoy matey!',
39 'background' => 'Yo-ho-ho',
40 'scenario' => 'Heave to',
41 'scenario_outline' => 'Shiver me timbers',
42 'examples' => 'Dead men tell no tales',
43 'given' => 'Gangway!',
45 'then' => 'Let go and haul',
50 $lexer = new Behat\Gherkin\Lexer($keywords);
51 $parser = new Behat\Gherkin\Parser($lexer);
53 $feature = $parser->parse(file_get_contents('some.feature'));
56 Installing Dependencies
57 -----------------------
60 $> curl http://getcomposer.org/installer | php
61 $> php composer.phar update
67 * Konstantin Kudryashov [everzet](http://github.com/everzet) [lead developer]
68 * Other [awesome developers](https://github.com/Behat/Gherkin/graphs/contributors)