定制 riimu/php-cs-fixer-config 二次开发

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

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

riimu/php-cs-fixer-config

最新稳定版本:v0.1.1

Composer 安装命令:

composer require riimu/php-cs-fixer-config

包简介

Ready to use and highly opinionated php cs fixer config based on my and community standards

README 文档

README

Most of my projects use a very consistent set of coding standards rules and project hierarchy. Rather than copying the same PHP Coding Standards Fixer config file .php_cs file across different projects and then trying to figure out which project had the latest copy, I've created this composer package as a way to include the same set of rules into every project via composer.

These standards are based on the community's best practices and PSR standards in addition to what I personally consider to be good taste. You may freely use this configuration if you want, but do note that it may change and evolve as time passes since I reserve the right to change my mind.

Travis Packagist

Usage

To add these rules into your project, you should first include them via composer as dev dependency using

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

Then you should create a file named .php_cs in your project root directory that simply contains

<?php

return require __DIR__ . '/vendor/riimu/php-cs-fixer-config/config.php';

The rules from the config will now be applied to files inside src and tests directories (if they exist), when you run php-cs-fixer normally in the project root, e.g.

$ php-cs-fixer fix --dry-run -v --diff --diff-format=udiff

Credits

This package is Copyright (c) 2018 Riikka Kalliomäki.

See LICENSE for license and copying information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-07-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固