behat/gherkin
Behat's PHP Gherkin parser for reading .feature files, with support for 40+ native languages and a clean, extensible architecture. Parse features, scenarios, backgrounds, outlines, and examples into structured objects for your test suite.
.feature files, this package removes the need to build a parser. It provides a lexer, parser, node model, loaders, caching, and tag/line filters under MIT. Parsing is commodity infrastructure; differentiate on workflow, reporting, and integrations instead.GHERKIN_32 and GHERKIN_42 compatibility modes, add Rule node support, and align with cucumber/gherkin parity tests. New projects should plan for GHERKIN_42; LEGACY remains default but is not recommended for new work.ParserInterface and DialectProviderInterface APIs, deprecations of FilterInterface/SimpleFilter, and compatibility modes create a clear migration path—but require an owner and version-pinning strategy.LEGACY mode and deprecated filter APIs.ParserInterface, dialect providers, loaders, caching, tag/line filters, Rule support, and cucumber parity tests. Use GHERKIN_42 for new work, pin versions, avoid deprecated FilterInterface/SimpleFilter APIs, and add regression tests around feature-file parsing.LEGACY, reduced CI selection time, and fewer malformed feature files reaching review.How can I help you explore Laravel packages today?