定制 eviweb/fuelphp-phpcs 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

eviweb/fuelphp-phpcs

Composer 安装命令:

composer require eviweb/fuelphp-phpcs

包简介

PHP Code Sniffer standard for Fuel PHP with dedicated CLI

README 文档

README

PHP Code Sniffer rules that cover a large part of the [Fuel PHP coding standards] (http://docs.fuelphp.com/general/coding_standards.html "Fuel PHP Coding Standards").

Build Status

How to install

The composer way (since v1.0.4)

run composer require --dev eviweb/fuelphp-phpcs:~1 in your fuelphp project.
It will automatically install PHP CodeSniffer using composer.

The old way

Install (Linux Only)

  1. clone the project git clone https://github.com/eviweb/fuelphp-phpcs.git
  2. change directory to ./fuelphp-phpcs cd fuelphp-phpcs
  3. run installer with root privileges sudo ./install.sh

Uninstall (Linux Only)

  1. change directory to ./fuelphp-phpcs cd fuelphp-phpcs
  2. run uninstaller with root privileges sudo ./uninstall.sh

How to use

Using the fuelphpcs command (since v1.0.4)

Assuming FuelPHPCS was installed inside ./fuel/vendor using composer and the bin-dir is ./fuel/vendor/bin.
Run ./fuel/vendor/bin/fuelphpcs PROJECT_TO_SNIFF_DIRECTORY where PROJECT_TO_SNIFF_DIRECTORY is your fuel php project directory.

The old way

run phpcs --standard=FuelPHP PROJECT_TO_SNIFF_DIRECTORY where PROJECT_TO_SNIFF_DIRECTORY is your fuel php project directory.

BE AWARE not to use --tab-width phpcs option with another value than 0, this would disable tabs recognition !

Requirements

Please note that this package works with PHP Code Sniffer version 2.9.x.

统计信息

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

GitHub 信息

  • Stars: 27
  • Watchers: 1
  • Forks: 13
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固