I'm installing a custom module in M2 using composer from my private Gitlab repo and it is working fine.

After I've added the dependency of other modules(using composer require) in my custom module which placed in the same private Gitlab but it is not working with the composer require test/module-test-extended:dev-master --ignore-platform-reqs command.


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

Problem 1
 - Installation request for test/module-test-extended dev-master -> satisfiable by test/module-test-extended[dev-master].
 - test/module-test-extended dev-master requires test/module-test dev-master -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.


  "name": "test/module-test-extended",
  "description": "Test Module",
  "type": "magento2-module",
  "version": "1.0.0",
  "license": [
  "require": {
  "repositories": [
        "type": "vcs",
        "url": "https://vcs.xxx.com/test/module-test"

Note: Implementing composer dependency without packagist

  • have you added the repo in your composer json? the dependency is not sufficeint Aug 16, 2019 at 7:11
  • @PhilippSander please check the update description.
    – Dj3
    Aug 16, 2019 at 7:26

1 Answer 1


it's just about your php version not about dependencies you can just ignore php version using --ignore-platform-reqs

so you run something like

composer update --ignore-platform-reqs

  • I've checked above command. Please check the updated description.
    – Dj3
    Aug 16, 2019 at 8:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.