Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

214
Visualizações
my published composer package not installable

I published a package on packagist and it is not installable.

$ composer --version
Composer version 1.10.15 2020-10-13 15:59:09

$ composer show --all mynamespace/mypackage
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/

  [InvalidArgumentException]
  Package mynamespace/mypackage not found

$ (O4ADEV-357) composer require mynamespace/mypackage
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/

  [InvalidArgumentException]
  Could not find a matching version of package mynamespace/mypackage. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (alpha).

I also see this warning on the packagist page for my package.

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy. It seems to be due to the fact that my package does not support composer 1.

Is there a way to update my package so that it supports both Composer 1+ and Composer 2+? Or is this not possible on packagist?

Please note I have created a release of the package on github and can see the first version of my package is on the packagist homepage enter image description here

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda