PHP Package: behat/gherkin

Behat's Gherkin library helps define executable specifications in plain language. It facilitates collaboration among stakeholders, testers, and developers.

Current Version: 4.14.0
Last Updated: 2025-05-23
PHP Requirement: 8.1.* || 8.2.* || 8.3.* || 8.4.*
Dependencies:
behat/behat
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Behat's Gherkin library provides a structured way to write acceptance criteria, making it easier to automate tests and ensure software quality. With Gherkin, you can create feature files with scenarios that can be executed by various testing frameworks.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 4.14.0

Download Download v4.14.0

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/behat/gherkin/4.14.0/loader.php';
require_once 'libs/behat/behat/3.22.0/loader.php';

use Behat\Gherkin\Node\FeatureNode;
use Behat\Gherkin\Node\ScenarioNode;

$obj = new FeatureNode();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.