{"id":15292287,"url":"https://github.com/wpsh/wpcs-for-envato","last_synced_at":"2025-04-13T11:11:39.863Z","repository":{"id":57082360,"uuid":"169982554","full_name":"wpsh/wpcs-for-envato","owner":"wpsh","description":"Unofficial PHP coding standards for WordPress theme and plugins sold on ThemeForest and CodeCanyon","archived":false,"fork":false,"pushed_at":"2019-03-25T07:28:47.000Z","size":16,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T02:21:39.691Z","etag":null,"topics":["envato","envato-market","phpcs","phpcs-standard","wordpress","wordpress-development"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wpsh.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-10T13:44:06.000Z","updated_at":"2023-07-25T08:20:43.000Z","dependencies_parsed_at":"2022-08-24T14:58:20.490Z","dependency_job_id":null,"html_url":"https://github.com/wpsh/wpcs-for-envato","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpsh%2Fwpcs-for-envato","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpsh%2Fwpcs-for-envato/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpsh%2Fwpcs-for-envato/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpsh%2Fwpcs-for-envato/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpsh","download_url":"https://codeload.github.com/wpsh/wpcs-for-envato/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248703198,"owners_count":21148118,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["envato","envato-market","phpcs","phpcs-standard","wordpress","wordpress-development"],"created_at":"2024-09-30T16:17:17.115Z","updated_at":"2025-04-13T11:11:39.842Z","avatar_url":"https://github.com/wpsh.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coding Standard for WordPress Plugins and Themes on Envato Market\n\n[![Build Status](https://travis-ci.com/wpsh/wpcs-for-envato.svg?branch=master)](https://travis-ci.com/wpsh/wpcs-for-envato)\n\nAutomatically check for Envato [WordPress plugin](https://help.author.envato.com/hc/en-us/articles/360000481223-WordPress-Theme-Plugin-Requirements) and [theme coding requirements](https://help.author.envato.com/hc/en-us/articles/360000479946-WordPress-Theme-Coding-Requirements). Based on the official [WordPress coding standards](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards) but more relaxed.\n\n\n## Requirements\n\n- [Composer](https://getcomposer.org)\n\n\n## Setup\n\n1. Add these coding standards as a [Composer development dependency](https://packagist.org/packages/wpsh/wpcs-for-envato) to your project:\n\n\t```bash\n\tcomposer require --dev wpsh/wpcs-for-envato\n\t```\n\n2. Define a script in `composer.json` to run the checks:\n\n\t```json\n\t{\n\t\t\"scripts\": {\n\t\t\t\"phpcs\": \"./vendor/bin/phpcs --standard=WPCSForEnvato --extensions=php\",\n\t\t\t\"phpcs-fix\": \"./vendor/bin/phpcbf --standard=WPCSForEnvato --extensions=php\"\n\t\t}\n\t}\n\t```\n\n\tUse `composer phpcs` to run the coding standard checks and `composer phpcs-fix` to automatically fix some of the coding standard violations.\n\n\n## Configuration\n\nAdd `phpcs.xml.dist` to your project root that provides additional configuration options:\n\n```xml\n\u003c?xml version=\"1.0\"?\u003e\n\u003cruleset name=\"WordPress coding standards for Envato\"\u003e\n\t\u003crule ref=\"WPCSForEnvato\"/\u003e\n\n\t\u003c!-- Specify a prefix that should be used for all global functions and variables. --\u003e\n\t\u003crule ref=\"WordPress.NamingConventions.PrefixAllGlobals\"\u003e\n\t\t\u003cproperties\u003e\n\t\t\t\u003cproperty name=\"prefixes\" type=\"array\"\u003e\n\t\t\t\t\u003celement value=\"our_custom_prefix\"/\u003e\n\t\t\t\t\u003celement value=\"tgmpa\"/\u003e\n\t\t\t\u003c/property\u003e\n\t\t\u003c/properties\u003e\n\t\u003c/rule\u003e\n\u003c/ruleset\u003e\n```\n\n## Credits\n\nCreated by [Kaspars Dambis](https://kaspars.net).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpsh%2Fwpcs-for-envato","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpsh%2Fwpcs-for-envato","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpsh%2Fwpcs-for-envato/lists"}