Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
  docker
  scripts
  src
  .gitignore
  .travis.yml
  README.md
  composer.json
  docker-compose.yml
  docker-project.json
  easy-coding-standard.neon
  ecs.php
  phpcs.example.xml
Size: Mime:
  README.md

php-codestyles

Crazy Factory default code styles to be used with Squizlabs' codesniffer and PHPCSFixer.

Install

  1. Create a file easy-coding-standard.neon in the root path of project with at least below contents:
includes:
  - vendor/crazyfactory/sniffs/easy-coding-standard.neon

  1. Run composer require-dev crazyfactory/sniffs

43 Add a linting command to composer.json

  "scripts": {
    "lint": "ecs check src cron tests --clear-cache",
    "lint:fix": "ecs check src cron tests --clear-cache --fix"
  }