This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

WordPress coding standards for Envato plugins and themes

Installs: 21

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0


0.3.0 2019-02-15 17:27 UTC

This package is auto-updated.

Last update: 2021-11-25 13:51:18 UTC


Build Status

Automatically check for Envato WordPress plugin and theme coding requirements. Based on the official WordPress coding standards but more relaxed.



  1. Add these coding standards as a Composer development dependency to your project:

    composer require --dev wpsh/wpcs-for-envato
  2. Define a script in composer.json to run the checks:

    	"scripts": {
    		"phpcs": "./vendor/bin/phpcs --standard=WPCSForEnvato --extensions=php",
    		"phpcs-fix": "./vendor/bin/phpcbf --standard=WPCSForEnvato --extensions=php"

    Use composer phpcs to run the coding standard checks and composer phpcs-fix to automatically fix some of the coding standard violations.


Add phpcs.xml.dist to your project root that provides additional configuration options:

<?xml version="1.0"?>
<ruleset name="WordPress coding standards for Envato">
	<rule ref="WPCSForEnvato"/>

	<!-- Specify a prefix that should be used for all global functions and variables. -->
	<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
			<property name="prefixes" type="array">
				<element value="our_custom_prefix"/>
				<element value="tgmpa"/>


Created by Kaspars Dambis.