承接 styleci/cli 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

styleci/cli

Composer 安装命令:

composer require styleci/cli

包简介

The CLI tool for StyleCI

README 文档

README

StyleCI Banner

Installation

The StyleCI CLI Tool requires PHP 7.4 or higher, and can be installed either by directly downloading the phar, or using Composer.

Download the Phar

Global installation:

$ curl -SsLo styleci.phar https://github.com/StyleCI/CLI/releases/download/v1.6.0/styleci.phar \
    && chmod +x styleci.phar && sudo mv styleci.phar /usr/local/bin/styleci

Require using Composer

Local installation:

$ composer require styleci/cli:^1.6 --dev

Global installation:

$ composer global require styleci/cli:^1.6

First Time Setup

When using the tool for the first time, you may want to enter your StyleCI API keys. You can do this with the styleci config command, which will store your keys in ~/.styleci/config.json, just like how Composer store keys.

StyleCI for GitHub:

styleci config auth.github YOUR-API-KEY-GOES-HERE

Your API key is available at https://github.styleci.io/profile.

StyleCI for GitLab:

styleci config auth.gitlab YOUR-API-KEY-GOES-HERE

Your API key is available at https://gitlab.styleci.io/profile.

StyleCI for Bitbucket:

styleci config auth.bitbucket YOUR-API-KEY-GOES-HERE

Your API key is available at https://bitbucket.styleci.io/profile.

Usage

Now, you can analyze any local copy of a repo enabled in StyleCI, from the console! Simply run:

$ styleci

and StyleCI will analyze your current directory.

Environment Variables

If you have chosen not use the first time setup config, or would like to temporarily override the stored keys, this can be done by setting environment variables.

StyleCI for GitHub:

$ STYLECI_GITHUB_API_KEY=YOUR-API-KEY-GOES-HERE styleci

StyleCI for GitLab:

$ STYLECI_GITLAB_API_KEY=YOUR-API-KEY-GOES-HERE styleci

StyleCI for Bitbucket:

$ STYLECI_BITBUCKET_API_KEY=YOUR-API-KEY-GOES-HERE styleci

Advanced Usage

You can optionally pass a directory to analyze, otherwise, the current working directory will be used. Moreover, we support analyzing only the changed files, performing a "dry run" without touching your files, and more:

Usage:
  analyze [options] [--] [<directory>]

Arguments:
  directory

Options:
  -c, --only-changed
  -d, --dry-run
  -g, --git-binary=GIT-BINARY
  -r, --remote-name=REMOTE-NAME
  -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
  -v|vv|vvv, --verbose           Increase the verbosity of messages

Note that styleci is shorthand for styleci analyze. This will matter if you want to analyze a directory with relevative path config, or any other command name. You will need to write styleci analyze config in order to use such a <directory> argument.

License

This tool is licensed under The Apache License 2.0.

styleci/cli 适用场景与选型建议

styleci/cli 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 468.74k 次下载、GitHub Stars 达 70, 最近一次更新时间为 2020 年 07 月 17 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 styleci/cli 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 styleci/cli 我们能提供哪些服务?
定制开发 / 二次开发

基于 styleci/cli 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 468.74k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 70
  • 点击次数: 12
  • 依赖项目数: 12
  • 推荐数: 0

GitHub 信息

  • Stars: 70
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2020-07-17