jumptwentyfour/project-analysers 问题修复 & 功能扩展

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

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

jumptwentyfour/project-analysers

最新稳定版本:V1.1.0

Composer 安装命令:

composer require jumptwentyfour/project-analysers

包简介

A base set of analysers extending upon Laravel Enlightn to enforce consistency, security and reliability

README 文档

README

A base set of analysers extending upon Laravel Enlightn to enforce consistency, security and reliability.

Setup

Add the following to your composer.json file.

"repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/JumpTwentyFour/project-analysers"
        }
    ],

Then run the following commands:-

composer require jumptwentyfour/project-analysers

php artisan vendor:publish --tag=enlightn

Inside of config/enlightn.php add the following path to the analyzer_paths key.

JumpTwentyFour\\ProjectAnalyzers\\Analyzers' => base_path('vendor/jumptwentyfour/project-analysers/src/Analyzers')

Custom Analysers

Reliability

Node Version Analyser

An analyser to check whether an .nvmrc file exists within the project to enforce consistency of node versions.

Invokable Controllers Analyser

An analyser to check whether all controllers adhere to being single action invokable controllers.

In order to ignore controllers for this rule add to config/enlightn.php

'invokable' => [
    'ignore_controllers' => [
        <Your-Controller>::class
    ]
]

Security

Tinker Analyzer

An analyser to check if Laravel Tinker is installed. We should ideally remove this due to the risk of it being installed in production by mistake, even when present in dev-dependencies.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-05-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固