https://github.com/alsterverse/wp-isotopcs
Isotop WordPress Coding Standard
https://github.com/alsterverse/wp-isotopcs
coding-standards wordpress
Last synced: 29 days ago
JSON representation
Isotop WordPress Coding Standard
- Host: GitHub
- URL: https://github.com/alsterverse/wp-isotopcs
- Owner: alsterverse
- License: mit
- Created: 2016-08-04T07:01:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-09-15T04:36:09.000Z (over 2 years ago)
- Last Synced: 2025-05-15T03:45:12.464Z (9 months ago)
- Topics: coding-standards, wordpress
- Language: PHP
- Size: 63.5 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
# Isotop WordPress Coding Standard
The coding standard used for WordPress sites.
## Installation
### Standalone
Standards are provided as a [Composer](http://getcomposer.org) package and can be installed with:
```bash
composer create-project isotopsweden/isotopcs:dev-master
```
Composer will automatically install dependencies, register standards paths, and set default PHP Code Sniffer standard to `Isotop`.
### As dependency
You should update `minimum-stability` to `dev` and set `prefer-stable` to `true`.
```json
{
"minimum-stability": "dev",
"prefer-stable": true
}
```
Then you can install `isotopcs` as a dependency.
```bash
composer require isotopsweden/isotopcs:dev-master --dev
```
### Command line
```bash
vendor/bin/phpcs --extensions=php /path/to/folder/
```
### Editors
#### Atom
Use [linter-phpcs](https://tommcfarlin.com/using-php-codesniffer/).
#### Sublime
```javascript
{
"phpcs_executable_path": "/path/to/isotopcs/vendor/bin/phpcs",
"phpcs_additional_args": {
"--standard": "Isotop"
}
}
```
#### PhpStorm
Refer to [Using PHP Code Sniffer Tool](https://www.jetbrains.com/phpstorm/help/using-php-code-sniffer-tool.html) in PhpStorm documentation.
After installation `Isotop` standard will be available as a choice in PHP Code Sniffer Validation inspection.