Composer Meet Drush

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
droath's picture

Hey Guys -

What do you think about a composer plugin to run Drush or Drupal console commands based on a composer operation? As I was wanting to streamline the Drupal composer workflow. I came up with a project that tried to provide a solution.

https://github.com/droath/drupal-module-installer

Would like to get suggestions about using this approach? Or other solutions that you've came up with in recent Drupal 8 projects.

Comments

what's the benefit of having

Hadi Farnoud's picture

what's the benefit of having composer for Drupal. it's relatively useless, isn't it?

Hadi Farnoud
فروشگاه ساز

No, it's not. Composer is the

daften's picture

No, it's not. Composer is the de facto standard for package management. It is maintained by a lot of people and supports a lot more use cases than drush make does. Version pinning based on semantic versioning for example. It's not perfect for Dupal atm, because it tries to be a mix between the old and new way of doing things. I believe we should fully embrace it and support drush make mainly as legacy.

Composer is the de facto

kreynen's picture

Composer is the de facto standard for PHP package management.

Yes @kreynen, my bad, PHP

daften's picture

Yes @kreynen, my bad, PHP package management is absolutely correct. But that was not my main point, but thanks for correcting :)