project-zer0/pz-composer

PHP Composer 的 pz 模块 - PHP 的依赖管理

0.1.3 2021-01-31 05:11 UTC

This package is auto-updated.

Last update: 2024-08-29 05:19:18 UTC


README

PHP Composer 的 pz 模块 - PHP 的依赖管理。

安装

通过 composer

$ composer require --dev project-zer0/pz-composer

配置

此模块为 .pz.yaml 文件提供以下配置块

project-zer0:
  composer:
    image: composer # Docker image name to use for composer command

命令

此模块在 pz 工具中提供以下命令

$ pz composer
   ______
  / ____/___  ____ ___  ____  ____  ________  _____
 / /   / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__  )  __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
                    /_/
Composer version 2.0.8 2020-12-03 17:20:38

Usage:
  command [options] [arguments]

Options:
  -h, --help                     Display this help message
  -q, --quiet                    Do not output any message
  -V, --version                  Display this application version
      --ansi                     Force ANSI output
      --no-ansi                  Disable ANSI output
  -n, --no-interaction           Do not ask any interactive question
      --profile                  Display timing and memory usage information
      --no-plugins               Whether to disable plugins.
  -d, --working-dir=WORKING-DIR  If specified, use the given directory as working directory.
      --no-cache                 Prevent use of the cache
  -v|vv|vvv, --verbose           Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  about                    Shows the short information about Composer.
  ...

测试

运行测试用例

$ composer test

运行测试用例并生成覆盖率报告(HTML 格式)

$ composer test-coverage

运行 PHP 风格检查器

$ composer cs-check

运行 PHP 风格修复器

$ composer cs-fix

运行所有持续集成测试

$ composer ci-run

贡献

请参阅 CONTRIBUTINGCONDUCT 获取详细信息。

许可证

有关更多信息,请参阅 许可证文件