solutiondrive/coding-standard

solutionDrive coding standard.

v3.0.0 2022-07-26 09:01 UTC

This package is not auto-updated.

Last update: 2024-12-22 06:26:31 UTC


README

solutionDrive Coding Standard

🥇 solutionDrive coding standard configuration.

Installation & usage

  1. Install this package:

    $ composer require --dev solutiondrive/coding-standard
  2. Include a configuration file in your easy-coding-standard.yml:

    imports:
      - { resource: 'vendor/solutiondrive/coding-standard/easy-coding-standard.yml' } 

Phar usage

To create the phar, you need to install humbug/box globally: (The global composer bin path needs to be available in $PATH)

composer global require humbug/box

Install the dependencies

composer install --optimize-autoloader -n

Create the phar file

box build -c box.json

Perhaps it is necessary to allow php to create a phar

php -d phar.readonly=0 ~/.composer/vendor/bin/box build -c box.json

The newly created phar file can be used just like the ecs binary is used:

ecs-standalone.phar --help