PHPackages                             awesomemotive/wpforms-phpcs - 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. awesomemotive/wpforms-phpcs

ActivePhpcodesniffer-standard[Utility &amp; Helpers](/categories/utility)

awesomemotive/wpforms-phpcs
===========================

WPForms Coding Standards

1.7.0(9mo ago)149.0k↓37.5%1[12 issues](https://github.com/awesomemotive/wpforms-phpcs/issues)[1 PRs](https://github.com/awesomemotive/wpforms-phpcs/pulls)GPL-2.0-or-laterPHPCI passing

Since Jan 6Pushed 8mo ago13 watchersCompare

[ Source](https://github.com/awesomemotive/wpforms-phpcs)[ Packagist](https://packagist.org/packages/awesomemotive/wpforms-phpcs)[ RSS](/packages/awesomemotive-wpforms-phpcs/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (10)Dependencies (6)Versions (22)Used By (0)

WPForms Coding Standards
========================

[](#wpforms-coding-standards)

Maintainers: The WPForms team

License: GPLv2 any later version.
License URI:

Description
-----------

[](#description)

WPForms coding standards are based on the [WordPress Coding Standards](https://github.com/WordPress/WordPress-Coding-Standards) and the [PHPCompatibility Coding Standards](https://github.com/PHPCompatibility/PHPCompatibility) and help create strict and high-quality code.

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

[](#installation)

```
composer require awesomemotive/wpforms-phpcs --dev

```

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

[](#configuration)

Create the `.phpcs.xml` or `phpcs.xml` file at the root of your project:

```

	The WPForms coding standard.

	\vendor/*
	\.github/*

```

Sniffs detail
-------------

[](#sniffs-detail)

### Validate Text Domain Sniff

[](#validate-text-domain-sniff)

The `WPForms.PHP.ValidateDomain` sniff validates that you are using the correct text domain for `i18n` functions such as `__()`, `_e()`, `_n()`, etc.

By default, this sniff works for one domain in the project. We get a directory name based on the `vendor` directory or the location of the `phpcs.xml`/`.phpcs.xml` file.

You can install our package to the `plugins` directory and enable the multi-domain mode. in this case, the text domain will be the next folder name in the path. Structure:

```
../wp-content/plugins/          # → Root
├── wpforms/                    # → `wpforms` domain.
└── wpforms-stripe/             # → `wpforms-stripe` domain.

```

In your config you should enable the `multi_domains` property:

```

```

If you have different domains for directories inside your project (for example, for free and paid versions) and want to redefine the text domain for some paths:

```
../wp-content/plugins/          # → Root
├── wpforms/                    # → `wpforms-lite` domain.
│   ├── pro/                    # → `wpforms` domain.
│   └── src/                    # → `wpforms-lite` domain.
│       ├── Admin/              # → `wpforms-lite` domain.
│       └── Pro/                # → `wpforms` domain.
└── wpforms-stripe/             # → `wpforms-stripe` domain.

```

In this case, you should add to the config file the property with `name` as a text domain and `value` as a path. If a domain has several paths, then list them via commas.

```

```

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance41

Moderate activity, may be stable

Popularity32

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 56.5% 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 ~78 days

Total

19

Last Release

279d ago

PHP version history (2 changes)v1.0.0PHP 5.6 - 7.4

1.0.7PHP 7.1 - 7.4

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/9c47c871c5ef5893554251a5f459437ec10860e3a4d5aca841b42f1f580fb8c6?d=identicon)[kagg-design](/maintainers/kagg-design)

![](https://www.gravatar.com/avatar/bff62c422955c19961a1bb8fc7ff3c4e65a2f24d92714e8fbd8b2108ee30a60f?d=identicon)[jfoell-am](/maintainers/jfoell-am)

![](https://www.gravatar.com/avatar/6e7178304d40c383d07abba305836a9905add65429d4283e447cc6242d2a5385?d=identicon)[dimitris-am](/maintainers/dimitris-am)

---

Top Contributors

[![kagg-design](https://avatars.githubusercontent.com/u/28291450?v=4)](https://github.com/kagg-design "kagg-design (121 commits)")[![wppunk](https://avatars.githubusercontent.com/u/19273242?v=4)](https://github.com/wppunk "wppunk (79 commits)")[![slaFFik](https://avatars.githubusercontent.com/u/282234?v=4)](https://github.com/slaFFik "slaFFik (8 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![dimitris-am](https://avatars.githubusercontent.com/u/88329503?v=4)](https://github.com/dimitris-am "dimitris-am (2 commits)")[![kkarpieszuk](https://avatars.githubusercontent.com/u/2388617?v=4)](https://github.com/kkarpieszuk "kkarpieszuk (1 commits)")

---

Tags

coding-conventionsphpcsphpcs-standardrulesetwpforms

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/awesomemotive-wpforms-phpcs/health.svg)

```
[![Health](https://phpackages.com/badges/awesomemotive-wpforms-phpcs/health.svg)](https://phpackages.com/packages/awesomemotive-wpforms-phpcs)
```

###  Alternatives

[humanmade/coding-standards

Human Made Coding Standards

161450.0k66](/packages/humanmade-coding-standards)[wp-cli/wp-cli-tests

WP-CLI testing framework

423.3M150](/packages/wp-cli-wp-cli-tests)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.2M36](/packages/yoast-yoastcs)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

39255.4k37](/packages/ec-europa-toolkit)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45844.8k1](/packages/pressbooks-pressbooks)[pressbooks/pressbooks-aldine

Aldine is the default theme for the home page of Pressbooks networks. It is named for the Aldine Press, founded by Aldus Manutius in 1494, who is regarded by many as the world’s first publisher.

114.5k](/packages/pressbooks-pressbooks-aldine)

PHPackages © 2026

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