{"id":13852346,"url":"https://github.com/zaporylie/composer-drupal-optimizations","last_synced_at":"2025-04-04T19:08:52.613Z","repository":{"id":57089351,"uuid":"140488616","full_name":"zaporylie/composer-drupal-optimizations","owner":"zaporylie","description":"Saves memory and CPU cycles when you run `composer update`","archived":false,"fork":false,"pushed_at":"2020-10-22T13:27:00.000Z","size":48,"stargazers_count":140,"open_issues_count":3,"forks_count":16,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-28T18:09:01.886Z","etag":null,"topics":["drupal","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zaporylie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-10T21:23:26.000Z","updated_at":"2024-10-31T19:20:21.000Z","dependencies_parsed_at":"2022-08-20T15:30:22.504Z","dependency_job_id":null,"html_url":"https://github.com/zaporylie/composer-drupal-optimizations","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaporylie%2Fcomposer-drupal-optimizations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaporylie%2Fcomposer-drupal-optimizations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaporylie%2Fcomposer-drupal-optimizations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaporylie%2Fcomposer-drupal-optimizations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zaporylie","download_url":"https://codeload.github.com/zaporylie/composer-drupal-optimizations/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234921,"owners_count":20905854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drupal","hacktoberfest"],"created_at":"2024-08-04T22:01:16.319Z","updated_at":"2025-04-04T19:08:52.597Z","avatar_url":"https://github.com/zaporylie.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"Optimize Composer for Drupal projects\n====\n[![Build Status](https://travis-ci.org/zaporylie/composer-drupal-optimizations.svg?branch=master)](https://travis-ci.org/zaporylie/composer-drupal-optimizations)\n[![Packagist](https://img.shields.io/packagist/v/zaporylie/composer-drupal-optimizations.svg)](https://packagist.org/packages/zaporylie/composer-drupal-optimizations)\n\n\n# About\n\nThis composer-plugin contains a set of improvements that makes running heavy duty composer commands (i.e. `composer update` or `composer require`) much faster.\n\n### Composer 2\nSince 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.\n\n# Installation\n\n```bash\ncomposer require zaporylie/composer-drupal-optimizations:^1.1 --dev\n```\n\nNo configuration required 🎊\n\n# Optimizations\n\n- Reduce memory usage and CPU usage by removing legacy symfony tags\n\n# Benchmark\n\nFollowing numbers are for clean https://github.com/drupal-composer/drupal-project/ without and with this plugin.\n\nBefore:\n\n```\nMemory usage: 323.19MB (peak: 1121.09MB), time: 13.68s\n```\n\nAfter:\n\n```\nMemory usage: 238.66MB (peak: 297.17MB), time: 4.84s\n```\n\n\u003e php 7.2, macOS High Sierra, i7, 16GB RAM\n\n# Configuration\n\nIf no configuration is provided this package will provide sensible defaults based on the `drupal/core` version constraint in the root composer.json\nfile. Default configuration should cover 99% of the cases. However, in case you want to manually specify the tags\nthat should be filtered out you are welcome to use the `extra` section:\n\n```json\n{\n  \"extra\": {\n    \"composer-drupal-optimizations\": {\n      \"require\": {\n        \"symfony/symfony\": \"\u003e3.4\"\n      }\n    }\n  }\n}\n```\n\n***Recommendation note:***\nUse defaults (skip config above) if possible - this package will be maintained throughout the Drupal's lifecycle in order\nto optimize legacy constraints in parallel with Drupal's requirements.\n\nAll 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.\n\n# Credits\n\n- Symfony community - idea and development; Special thanks to @nicolas-grekas\n- Jakub Piasecki - port and maintenance\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaporylie%2Fcomposer-drupal-optimizations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaporylie%2Fcomposer-drupal-optimizations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaporylie%2Fcomposer-drupal-optimizations/lists"}