[wp-trac] [WordPress Trac] #47256: Use composer to install and update external PHP libraries

WordPress Trac noreply at wordpress.org
Mon May 13 21:57:30 UTC 2019


#47256: Use composer to install and update external PHP libraries
--------------------------------+-------------------------------
 Reporter:  spacedmonkey        |       Owner:  (none)
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  External Libraries  |     Version:  5.2
 Severity:  normal              |  Resolution:
 Keywords:  needs-patch         |     Focuses:  coding-standards
--------------------------------+-------------------------------

Comment (by swissspidy):

 > As of WordPress 5.2, the minimum version of PHP requires was changed to
 5.6. This opens up some options around how PHP dependencies can be
 managed.

 Since this is only meant for during the build process, the recent PHP
 version bump should be irrelevant for that, no?

 If we want to have autoloading as well, I'd suggest continuing work on
 #36335.

 > If there are modification to these library in core, these libraries
 should be forked and maintained outside of core.

 If only minor modifications are needed, the most common approach is to
 [https://github.com/cweagans/composer-patches use patches].

 > But it does maintain the directory / file location using a package
 called `mnsami/composer-custom-directory-installer`

 Hmm that package seems to be quite popular, but not very actively
 maintained. Might this become an issue?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47256#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list