PHPackages                             pedrotroller/kawaii - 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. pedrotroller/kawaii

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pedrotroller/kawaii
===================

A small library to check and fix annoying gherkin code style

1.2.0(7mo ago)012.6kMITPHPPHP ^8.3CI passing

Since Feb 25Pushed 7mo agoCompare

[ Source](https://github.com/PedroTroller/kawaii)[ Packagist](https://packagist.org/packages/pedrotroller/kawaii)[ Docs](https://github.com/pedrotroller/kawaii-gherkin)[ RSS](/packages/pedrotroller-kawaii/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (8)Versions (4)Used By (0)

Kawaii - Gherkin Formatter
==========================

[](#kawaii---gherkin-formatter)

*This package is a fork of the awesome [malukenho/kawaii-gerkin](https://github.com/malukenho/kawaii-gherkin) package made by Jefersson NATHAN ([@malukenho](http://github.com/malukenho)).*

**Kawaii** is a small tool to fix and verify gherkin code style.

### Installing

[](#installing)

```
$ composer require --dev pedrotroller/kawaii
```

### Analyzing code

[](#analyzing-code)

To analyze code style, simple run:

```
$ vendor/bin/kawaii check [--align [right|left]]
```

### Fixing code

[](#fixing-code)

To fix code style, simple run:

```
$ vendor/bin/kawaii fix [--align [right|left]]
```

Example
=======

[](#example)

### Before

[](#before)

```
 @users

                        @another-feature
            @kawaii
     Feature: User registration
            In order to order products
               As a visitor
            I need to be able to create an account in the store

            Background: Nice Background
                      Given store has default configuration
              And there are following users:
                      | email       | password |
                          | bar@bar.com | foo1sasdasdasdadsasd     |
             And the following customers exist:
                         | email              |
                 | customer@email.com |
             And the following zones are defined:
                        | name         | type    | members |
                         | Poland       | country | Poland  |
             And the following orders exist:
                 | customer                | address                                        |
                 | customer@email.com      | Jan Kowalski, Wawel 5 , 31-001, Kraków, Poland |
```

### After

[](#after)

```
@users @another-feature @kawaii
Feature: User registration
    In order to order products
    As a visitor
    I need to be able to create an account in the store

    Background: Nice Background
        Given store has default configuration
          And there are following users:
            | email       | password             |
            | bar@bar.com | foo1sasdasdasdadsasd |
          And the following customers exist:
            | email              |
            | customer@email.com |
          And the following zones are defined:
            | name   | type    | members |
            | Poland | country | Poland  |
          And the following orders exist:
            | customer           | address                                        |
            | customer@email.com | Jan Kowalski, Wawel 5 , 31-001, Kraków, Poland |
```

### Maintainer

[](#maintainer)

- Pierre PLAZANET ([@pedrotroller](http://github.com/pedrotroller))

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance62

Regular maintenance activity

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Total

3

Last Release

236d ago

PHP version history (3 changes)1.0.0PHP 7.4.\* || 8.0.\* || 8.1.\*

1.1.0PHP 8.0.\* || 8.1.\* || 8.2.\*

1.2.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/30a9dae2aee580e835b4f60b16a1ac2cbc72cf6524a345cdae5a64e9c6ac75a6?d=identicon)[PedroTroller](/maintainers/PedroTroller)

---

Top Contributors

[![PedroTroller](https://avatars.githubusercontent.com/u/1766827?v=4)](https://github.com/PedroTroller "PedroTroller (3 commits)")[![malukenho](https://avatars.githubusercontent.com/u/3275172?v=4)](https://github.com/malukenho "malukenho (2 commits)")[![loic425](https://avatars.githubusercontent.com/u/8329789?v=4)](https://github.com/loic425 "loic425 (1 commits)")[![airtonzanon](https://avatars.githubusercontent.com/u/6540546?v=4)](https://github.com/airtonzanon "airtonzanon (1 commits)")[![michalmarcinkowski](https://avatars.githubusercontent.com/u/7572437?v=4)](https://github.com/michalmarcinkowski "michalmarcinkowski (1 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")[![tifabien](https://avatars.githubusercontent.com/u/705356?v=4)](https://github.com/tifabien "tifabien (1 commits)")

---

Tags

behatcucumberfeatureformattinggherkinCode stylegherkinformattingcode standard

###  Code Quality

TestsBehat

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/pedrotroller-kawaii/health.svg)

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

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4723.6M20](/packages/coenjacobs-mozart)[malukenho/kawaii-gherkin

A small library to check and fix annoying gherkin code style

5095.4k1](/packages/malukenho-kawaii-gherkin)[malukenho/docheader

A small library to check header docs

68380.8k136](/packages/malukenho-docheader)[friendsoftypo3/content-blocks

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

96374.6k23](/packages/friendsoftypo3-content-blocks)

PHPackages © 2026

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