Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Gherkin Laravel Package

behat/gherkin

behat/gherkin is a PHP library for parsing the Gherkin language used in BDD. Read and tokenize feature files, build an AST, and integrate with Behat or other test runners to execute human-readable scenarios in your test suite.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enables rapid development of custom BDD tooling (e.g., test runners, linters, CI/CD integrations) by eliminating the need to build a Gherkin parser from scratch, accelerating time-to-market for test automation features.
  • Supports strategic BDD adoption by providing a standardized, reliable foundation for parsing and validating .feature files, ensuring consistency across teams and reducing manual review overhead.
  • In build-vs-buy scenarios, it’s a clear "buy" for Gherkin parsing—battle-tested (as Behat’s core), MIT-licensed, and proven in production—freeing engineering resources for higher-value work.
  • Facilitates roadmap flexibility for multi-language dialect support (e.g., non-English Gherkin) and custom AST transformations, enabling tailored solutions for global teams or specialized reporting needs.

When to Consider This Package

  • When your team uses BDD and needs programmatic access to Gherkin syntax (e.g., building custom runners, IDE plugins, or validation tools for .feature files).
  • When you require fine-grained control over parsing (e.g., dialect customization, location metadata for error reporting) beyond what standard BDD frameworks offer.
  • When building PHP-based tooling for test automation that integrates with existing infrastructure (e.g., CI pipelines, internal dashboards).
  • Avoid if:
    • You only need a full BDD framework (use Behat directly instead).
    • Your stack is non-PHP (e.g., JavaScript/Python projects should use language-specific Gherkin parsers).
    • Your team doesn’t practice BDD or has no need to process .feature files programmatically.

How to Pitch

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport