PHPackages                             bex/behat-screenshot-image-driver-img42 - 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. bex/behat-screenshot-image-driver-img42

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

bex/behat-screenshot-image-driver-img42
=======================================

img42.com image driver for bex/behat-screenshot behat extension

1.0.0(10y ago)388.6k1MITPHPPHP &gt;=5.4

Since Nov 13Pushed 10y agoCompare

[ Source](https://github.com/tkotosz/behat-screenshot-image-driver-img42)[ Packagist](https://packagist.org/packages/bex/behat-screenshot-image-driver-img42)[ Docs](https://github.com/tkotosz/behat-screenshot-image-driver-img42)[ RSS](/packages/bex-behat-screenshot-image-driver-img42/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

ImageDriver-Img42 for Behat-ScreenshotExtension
===============================================

[](#imagedriver-img42-for-behat-screenshotextension)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/3cede8c7b5f012648ffa6da4b01b3b717749a8a497599744b35c415312e59ea0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f746b6f746f737a2f62656861742d73637265656e73686f742d696d6167652d6472697665722d696d6734322f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/tkotosz/behat-screenshot-image-driver-img42/?branch=master)[![Build Status](https://camo.githubusercontent.com/44ac2637734e10f979b11fda45913179eee6c88fdf13b8b085c78567573d5bae/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f746b6f746f737a2f62656861742d73637265656e73686f742d696d6167652d6472697665722d696d6734322f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/tkotosz/behat-screenshot-image-driver-img42/build-status/master)[![Build Status](https://camo.githubusercontent.com/10248ed2abcee7c53eeac64f0831511c265549c0c441fe6bd43b548beb9e1f3a/68747470733a2f2f7472617669732d63692e6f72672f746b6f746f737a2f62656861742d73637265656e73686f742d696d6167652d6472697665722d696d6734322e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tkotosz/behat-screenshot-image-driver-img42)

This package is an image driver for the [bex/behat-screenshot](https://github.com/elvetemedve/behat-screenshot) behat extension which can upload the screenshot to [Img42](http://img42.com) and print the url of the uploaded image.

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

[](#installation)

Install by adding to your `composer.json`:

```
composer require --dev bex/behat-screenshot-image-driver-img42
```

Configuration
-------------

[](#configuration)

Enable the image driver in the Behat-ScreenshotExtension's config in `behat.yml` like this:

```
default:
  extensions:
    Bex\Behat\ScreenshotExtension:
      active_image_drivers: img42
```

The uploaded image will live for 10 minutes.

Usage
-----

[](#usage)

When you run behat and a step fails then the Behat-ScreenshotExtension will automatically take the screenshot and will pass it to the image driver, which will upload it and returns the URL of the uploaded image. So you will see something like this:

```
  Scenario:                           # features/feature.feature:2
    Given I have a step               # FeatureContext::passingStep()
    When I have a failing step        # FeatureContext::failingStep()
      Error (Exception)
Screenshot has been taken. Open image at https://img42.com/idoftheimage
    Then I should have a skipped step # FeatureContext::skippedStep()
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

3882d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4903365?v=4)[Tibor Kotosz](/maintainers/tkotosz)[@tkotosz](https://github.com/tkotosz)

---

Tags

BDDTDDBehatbehat-screenshot

### Embed Badge

![Health badge](/badges/bex-behat-screenshot-image-driver-img42/health.svg)

```
[![Health](https://phpackages.com/badges/bex-behat-screenshot-image-driver-img42/health.svg)](https://phpackages.com/packages/bex-behat-screenshot-image-driver-img42)
```

###  Alternatives

[ezsystems/behat-screenshot-image-driver-cloudinary

Cloudinary image driver for bex/behat-screenshot behat extension

281.0M17](/packages/ezsystems-behat-screenshot-image-driver-cloudinary)[polishsymfonycommunity/symfony-mocker-container

Provides base Symfony dependency injection container enabling service mocking.

1448.2M257](/packages/polishsymfonycommunity-symfony-mocker-container)[bex/behat-extension-driver-locator

Driver locator tool for behat extensions

385.3M4](/packages/bex-behat-extension-driver-locator)[ciaranmcnulty/behat-stepthroughextension

Extension for behat to help debug failing scenarios

621.7M5](/packages/ciaranmcnulty-behat-stepthroughextension)[dvdoug/behat-code-coverage

Generate Code Coverage reports for Behat tests

623.9M50](/packages/dvdoug-behat-code-coverage)[sensiolabs/behat-page-object-extension

Page object extension for Behat

1166.6M28](/packages/sensiolabs-behat-page-object-extension)

PHPackages © 2026

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