WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#43449 closed enhancement (invalid)

Use composer.json in plugins?

Reported by: dingo_d Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Plugins Keywords:
Focuses: Cc:

Description

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 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.

Change History (3)

#1 @ocean90
4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
  • Version trunk deleted

Hello @dingo_bastard, this Trac is used for enhancements and bug reporting for the WordPress core software.

We can't really enforce all plugin developers to add/use composer.json. If this is about the WordPress Plugin Directory I suggest to discuss this with the Plugins team. There's also a #pluginreview channel on our Slack workspace.

#2 @dingo_bastard
4 years ago

My bad, should I report this on https://plugins.trac.wordpress.org?

#3 @dd32
3 years ago

  • Reporter changed from dingo_bastard to dingo_d
Note: See TracTickets for help on using tickets.