johninamillion/php-code-styles 问题修复 & 功能扩展

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

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

johninamillion/php-code-styles

最新稳定版本:0.2.0

Composer 安装命令:

composer require johninamillion/php-code-styles

包简介

PHP-CS-Fixer configuration and PHPStan setup for PHP projects.

README 文档

README

PHP Code-Styles for PHP-CS-Fixer.

PHPStan

Table of Contents

Installation

You can install the package via Composer:

composer require --dev johninamillion/php-code-styles

Add the following scripts to your composer.json file:

{
    "scripts": {
        "post-install-cmd": [
            "johninamillion\\CodeStyles\\Composer::install"
        ],
        "post-update-cmd": [
            "johninamillion\\CodeStyles\\Composer::update"
        ],
        "code:analyse": "./vendor/bin/phpstan analyse",
        "code:format": "./vendor/bin/php-cs-fixer fix"
    }
}

Usage

Fix code styles with PHP-CS-Fixer:

composer code:format

Analyse your code with PHPStan:

composer code:analyse

License

This package is licensed under the MIT License. See the LICENSE file for more details.

All Glory To God - The Father, The Son, and The Holy Spirit.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-09-12