PHPackages                             datasift/behat-extension - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. datasift/behat-extension

ArchivedLibrary[Testing &amp; Quality](/categories/testing)

datasift/behat-extension
========================

Library to test end-to-end RESTful services using Behat

v5.1.1(8y ago)110.2kMITPHPPHP &gt;=5.4

Since Oct 30Pushed 8y ago34 watchersCompare

[ Source](https://github.com/datasift/ms-lib-testrest)[ Packagist](https://packagist.org/packages/datasift/behat-extension)[ Docs](https://github.com/datasift/ms-lib-testrest)[ RSS](/packages/datasift-behat-extension/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (24)Used By (0)

behat-extension
===============

[](#behat-extension)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e9d4c6b9de066fdfb4b7b67b8a7ff57c3447b77ab4cbe5f91c4646e632f708aa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64617461736966742f62656861742d657874656e73696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/datasift/behat-extension)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/ff60fb06e27353e9ad0cf7a41aaf2b61e56d40c2fd032b4a895c703340657ff9/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f64617461736966742f6d732d6c69622d74657374726573742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/datasift/ms-lib-testrest)[![Total Downloads](https://camo.githubusercontent.com/70b28c631d965a2cc0d8146c4d1a09bd5c1aa91e013d355b1a4f9294fdefef86/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64617461736966742f62656861742d657874656e73696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/datasift/behat-extension)

Description
-----------

[](#description)

This behat extension provides utility classes to test end-to-end RESTful services using behat.

Installation
------------

[](#installation)

Begin by installing this package through Composer. Edit your project's `composer.json` file to require `datasift/behat-extension`.

If you need support for Guzzle 4-5, use testrest-extension 4.x.

```
"require-dev": {
	"datasift/testrest-extension": "4.*"
}

```

If you need support for Guzzle 6, use testrest-extension 5.x.

```
"require-dev": {
	"datasift/testrest-extension": "5.*"
}

```

Next, update Composer from the Terminal:

```
composer update

```

Activate extension by specifying its class in your behat.yml:

```
# behat.yml
default:
  extensions:
      DataSift\BehatExtension:
          base_url: http://localhost:8080/

  suites:
      default:
          contexts:
            - 'DataSift\BehatExtension\Context\RestContext'
```

Database
--------

[](#database)

Supported Drivers

- mysql
- sqlite

Cache
-----

[](#cache)

Supported drivers

- memcached

Mountebank
----------

[](#mountebank)

File
----

[](#file)

Testing
-------

[](#testing)

To test the library itself, run the tests:

```
composer test

```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits And Developer Contacts
------------------------------

[](#credits-and-developer-contacts)

- [nicolaasuni](https://github.com/nicolaasuni)
- [nathanmac](https://github.com/nathanmac)
- [shwetsai](https://github.com/shwetsai)
- [mheap](https://github.com/mheap)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~38 days

Recently: every ~130 days

Total

23

Last Release

3000d ago

Major Versions

2.5.4 → v3.0.02016-04-14

v3.1.0 → v4.0.02016-05-19

v4.7.2 → 5.0.02017-08-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/e938d7304b579f1f6ba7895dcee6b7b95eeb7f7aed77be6e4bcce777eb9e0245?d=identicon)[nathanmac](/maintainers/nathanmac)

![](https://www.gravatar.com/avatar/7ab4859289fbfdce0a6a59676bbdabae783908a355d29383251e571ad38fc912?d=identicon)[choult](/maintainers/choult)

![](https://www.gravatar.com/avatar/a12d320566b358e14f24f10a52d0f74344434c46d0e27373f4ed0f83e7d8885b?d=identicon)[datasift](/maintainers/datasift)

---

Top Contributors

[![nathanmac](https://avatars.githubusercontent.com/u/3205902?v=4)](https://github.com/nathanmac "nathanmac (15 commits)")[![shwetsai](https://avatars.githubusercontent.com/u/6671459?v=4)](https://github.com/shwetsai "shwetsai (11 commits)")[![mheap](https://avatars.githubusercontent.com/u/59130?v=4)](https://github.com/mheap "mheap (6 commits)")[![nicolaasuni](https://avatars.githubusercontent.com/u/1186996?v=4)](https://github.com/nicolaasuni "nicolaasuni (5 commits)")[![jamesbloomer](https://avatars.githubusercontent.com/u/1221713?v=4)](https://github.com/jamesbloomer "jamesbloomer (4 commits)")[![VicLawDS](https://avatars.githubusercontent.com/u/13733726?v=4)](https://github.com/VicLawDS "VicLawDS (2 commits)")[![chrisyoung77](https://avatars.githubusercontent.com/u/13313845?v=4)](https://github.com/chrisyoung77 "chrisyoung77 (2 commits)")[![ollieparsley](https://avatars.githubusercontent.com/u/185771?v=4)](https://github.com/ollieparsley "ollieparsley (1 commits)")

---

Tags

testingapiBehatrestfulms-lib-testrestdatasifttestrest

### Embed Badge

![Health badge](/badges/datasift-behat-extension/health.svg)

```
[![Health](https://phpackages.com/badges/datasift-behat-extension/health.svg)](https://phpackages.com/packages/datasift-behat-extension)
```

###  Alternatives

[imbo/behat-api-extension

API extension for Behat

1082.5M9](/packages/imbo-behat-api-extension)[jonathanjfshaw/phpunitbehat

Use Behat from within PHPUnit.

2143.8k1](/packages/jonathanjfshaw-phpunitbehat)[kielabokkie/jsonapi-behat-extension

Behat extension for testing JSON APIs

1516.5k](/packages/kielabokkie-jsonapi-behat-extension)[teaandcode/behat-guzzle-extension

Behat API extension using Guzzle Service Descriptions to functionally test API endpoints

1017.7k](/packages/teaandcode-behat-guzzle-extension)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
