定制 qoliber/magerun 二次开发

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

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

qoliber/magerun

最新稳定版本:1.0.4

Composer 安装命令:

composer require qoliber/magerun

包简介

无描述信息

README 文档

README

Command Lines for Magerun to

  • data-trimmed DB dumps (additional tables added)
  • compile themes and run production mode 95% faster.
  • optimize NonComposerComponentRegistration.php file (saves between 30-80ms on page loading times) For more info visit the YAML file.

Installation

Require the package

composer require qoliber/magerun

New Commands:

  • qoliber:magerun:theme:active: Get list of used themes

    Example:

    www-data@www-data@mageos-php-fpm:/var/www/html$ ./n98-magerun2.phar qoliber:magerun:theme:active --theme Qoliber/default --theme Magento/luma --theme Hyva/default --theme Magento/backend adsasd
  • qoliber:magerun:locale:active: Get list of active locales

    Example:

    www-data@mageos-php-fpm:/var/www/html$ ./n98-magerun2.phar qoliber:magerun:locale:active en_US pl_PL
    • qoliber:magerun:mode:production: Set production mode but compile only used themes and locales

      Only compiles required themes and locales that are active, examples. Static compilation:

      php bin/magento deploy:mode:set production n98-magerun2.phar qoliber:magerun:mode:production
      2 store views
      2 locales
      2 store views
      2 locales
      Time: Execution time: 49.60s Execution time: 4.13s
      8 store views
      2 locales
      8 store views
      2 locales
      Time: Execution time: 373.39s Execution time: 5.57s
  • qoliber:magerun:non-composer-autoloader: Removes glob from app/etc/NonComposerComponentRegistration.php - use only in production mode

    Replaces content of app/etc/NonComposerComponentRegistration.php file like this:

     $registrationFiles = array ( 0 => '/var/www/html/app/code/MerchantUniqueFeatures/ShippingBoxes/registration.php', 1 => '/var/www/html/app/code/MerchantUniqueFeatures/Showoutofstockprice/registration.php', 2 => '/var/www/html/app/code/MerchantUniqueFeatures/Extensions/registration.php', 3 => '/var/www/html/app/code/MerchantUniqueFeatures/UrlOptimization/registration.php', 4 => '/var/www/html/app/code/MerchantUniqueFeatures/LayoutProcessorPlugin/registration.php', 5 => '/var/www/html/app/code/MerchantUniqueFeatures/AutoAssignSources/registration.php', 6 => '/var/www/html/app/code/MerchantUniqueFeatures/StockFilter/registration.php', 7 => '/var/www/html/app/code/MerchantUniqueFeatures/Pay2Ship/registration.php', // 97 => '/var/www/html/app/design/frontend/MerchantUniqueTheme/Theme1/registration.php', 98 => '/var/www/html/app/design/frontend/MerchantUniqueTheme/Theme2/registration.php', [...]

Enjoy, @qoliber team

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固