承接 labelworx/shift-styles 相关项目开发

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

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

labelworx/shift-styles

Composer 安装命令:

composer require labelworx/shift-styles

包简介

PHP code linter using Laravel Shift ruleset and PHP-CS-Fixer

README 文档

README

This package allows you to quickly run the Laravel Shift linter commands locally using php artisan shift.

Using PHP CS Fixer and a ruleset created by Laravel Shift, this makes linting your Laravel project simple and adhere to "The Laravel Way".

Your can find the official ruleset used in this package in this gist.

Installation

You can install the ruleset via composer using the following command:

composer require --dev labelworx/shift-styles

Setup

This command will require a .php_cs.dist configuration file for PHP CS Fixer to be available in your project root directory.

You can create this file using the command.

php artisan shift:setup

This file contains the default Laravel folder structure. These are the folders that will be scanned by PHP CS Fixer. You will need to add additional paths to this file if your project structure is different from that listed below.

A typical Laravel Project includes these directories:

<?php

$finder = PhpCsFixer\Finder::create()
  ->in([
    __DIR__ . '/app',
    __DIR__ . '/config',
    __DIR__ . '/database',
    __DIR__ . '/resources',
    __DIR__ . '/routes',
    __DIR__ . '/tests',
  ]);

return Labelworx\styles($finder);

PHP CS Fixer uses a cache file to speed up usage. You are recommended that to add the .php_cs.cache to you .gitignore file.

Usage

To run and fix files -

php artisan shift

Resources

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-09-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固