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(6mo ago)147.0k↓31.3%1[9 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 5mo ago14 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 1mo 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

45

—

FairBetter than 93% of packages

Maintenance57

Moderate activity, may be stable

Popularity32

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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

188d 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

161424.0k49](/packages/humanmade-coding-standards)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[syde/phpcs

Syde PHP coding standards for WordPress projects.

1019.7k7](/packages/syde-phpcs)[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.3k](/packages/pressbooks-pressbooks-aldine)

PHPackages © 2026

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