PHPackages                             plozmun/behat-faker-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. plozmun/behat-faker-extension

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

plozmun/behat-faker-extension
=============================

Behat Faker Extension

0.2.3(4y ago)34.5k↓55%MITPHPPHP ^7.2| ^8.0CI failing

Since Jan 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/plozmun/BehatFakerExtension)[ Packagist](https://packagist.org/packages/plozmun/behat-faker-extension)[ RSS](/packages/plozmun-behat-faker-extension/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (5)Dependencies (5)Versions (6)Used By (0)

Behat Faker Extension
=====================

[](#behat-faker-extension)

Faker PHP integration with Behat Gherkin language

Instalation
-----------

[](#instalation)

1. Require this extension using Composer:

```
composer require --dev plozmun/behat-faker-extension
```

2. Enable it within your Behat configuration:

```
# behat.yaml.dist / behat.yaml

default:
    extensions:
        Plozmun\FakerExtension:
            locale: 'es_es' # Optional to enable locale functions
```

Usage
-----

[](#usage)

Add your PHP Faker function between braces:

Ej: `{{firsName}}` or complex functions `{{dateTimeBetween('-5 years', '-1 years').format('Y-m-d')}}`

[Faker PHP Documentation](https://fakerphp.github.io/)

```
Feature: Create a Book
  In order to create a new book
  As a admin user
  I need to be able to create a book

  Scenario: Send post to create a new book
    When I add "Content-Type" header equal to "application/json"
    When I send a "POST" request to "/api/v1/book/{{ean13}}" with body:
    """
    {
      "author": {
          "firsName": "{{firstName}}",
          "lastName": "{{lastName}}"
      },
      "title": "{{sentence}}",
      "createdAt": "{{dateTimeInInterval('-5 years', '-1 years').format('Y-m-d')}}
    }
    """
    And the response status code should be 200

  Scenario: Show published books
    Given the following products exist:
      | ean     | title         |
      | {{ean}} | {{sentence}}  |
      | {{ean}} | {{sentence}}  |
    When I go to "/admin/books"
```

Contributors
------------

[](#contributors)

Pablo Lozano - [plozmun](https://github.com/plozmun) \[lead developer\]

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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

Every ~0 days

Total

5

Last Release

1622d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/76d0c800b8ccf566f3de8d266b9d8efe092bdb9dd6395325c5f7f980d6f0d830?d=identicon)[plozmun](/maintainers/plozmun)

---

Top Contributors

[![plozmun](https://avatars.githubusercontent.com/u/879675?v=4)](https://github.com/plozmun "plozmun (13 commits)")

###  Code Quality

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/plozmun-behat-faker-extension/health.svg)

```
[![Health](https://phpackages.com/badges/plozmun-behat-faker-extension/health.svg)](https://phpackages.com/packages/plozmun-behat-faker-extension)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M738](/packages/sylius-sylius)[phpro/grumphp

A composer plugin that enables source code quality checks.

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

Drupal extension for Behat

22215.7M173](/packages/drupal-drupal-extension)[verbb/formie

The most user-friendly forms plugin for Craft.

102393.6k70](/packages/verbb-formie)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54681.3k19](/packages/solspace-craft-freeform)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)

PHPackages © 2026

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