承接 fsevestre/php-cs-fixer-config 相关项目开发

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

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

fsevestre/php-cs-fixer-config

Composer 安装命令:

composer require fsevestre/php-cs-fixer-config

包简介

PHP CS Fixer config

README 文档

README

PHP CS Fixer config.

Installation

Run:

$ composer require --dev fsevestre/php-cs-fixer-config

Usage

Configuration

Create a configuration file .php_cs in the root of your project:

<?php

$config = new FSevestre\CS\Config\PhpXX();

$config->getFinder()
    ->in([
        __DIR__.'/src'
    ])->exclude([
        'tests'
    ])
;

return $config;

Git

Add .php_cs.cache (this is the cache file created by php-cs-fixer) to .gitignore:

vendor/
.php_cs.cache

Makefile

Create a Makefile with the targets below:

# Coding Style

cs:
	./vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --diff

cs-fix:
	./vendor/bin/php-cs-fixer fix --verbose

cs-ci:
	./vendor/bin/php-cs-fixer fix --dry-run --using-cache=no --verbose --show-progress=estimating

Fixing issues

If you need to check issues locally, run:

$ make cs

If you need to fix issues locally, run:

$ make cs-fix

In your Continuous Integration, run:

$ make cs-ci

Credits

Inspired by m6web/php-cs-fixer-config.

License

This project is licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-04-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固