PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, January 17, 2022

[FIXED] Composer minimum stability issue

 January 17, 2022     composer-php, php     No comments   

Issue

I am trying to make an extension for Flarum forum. On composer.json, I added the following lines.

"minimum-stability": "beta",
"prefer-stable": true

When I run composer require evaldasl/flarum-ext-lithuanian I get the following error.

Could not find package evaldasl/flarum-ext-lithuanan at any version for your minimum-stability (beta). Check the package spelling or your minimum-stability

How do I avoid that error?


Solution

After searching packagist.org, I can see that it's not registered yet. Even though you have signed up and submitted your other Github project, it doesn't automatically list all your projects. You must submit each one.

Also note that there's already a project registered by this same name, so it might be considered a fork.

Do not submit forks of existing packages. If you need to test changes to a package that you forked to patch, use VCS Repositories instead. If however it is a real long-term fork you intend on maintaining feel free to submit it.

Once you submit, then your composer require command will work.



Answered By - Jeff Puckett
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing