Installing mantis via composer

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
mlocati
Posts: 1
Joined: 25 May 2026, 14:09

Installing mantis via composer

Post by mlocati »

I've noticed that Mantis is published on packagist (https://packagist.org/packages/mantisbt/mantisbt).

Does that mean that we can install Mantis via composer?

I've tried with the following composer.json

Code: Select all

{
    "name": "my/test",
    "type": "project",
    "require": {
        "mantisbt/mantisbt": "^2.28"
    }
}
but

Code: Select all

composer update
fails with the following error:

Code: Select all

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires mantisbt/mantisbt ^2.28 -> satisfiable by mantisbt/mantisbt[2.28.2, 2.28.3].
    - mantisbt/mantisbt[2.28.2, ..., 2.28.3] require dapphp/securimage dev-mantis -> found dapphp/securimage[dev-master, dev-nextgen, 3.5.4, ..., 3.6.8, 4.0.1, 4.0.2] but it does not match the constraint.
The error is caused by this line (dapphp/securimage hasn't a "mantis" branch published on packagist).

So, I'm wondering if mantis can be installed via composer (and, if not, why it's published on packagist)...
atrol
Site Admin
Posts: 8574
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Installing mantis via composer

Post by atrol »

Installation is officially supported just the way it's described in Admin Guide.

Having the package on Packagist is only to be able to qualify the Security advisories on GitHub
https://docs.github.com/en/code-securit ... advisories
https://packagist.org/packages/mantisbt ... advisories

For development purposes you can clone the repository from GitHub and run composer install after that.
https://mantisbt.org/docs/master/en-US/ ... lone.clone
Please use Search before posting and read the Manual
Post Reply