承接 ise/php-codingstandards-codeigniter 相关项目开发

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

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

ise/php-codingstandards-codeigniter

最新稳定版本:1.0.1

Composer 安装命令:

composer require ise/php-codingstandards-codeigniter

包简介

CodeIgniter coding standards for PHPCS

README 文档

README

Original Repos:

Usage:

composer require ise/php-codingstandards-codeigniter:^1.0.0

Provides sniffs for PHP_CodeSniffer 3.x to check CodeIgniter3 coding standard.

CI4 can use CodeIgniter4 standard to check CodeIgniter4 coding standard

PHP_CodeSniffer

PHP_CodeSniffer is a set of two PHP scripts; the main phpcs script that tokenizes PHP, JavaScript and CSS files to detect violations of a defined coding standard, and a second phpcbf script to automatically correct coding standard violations.

PHP_CodeSniffer is an essential development tool that ensures your code remains clean and consistent.

By default sniffs for a few coding convetions are provided like PEAR, Zend, PHPCS and Squiz. CodeIgniter-for-PHP_CodeSniffer is aimed at adding support for CodeIgniter coding convention.

CodeIgniter coding standard

CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications.

CodeIgniter is developed by EllisLab. The company follows some specific coding rules for their developments and for CodeIgniter especially.

Based on PHP_CodeSniffer CodeIgniter-for-PHP_CodeSniffer helps to validate most of the rules in CodeIgniter coding standard.

Installation

git clone https://github.com/ganl/CodeIgniter-for-PHP_CodeSniffer.git

configure PHP_CodeSniffer to use CodeIgniter-for-PHP_CodeSniffer.

phpcs --config-set installed_paths /path/to/CodeIgniter-for-PHP_CodeSniffer/CodeIgniter

Check that it is installed type phpcs -i you should see a list of installed standards.

Then you can go to you project folder and run phpcs --standard=CodeIgniter my-file-or-my-directory.php.

Enable integration in PhpStorm

screenshot screenshot

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 53
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2018-08-07