Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

shiroamada's avatar

added to packagist.org, but cannot install from composer and the label show NOT FOUND

I published a package in packagist. I can't install via composer, it show 404 here is the link: https://packagist.org/packages/shiroamada/ultrasms-laravel-notification

not found

Github: www.github.com/shiroamada/ultrasms-laravel-notification

But When I run composer require shiroamada/ultrasms-laravel-notification

It throw Error:- [InvalidArgumentException] Could not find a version of package shiroamada/ultrasms-laravel-notification matching your minimum-stability (dev). Require it with an explicit version constraint allowing its desired stability.

When I added -vvv, I notice that, the json is 404 404 Error

Composer v1 https://repo.packagist.org/p/shiroamada/ultrasms-laravel-notification.json

Composer v2 https://packagist.phpcomposer.com/p2/shiroamada/ultrasms-laravel-notification.json

May I know what I had missed that publish 404?

0 likes
2 replies
Sinnbeck's avatar

Try setting a version number when requiring

composer require shiroamada/ultrasms-laravel-notification "^v1.0"
shiroamada's avatar

Weird.. the label still show NOT FOUND. but I try to delete the package and submit again. This round I can install via composer.

Update: found the issue for the PACKAGIST NOT FOUND, I got typo https://shields.io/category/version

Please or to participate in this conversation.