Using Composer for installing MantisBT plugins

General discussion about MantisBT Plugins

Moderators: Developer, Contributor

Post Reply
grv87
Posts: 1
Joined: 01 Mar 2020, 05:47

Using Composer for installing MantisBT plugins

Post by grv87 »

composer/installers v1.8.0 added support for MantisBT plugins (PR).
Now it's possible to use Composer to install MantisBT plugins. They will be installed in plugins directory.

General description of the method: https://getcomposer.org/doc/faqs/how-do ... amework.md.
Plugin must be packaged with Composer, with mantisbt-plugin type.

Working example:
* Plugin packaged with Composer: https://github.com/FIDATA/Releases/blob ... poser.json
* Plugin used in MantisBT instance: https://github.com/FIDATA/mantisbt/blob ... poser.json

Hope that MantisBT plugin authors will start to package their plugins with Composer.
And this will simplify plugin management for owners of MantisBT instances.
dregad
Developer
Posts: 94
Joined: 26 Jul 2010, 14:24

Re: Using Composer for installing MantisBT plugins

Post by dregad »

Nice !

I'll give that a shot when I have some time.
andrzejkupczyk
Posts: 6
Joined: 19 Apr 2020, 17:01

Re: Using Composer for installing MantisBT plugins

Post by andrzejkupczyk »

It works as advertised.
Consider :arrow: supporting my open-source projects <3
brlumen
Posts: 2
Joined: 24 Jul 2018, 02:54

Re: Using Composer for installing MantisBT plugins

Post by brlumen »

Hi!
Can the composer pull in the plugin's internal dependencies when installing the plugin?
I'm trying to figure out how composer, without the composer.lock file (the file is not supplied in the distribution for end use), will understand which packages are in the "mantisbt/vendor" folder and which ones need to be uploaded for the plugin.
Post Reply