GitHub Link -> https://github.com/mahesh-code-work/Module-Learn/

I create one small basic module and try to install using composer.

How to set up the whole setting and what is the right way to do this?

Please explain the steps to achieve?


Added Module to packagist.org


enter image description here

  • try to run composer require customdol/productlist 1.0.0 Jan 21, 2022 at 9:19
  • @GohilRajesh not working Please help me to solve above issue.
    – Msquare
    Jan 21, 2022 at 9:24
  • Since you mentioned that you are the author of the package you should create a release if you think that your version may be used in production. also try composer require customdol/productlist:dev-master Jan 21, 2022 at 9:51
  • @GohilRajesh you can check the release github.com/mahesh-code-work/Module-Learn Could not find package customdol/productlist. Did you mean this? customdol/productlist error come
    – Msquare
    Jan 21, 2022 at 9:56
  • I think when you first create a repo and connect to Packagist, you need to create a "release" in Github. If not, it defaults to "dev-master" which if the repo/project you are trying to add to has "stable" as the minimum stability, it causes problems here. But if you go into Github for your new repo and navigate to "Release" and create a new release, even one tagged "0.0.1" then Packagist (Composer) will accept that as a satisfactory minimum-stability match. Jan 21, 2022 at 9:59

1 Answer 1


You can use https://packagist.org/ to allow your module to install by composer. It is pretty easy you can read more using this link https://packagist.org/about

If it will help us then you can up vote and accept this as useful.

  • Could not find a version of package customdol/productlist matching your minimum-stability (dev). Require it with an explicit version constraint allowing its desired stability. Error Comes when run composer require customdol/productlist. Please check my composer.json file. and please explain in steps.
    – Msquare
    Jan 21, 2022 at 8:18

Your Answer

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

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