PHPackages                             babdev/phpspec-skip-example-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. babdev/phpspec-skip-example-extension

AbandonedArchivedPhpspec-extension[Testing &amp; Quality](/categories/testing)

babdev/phpspec-skip-example-extension
=====================================

Skip your PhpSpec examples through annotations

v1.0.0(4y ago)0228MITPHPPHP ^7.4 || ^8.0

Since Nov 6Pushed 4y agoCompare

[ Source](https://github.com/BabDev/PhpSpecSkipExampleExtension)[ Packagist](https://packagist.org/packages/babdev/phpspec-skip-example-extension)[ RSS](/packages/babdev-phpspec-skip-example-extension/feed)WikiDiscussions 1.x Synced 1mo ago

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

PhpSpec Skip Example Extension
==============================

[](#phpspec-skip-example-extension)

This PhpSpec extension allows to skip example through user-friendly annotations. [![Run Tests](https://github.com/BabDev/PhpSpecSkipExampleExtension/actions/workflows/run-tests.yml/badge.svg?branch=1.x)](https://github.com/BabDev/PhpSpecSkipExampleExtension/actions/workflows/run-tests.yml)

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

[](#installation)

Once you have installed PhpSpec (following the documentation on [the official website](http://www.phpspec.net)), you can install this extension using the following [Composer](https://getcomposer.org/) command:

```
composer require babdev/phpspec-skip-example-extension
```

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

[](#configuration)

You can now activate the extension by creating a `phpspec.yml` file at the root of your project:

```
extensions:
    Akeneo\SkipExampleExtension: ~
```

Usage
-----

[](#usage)

### @require

[](#require-)

The `@require` annotation can be used on the spec class or any example method. If a requirement is missing from the spec, all examples will be skipped. If a requirement is missing from an example, only that example will be skipped.

```
/**
 * @require Vendor\Builder\ToolInterface
 */
class BridgeBuilderSpec extends ObjectBehavior
{
    // Will be skipped if the Vendor\Builder\ToolInterface interface does not exist
    function it_builds_a_bridge()
    {
    }

    /**
     * @require Vendor\Builder\ConcreteTruck
     */
    // Will be skipped if the Vendor\Builder\ToolInterface interface or Vendor\Builder\ConcreteTruck class does not exist
    function it_builds_the_road()
    {
    }

    //...
}
```

Contributions
-------------

[](#contributions)

Feel free to contribute to this extension if you find some interesting ways to improve it!

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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 ~19 days

Total

2

Last Release

1635d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/52468993b62b781c3c94028d5626d35fd53297482813af84db6e96e81ae67283?d=identicon)[mbabker](/maintainers/mbabker)

---

Top Contributors

[![nidup](https://avatars.githubusercontent.com/u/2104359?v=4)](https://github.com/nidup "nidup (21 commits)")[![gquemener](https://avatars.githubusercontent.com/u/668604?v=4)](https://github.com/gquemener "gquemener (10 commits)")[![mbabker](https://avatars.githubusercontent.com/u/368545?v=4)](https://github.com/mbabker "mbabker (9 commits)")[![pamil](https://avatars.githubusercontent.com/u/1897953?v=4)](https://github.com/pamil "pamil (3 commits)")[![BitOne](https://avatars.githubusercontent.com/u/2151567?v=4)](https://github.com/BitOne "BitOne (2 commits)")[![damien-carcel](https://avatars.githubusercontent.com/u/5039018?v=4)](https://github.com/damien-carcel "damien-carcel (2 commits)")[![phaseinducer](https://avatars.githubusercontent.com/u/659491?v=4)](https://github.com/phaseinducer "phaseinducer (2 commits)")[![stloyd](https://avatars.githubusercontent.com/u/67402?v=4)](https://github.com/stloyd "stloyd (1 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (1 commits)")

### Embed Badge

![Health badge](/badges/babdev-phpspec-skip-example-extension/health.svg)

```
[![Health](https://phpackages.com/badges/babdev-phpspec-skip-example-extension/health.svg)](https://phpackages.com/packages/babdev-phpspec-skip-example-extension)
```

###  Alternatives

[bossa/phpspec2-expect

Helper that decorates any SUS with a phpspec lazy object wrapper

741.8M87](/packages/bossa-phpspec2-expect)[benconstable/phpspec-laravel

Test your Laravel applications with PhpSpec

144347.1k15](/packages/benconstable-phpspec-laravel)[akeneo/phpspec-skip-example-extension

Skip your PhpSpec examples through annotations

34978.5k11](/packages/akeneo-phpspec-skip-example-extension)[friends-of-phpspec/phpspec-code-coverage

Generate Code Coverage reports for PhpSpec tests

202.6M125](/packages/friends-of-phpspec-phpspec-code-coverage)[ciaranmcnulty/phpspec-typehintedmethods

Extension for phpspec to enhance generated methods

3089.3k31](/packages/ciaranmcnulty-phpspec-typehintedmethods)[rmiller/behat-spec

Behat and PhpSpec integration

5321.7k8](/packages/rmiller-behat-spec)

PHPackages © 2026

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