signifly/php-config 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

signifly/php-config

最新稳定版本:v1.0.0

Composer 安装命令:

composer require signifly/php-config

包简介

Signifly PHP Config

README 文档

README

This repository contains the default configuration files for various services.

Code formatting

We use php-cs-fixer to format our code in order to standardize the styling across projects. There should be a plugin that formats the file on save to the most popular editors, such as: VS Code, Sublime Text, PHP Storm

Optionally, add the following to the scripts section in the project's composer.json file:

"format": [
    "vendor/bin/php-cs-fixer fix"
],

This allows you to run composer format from your terminal to format the entire code base.

Usage

Install the package by pulling it in from Composer:

composer require signifly/php-config --dev

Then update the .php-cs-fixer.php file:

$finder = (new PhpCsFixer\Finder)
    ->notPath('bootstrap')
    ->notPath('storage')
    ->notPath('vendor')
    ->notPath('docker')
    ->in(getcwd())
    ->name('*.php')
    ->notName('*.blade.php')
    ->notName('index.php')
    ->notName('server.php')
    ->ignoreDotFiles(true)
    ->ignoreVCS(true);

return Signifly\styles($finder);

Remember to update the Finder according to the project setup.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-05-20