[wp-trac] [WordPress Trac] #43449: Use composer.json in plugins?

WordPress Trac noreply at wordpress.org
Thu Mar 1 08:53:04 UTC 2018


#43449: Use composer.json in plugins?
---------------------------+-----------------------------
 Reporter:  dingo_bastard  |      Owner:
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Plugins        |    Version:  trunk
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 Would it be good to ask (require of) plugin developers to use
 `composer.json` files in their plugins?

 The usecase for this, besides tracking the latest version via
 `composer.json`, is to ease the development process.

 When I'm developing a site I like to version the code I'm working on,
 usually using Github. Currently though, I am also putting plugins in my
 repository, which can grow to be quite large (depending on a number of
 plugins used). Having a composer dependency would help with storing huge
 number of plugins in your project - just add it in a `require` field in
 `composer.json` and you don't need to add them to your repository.

 The plugin author can then use [https://packagist.org/ Packagist] to add
 it there as well. And we wouldn't have to use third party sites like
 https://wpackagist.org/ if we want to use composer.

 This is kinda related to https://core.trac.wordpress.org/ticket/36335,
 plus we would educate people on how to use tools that all of the php
 community is using.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43449>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list