PHP code example of jdolba / silverstripe-coding-standards
1. Go to this page and download the library: Download jdolba/silverstripe-coding-standards library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jdolba / silverstripe-coding-standards example snippets
json
"scripts": {
"silverstripe-standards": [
"@php-lint",
"@phpcs"
],
"php-lint": "parallel-lint app/src app/tests",
"phpcs": "phpcs app/src app/tests --standard=vendor/jdolba/silverstripe-coding-standards/definitions/php/phpcs-ss4.xml --extensions=php --encoding=utf-8",
"phpcbf": "phpcbf app/src app/tests --standard=vendor/jdolba/silverstripe-coding-standards/definitions/php/phpcs-ss4.xml --extensions=php --encoding=utf-8",
"phpcs-fix": "@phpcbf"
},