PHPackages                             edisonlabs/gherphalizer - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. edisonlabs/gherphalizer

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

edisonlabs/gherphalizer
=======================

Provides a composer plugin that finds and transforms Gherkin files into PHP classes.

3.0.0(3y ago)11.5M↑113.6%1GPL-2.0+PHPCI failing

Since Jun 10Pushed 4mo ago13 watchersCompare

[ Source](https://github.com/EdisonLabs/gherphalizer)[ Packagist](https://packagist.org/packages/edisonlabs/gherphalizer)[ RSS](/packages/edisonlabs-gherphalizer/feed)WikiDiscussions 1.x Synced 3d ago

READMEChangelogDependencies (8)Versions (16)Used By (0)

[![Build Status](https://camo.githubusercontent.com/f884ec8e0fbf5ac1a78a9405f73ea5bf82e15f3dbeabe081746caf9c9fff627d/68747470733a2f2f7472617669732d63692e636f6d2f456469736f6e4c6162732f676865727068616c697a65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/EdisonLabs/gherphalizer)

The Gherphalizer
================

[](#the-gherphalizer)

Overview
--------

[](#overview)

Provides a composer plugin that finds and transforms Gherkin files into PHP classes.

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

[](#installation)

Configure the plugin in your composer.json file using for example:

```
"extra": {
    "gherphalizer": {
        "files": [
            "*"
        ],
        "locations": [
            "app/modules",
            "app/profiles"
        ],
        "output-dir": "NOT-PUBLIC-FOLDER"
    }
}

```

Where:

- `files`: List of filenames (without the feature extension) to scan for.
- `locations`: List of paths to scan for Gherkin feature files.
- `output-dir`: The directory where the PHP files will be placed.

How does it work
----------------

[](#how-does-it-work)

Every time you run `composer install` or `composer update`, the plugin will scan the locations for Gherkin feature files, generating PHP classes for them into the output directory.

### Command

[](#command)

You can also use the command `composer gherphalizer` to run the process.

Use the option `--config` to specify a config.json file to override the config defined in the `composer.json`: `composer gherphalizer --config=config.json`.

The content of the configuration file passed in needs to be in this format:

```
{
    "files": [
        "*"
    ],
    "locations": [
        "app/modules",
        "app/profiles"
    ],
    "output-dir": "NOT-PUBLIC-FOLDER"
}

```

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

[](#contributing)

Clone the repository and install all dependencies:

```
$ composer install

```

To run the tests simply:

```
$ ./vendor/bin/phpunit

```

Notes
-----

[](#notes)

- Code formatting in your IDE might have an impact on the tests (how the fixture is formatted vs. the test output)

Automated Tests and Code Sniffer
--------------------------------

[](#automated-tests-and-code-sniffer)

This repository integrates with [Travis CI](https://travis-ci.com/EdisonLabs/gherphalizer) to perform tests and detect PHP standards violations.

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance52

Moderate activity, may be stable

Popularity41

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 58.3% 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 ~125 days

Recently: every ~311 days

Total

13

Last Release

712d ago

Major Versions

1.1.3 → 2.0.0-beta12020-06-23

1.2.0 → 3.0.02023-03-31

3.x-dev → 4.x-dev2024-07-22

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1932061?v=4)[Jean Ribeiro](/maintainers/jkribeiro)[@jkribeiro](https://github.com/jkribeiro)

---

Top Contributors

[![manuee](https://avatars.githubusercontent.com/u/105582?v=4)](https://github.com/manuee "manuee (35 commits)")[![jeqq](https://avatars.githubusercontent.com/u/2793969?v=4)](https://github.com/jeqq "jeqq (11 commits)")[![timmillwood](https://avatars.githubusercontent.com/u/151519?v=4)](https://github.com/timmillwood "timmillwood (7 commits)")[![dickolsson](https://avatars.githubusercontent.com/u/112085?v=4)](https://github.com/dickolsson "dickolsson (6 commits)")[![suzymasri](https://avatars.githubusercontent.com/u/12935384?v=4)](https://github.com/suzymasri "suzymasri (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/edisonlabs-gherphalizer/health.svg)

```
[![Health](https://phpackages.com/badges/edisonlabs-gherphalizer/health.svg)](https://phpackages.com/packages/edisonlabs-gherphalizer)
```

###  Alternatives

[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k16.7M1.0k](/packages/phpro-grumphp)[oro/platform

Business Application Platform (BAP)

645143.5k115](/packages/oro-platform)[symfony/stimulus-bundle

Integration with your Symfony app &amp; Stimulus!

17417.5M295](/packages/symfony-stimulus-bundle)[illuminate/session

The Illuminate Session package.

9939.3M850](/packages/illuminate-session)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k53](/packages/friendsoftypo3-content-blocks)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)

PHPackages © 2026

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