PHPackages                             namshi/voyeur-bundle - 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. namshi/voyeur-bundle

ActiveSymfony-bundle[Testing &amp; Quality](/categories/testing)

namshi/voyeur-bundle
====================

A voyeur, but this one is decent enough.

1.0.0(13y ago)321514MITPHP

Since Mar 11Pushed 13y ago8 watchersCompare

[ Source](https://github.com/namshi/NamshiVoyeurBundle)[ Packagist](https://packagist.org/packages/namshi/voyeur-bundle)[ RSS](/packages/namshi-voyeur-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

NAMSHI | VoyeurBundle
---------------------

[](#namshi--voyeurbundle)

This bundle is made to ease testing and comparing frontend changes in your applications.

With it, you can first take screenshots of your webpages and then compare them.

A common scenario is to check differences between one particular version of your application and another one (for example, `master` and `develop`).

Voyeur
------

[](#voyeur)

In order to start taking screenshots, you will just need to configure **services** and **parameters**:

```
parameters:
    namshi_voyeur:
      browsers:
        - firefox
        - safari
        - chrome
      urls:
        homepage:     "/"
        new-arrivals: "mail"
      shots_dir: "/Users/xx/Downloads/screenshots"
      base_url:       "http://google.com/"
```

You will have to tell the bundle with which browsers you want to take screenshots, at which URLs, a base URL and a directory where the screenshots will be saved.

Then, configure the services:

```
services:
    safari:
        class:  Behat\Mink\Driver\Selenium2Driver
        calls:
          - [start]
        arguments:
          browser: safari
    firefox:
        class:  Behat\Mink\Driver\Selenium2Driver
        calls:
          - [start]
    chrome:
        class:  Behat\Mink\Driver\Selenium2Driver
        calls:
          - [start]
        arguments:
          browser: chrome
```

which are basically instances of the Selenium2 driver, which will be used by Voyeur.

Last step is to launch Voyeur from the command line:

```
php app/console namshi:voyeur
```

Voyeur:diff
-----------

[](#voyeurdiff)

To generate the diffs between different screenshots captured by Voyeur, just trigger the command:

```
php app/console namshi:voyeur:diff path/to/first/screenshots path/to/other/screenshots
```

You can also specify the path to save the diffs at:

```
--diff-dir=path/to/diffs
```

otherwise they will be saved at `path/to/other/screenshots`.

Testing different websites
--------------------------

[](#testing-different-websites)

You can optionally specify different configurations:

```
parameters:
    namshi_voyeur:
      browsers:
        - firefox
      urls:
        homepage:     "/"
        new-arrivals: "mail"
      shots_dir: "/Users/xx/Downloads/screenshots"
      base_url:       "http://google.com/"
    voyeur_ae:
      base_url:       "http://google.ae/"
    voyeur_de:
      base_url:       "http://google.de/"
    voyeur_it:
      base_url:       "http://google.it/"
```

and then run Voyeur with the specified configuration:

```
php app/console namshi:voyeur --config=voyeur_de
```

The example above will run Voyeur on `google.de`, instead of `.com`.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

4859d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/328420?v=4)[Alex Nadalin](/maintainers/odino)[@odino](https://github.com/odino)

![](https://www.gravatar.com/avatar/32972fcb000055e575bfa277b2770e288f6d1a2c9ec42bdd9e77892a2d30651b?d=identicon)[namshi](/maintainers/namshi)

---

Top Contributors

[![odino](https://avatars.githubusercontent.com/u/328420?v=4)](https://github.com/odino "odino (9 commits)")

---

Tags

symfony2 behat mink screenshot

### Embed Badge

![Health badge](/badges/namshi-voyeur-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/namshi-voyeur-bundle/health.svg)](https://phpackages.com/packages/namshi-voyeur-bundle)
```

###  Alternatives

[drupal/drupal-extension

Drupal extension for Behat

21115.5M166](/packages/drupal-drupal-extension)[drevops/behat-steps

Collection of steps for Behat

27409.9k4](/packages/drevops-behat-steps)[ezsystems/behatbundle

Behat bundle for help testing eZ Bundles and projects

44865.0k17](/packages/ezsystems-behatbundle)[genesis/behat-fail-aid

Get more out of your test suite by getting it to work with you when tests fail. Screenshots and more. Works with Goutte and MinkExtension.

271.6M20](/packages/genesis-behat-fail-aid)[aik099/phpunit-mink

Library for using Mink in PHPUnit tests. Supports session sharing between tests in a test case.

71137.1k1](/packages/aik099-phpunit-mink)[devinci/devinci-behat-extension

Provides extra behat goodies.

17596.9k](/packages/devinci-devinci-behat-extension)

PHPackages © 2026

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