定制 swissup/module-diagnostic 二次开发

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

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

swissup/module-diagnostic

最新稳定版本:1.0.10

Composer 安装命令:

composer require swissup/module-diagnostic

包简介

Swissup Diagnostic Module

README 文档

README

The Swissup Diagnostic module is a tool designed for Magento 2 store owners and developers to gather essential information about their Magento environment. This command-line utility provides an overview of the PHP, Magento, and server-related details.

Key Features:

  • Environment Information: Details such as PHP version, Magento version, Composer version, and server user information.

  • Folder Structure Check: Verify if any default Magento and Swissup modules/themes were not overwritten.

  • Magento 2 Theme Data: Display a table of Magento 2 themes to check if no virtual themes exist.

  • Fixing the virtual themes

  • Assets Optimization Manager: Enable/disable JS and CSS merge and minification settings.

  • Module Management: Disable/enable all Swissup modules or 3rd-party modules while preserving their original state.

Usage:

Execute the following commands to use the diagnostic tools:

# Display environment and system information
bin/magento swissup:info

# Fix virtual themes
bin/magento swissup:info:virtualfix

# Manage JS/CSS optimization settings
bin/magento swissup:info:assets

# Enable all optimizations (merge and minify JS/CSS/HTML)
bin/magento swissup:info:assets --enable-all

# Disable all optimizations
bin/magento swissup:info:assets --disable-all

# Enable specific settings
bin/magento swissup:info:assets --merge-css=1 --minify-css=1
bin/magento swissup:info:assets --merge-js=1 --minify-js=1
bin/magento swissup:info:assets --bundle-js=1 --minify-html=1

# Disable specific settings
bin/magento swissup:info:assets --merge-css=0 --minify-js=0

# Disable all currently enabled Swissup modules (saves state for later restoration)
bin/magento swissup:info:disable-swissup

# Enable previously disabled Swissup modules (restores original state)
bin/magento swissup:info:enable-swissup

# Disable all currently enabled 3rd-party modules, except Magento_ and Swissup_ (saves state for later restoration)
bin/magento swissup:info:disable-thirdparty

# Enable previously disabled 3rd-party modules (restores original state)
bin/magento swissup:info:enable-thirdparty

Installation

For clients

There are several ways to install extension for clients:

  1. If you've bought the product at Magento's Marketplace - use Marketplace installation instructions
  2. Otherwise, you have two options:

For developers

Use this approach if you have access to our private repositories!

composer config repositories.swissup composer https://docs.swissuplabs.com/packages/
composer require swissup/module-diagnostic:dev-master --prefer-source
bin/magento setup:upgrade

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2024-02-22