Page 1 of 1

Installing mantis via composer

Posted: 25 May 2026, 14:19
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)...

Re: Installing mantis via composer

Posted: 29 May 2026, 18:39
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