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

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

pamil/phpspec-skip-example-extension
====================================

Skip your PhpSpec examples through annotations

v4.2.0(5y ago)0193.6k↑68.6%MITPHPPHP ^7.3 || ^8.0

Since Mar 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/pamil/PhpSpecSkipExampleExtension)[ Packagist](https://packagist.org/packages/pamil/phpspec-skip-example-extension)[ RSS](/packages/pamil-phpspec-skip-example-extension/feed)WikiDiscussions master Synced 3d ago

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

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

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

This PhpSpec extension allows to skip example through user-friendly annotations. [![Build Status](https://camo.githubusercontent.com/c6c0058ea2915b422c5d2013b96e9f3de8e789ec826cd0bfc1a1297462887389/68747470733a2f2f7472617669732d63692e6f72672f616b656e656f2f50687053706563536b69704578616d706c65457874656e73696f6e2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/akeneo/PhpSpecSkipExampleExtension)

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

[](#installation)

Once you have installed PhpSpec (following the documentation on [the official website](http://www.phpspec.net)), add the extension requirement to your `composer.json`:

Using phpspec 4.x,

```
{
    "require": {
        "akeneo/phpspec-skip-example-extension": "^3.0"
    }
}
```

Using phpspec 5.x,

```
{
    "require": {
        "akeneo/phpspec-skip-example-extension": "^4.0"
    }
}
```

And run composer update:

```
$ php composer.phar update akeneo/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-)

Skips all the spec example if the class or interface is not available

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

    // Will be skipped if the Vendor\Builder\ToolInterface interface 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

39

—

LowBetter than 84% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 51.2% 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

Every ~222 days

Recently: every ~308 days

Total

12

Last Release

2048d ago

Major Versions

v1.2.0 → v2.0.02016-07-21

v2.0.0 → v3.0.0-alpha12017-07-10

v3.0.0 → v4.0.02018-11-12

PHP version history (2 changes)v4.1.0PHP ^7.2

v4.2.0PHP ^7.3 || ^8.0

### Community

Maintainers

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

---

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)")[![pamil](https://avatars.githubusercontent.com/u/1897953?v=4)](https://github.com/pamil "pamil (6 commits)")[![BitOne](https://avatars.githubusercontent.com/u/2151567?v=4)](https://github.com/BitOne "BitOne (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/pamil-phpspec-skip-example-extension/health.svg)

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

###  Alternatives

[bossa/phpspec2-expect

Helper that decorates any SUS with a phpspec lazy object wrapper

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

Test your Laravel applications with PhpSpec

145352.4k15](/packages/benconstable-phpspec-laravel)[phpspec/nyan-formatters

PHPSpec Nyan Formatter Extension

77240.5k23](/packages/phpspec-nyan-formatters)[friends-of-phpspec/phpspec-code-coverage

Generate Code Coverage reports for PhpSpec tests

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

Skip your PhpSpec examples through annotations

34990.8k11](/packages/akeneo-phpspec-skip-example-extension)[ciaranmcnulty/phpspec-typehintedmethods

Extension for phpspec to enhance generated methods

3090.0k31](/packages/ciaranmcnulty-phpspec-typehintedmethods)

PHPackages © 2026

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