solutiondrive/coding-standard

solutionDrive 编码标准。

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

This package is not auto-updated.

Last update: 2024-09-15 05:02:53 UTC


README

solutionDrive 编码标准

🥇 solutionDrive 编码标准配置。

安装与使用

  1. 安装此包

    $ composer require --dev solutiondrive/coding-standard
  2. 在您的 easy-coding-standard.yml 中包含配置文件

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

Phar 使用

要创建 phar,您需要全局安装 humbug/box:(全局 composer 的 bin 路径需要在 $PATH 中可用)

composer global require humbug/box

安装依赖

composer install --optimize-autoloader -n

创建 phar 文件

box build -c box.json

可能需要允许 php 创建 phar

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

新创建的 phar 文件可以像使用 ecs 二进制文件一样使用

ecs-standalone.phar --help