wondernetwork / wondersniffer
PHP Coding Standards for WonderNetwork
Installs: 14 382
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 5
Forks: 0
pkg:composer/wondernetwork/wondersniffer
Requires
- squizlabs/php_codesniffer: ^3.2.3
Requires (Dev)
- phpunit/phpunit: ^5.5
This package is not auto-updated.
Last update: 2025-09-30 17:23:07 UTC
README
WonderNetwork uses PHP_CodeSniffer to keep our code pretty. PSR-2 is the base of our standard, with a few extras thrown in. You can see
what we've added and removed in the ruleset.xml
, and check out our customizations in Sniffs
.
(The astute may notice that the code in this repo doesn't conform to our own standard. We don't care.)
How to make your code look like our code
- Add
wondersniffer
to your Composer packages:
$ composer require --dev wondernetwork/wondersniffer
- Update
composer
:
$ composer update
- Add the WonderNetwork standard to your
ruleset.xml
:
<?xml version="1.0"?>
<ruleset>
<rule ref="vendor/wondernetwork/wondersniffer/WonderNetwork" />
</ruleset>
- Run the sniffer against your codebase:
$ ./vendor/bin/phpcs --standard=ruleset.xml your-source-code