zaporylie/composer-drupal-optimizations 问题修复 & 功能扩展

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

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

zaporylie/composer-drupal-optimizations

Composer 安装命令:

composer require zaporylie/composer-drupal-optimizations

包简介

Composer plugin to improve composer performance for Drupal projects

README 文档

README

Build Status Packagist

About

This composer-plugin contains a set of improvements that makes running heavy duty composer commands (i.e. composer update or composer require) much faster.

Composer 2

Since Composer 2 is quite fast by default, this plugin is not needed, and will be disabled if Composer 2 is detected. If everyone involved in development of a project is using Composer 2, this plugin becomes redundant and can be removed from the list of project dependencies.

Installation

composer require zaporylie/composer-drupal-optimizations:^1.1 --dev

No configuration required 🎊

Optimizations

  • Reduce memory usage and CPU usage by removing legacy symfony tags

Benchmark

Following numbers are for clean https://github.com/drupal-composer/drupal-project/ without and with this plugin.

Before:

Memory usage: 323.19MB (peak: 1121.09MB), time: 13.68s

After:

Memory usage: 238.66MB (peak: 297.17MB), time: 4.84s

php 7.2, macOS High Sierra, i7, 16GB RAM

Configuration

If no configuration is provided this package will provide sensible defaults based on the drupal/core version constraint in the root composer.json file. Default configuration should cover 99% of the cases. However, in case you want to manually specify the tags that should be filtered out you are welcome to use the extra section:

{
  "extra": {
    "composer-drupal-optimizations": {
      "require": {
        "symfony/symfony": ">3.4"
      }
    }
  }
}

Recommendation note: Use defaults (skip config above) if possible - this package will be maintained throughout the Drupal's lifecycle in order to optimize legacy constraints in parallel with Drupal's requirements.

All you have to do is to make sure your drupal core constraint in the root composer.json is set to drupal/core: ^8.5 or above. If you use a Drupal distribution, be sure to explicitly require drupal/core in your own project as well.

Credits

  • Symfony community - idea and development; Special thanks to @nicolas-grekas
  • Jakub Piasecki - port and maintenance

zaporylie/composer-drupal-optimizations 适用场景与选型建议

zaporylie/composer-drupal-optimizations 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 10.26M 次下载、GitHub Stars 达 140, 最近一次更新时间为 2018 年 07 月 15 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 zaporylie/composer-drupal-optimizations 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 zaporylie/composer-drupal-optimizations 我们能提供哪些服务?
定制开发 / 二次开发

基于 zaporylie/composer-drupal-optimizations 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 10.26M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 146
  • 点击次数: 14
  • 依赖项目数: 123
  • 推荐数: 0

GitHub 信息

  • Stars: 140
  • Watchers: 11
  • Forks: 16
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2018-07-15