sunnysideup/easy-coding-standards
Composer 安装命令:
composer require sunnysideup/easy-coding-standards
包简介
ECS PHP Linting.
关键字:
README 文档
README
Lints your silverstripe php code, checks for potential bugs, and also has a raft of other helpful commands.
tl;dr
Install as global composer package and then try to access the commands, starting with sake- from the command line.
commands available
# help - sake-help # composer - sake-composer-about - get details about composer recipe at hand - sake-composer-available-updates - sake-composer-force-update - sake-composer-require - composer require with extras - sake-composer-update - composer update with extras # find - sake-find-in-files - sake-find-large-files - sake-find-large-folders # git - sake-git-quick - sake-git-commit-and-push - sake-git-commit-and-push-vendor-packages - goes through all vendor packages for uncommitted work - sake-git-diff-analyser - sake-git-fork-comparison - finds all the works and sees which one is ahead - sake-git-info - sake-git-find-any-changes - sake-git-remove-stale-branches - sake-git-merge-towards-production - take develop to production - sake-git-my-pull-requests - sake-git-my-work-being-forked - sake-git-prod-diff - check any hot fixes on the live site. - sake-git-squash-and-pr - squash and make a pull request - sake-git-squash-commits - sake-git-tag - sake-git-pipeline-ssh # php - sake-php-set-timezone - sake-php-line-counter # lint and security - sake-lint-all - sake-lint-class-rename-comparison - sake-lint-compat - sake-lint-ecs - sake-lint-ide-annotator - sake-lint-js - sake-lint-one-file - sake-lint-phan - sake-lint-psr-4-checker - sake-lint-rector - sake-lint-stan - sake-lint-security - sake-lint-remove-origs # edit with LLM - sake-llm-opencode # webpack - sake-npm-audit - sake-npm-install - sake-npm-build - sake-npm-dev - sake-npm-watch # npm / node - sake-npm-update-self - sake-npm-publish-on-npmjs-org # silverstripe - sake-ss-add-site - sake-ss-align-versions - sake-ss-create-env-file - sake-ss-db-dump - sake-ss-db-import - sake-ss-db-open - sake-ss-dev-build - sake-ss-flush - sake-ss-ready - sake-ss-rsync-asset - sake-ss-start-new-module - sake-ss-security-update - sake-ss-start-new-feature - sake-ss-start-test-site - sake-ss-template-check # rsync - sake-ss-rsync-all - sake-ss-rsync-assets - sake-ss-rsync-db - sake-ss-rsync-sspak # test - sake-test-site test a live site response times # scrutinizer - sake-scrutinizer-add # machine maintenance - sake-update-chromium - sake-update-go - sake-update-shell - sake-update-vs-code - sake-update-composer # self - sake-self-update
How to install for one project (not recommended - as it may not work)
- open your terminal
- browse to root folder of your project and type:
composer require --dev sunnysideup/easy-coding-standards:dev-main
global install (recommended - more likely to work)
- open your terminal and type
# install ... composer global config minimum-stability dev composer global config prefer-stable true composer global require sunnysideup/easy-coding-standards:dev-main cat << 'EOF' >> ~/.bashrc # Add composer path PATH=~/.config/composer/vendor/bin:$PATH EOF source ~/.bashrc
or restart your computer.
- Now you should be able to run it from anywhere like this:
sake-lint-ecs [dir]
(this command, and all the other commands listed above).
How to use
Commands should be run from the root directory of your project.
To find out the options for a specific command:
sake-my-command -h
Not installed globally?
If not installed globally, then you should add vendor/bin/ in front of the commands.
vendor/bin/sake-my-command -h
sunnysideup/easy-coding-standards 适用场景与选型建议
sunnysideup/easy-coding-standards 是一款 基于 Shell 开发的 Composer 扩展包,目前已累计 1.43k 次下载、GitHub Stars 达 5, 最近一次更新时间为 2019 年 12 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「linter」 「cms」 「silverstripe」 「clean」 「PHP_CodeSniffer」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 sunnysideup/easy-coding-standards 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 sunnysideup/easy-coding-standards 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 sunnysideup/easy-coding-standards 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
GraphQL authentication for your headless Craft CMS applications.
Set Links with a specific language parameter
Supercharged text field validation.
Lot's of tools for git, file and static source code analysis.
Validate Blade templates for syntax errors, security issues, and best practices
An less opinionated version of Laravel Pint.
统计信息
- 总下载量: 1.43k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 26
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2019-12-03