packagist.drupal-composer has been shut down

David Corbacho

If you are seeing this message, is because you are using the deprecated Drupal Packagist, a Composer repository for Drupal. It was shut down Friday 10th of March of 2017.

[Composer\Downloader\TransportException]
The “https://packagist.drupal-composer.org/packages.json" file could not be downloaded: failed
to open stream: Connection refused

It hasn’t been a sudden decision, it has been announced for months that the service will not be available after January 2017.

But still, some of us didn’t know about it (1683 results searching in github)

The solution

Use the official Package Repository from Drupal.org. It has been out of beta since 21st of December (read the announcement)

You might want to read this drupal.org guide: Using Composer to manage Drupal site dependencies

(Screenshot from the guide)

Basically, Your project’s composer.json should be updated to look like the following (for Drupal 8 sites)

{ 
"repositories": {
"drupal": {
"type": "composer",
"url": "https://packages.drupal.org/8"
}
}
}

Do you have still issues?

You can report issues in the project_composer issue queue: https://www.drupal.org/project/project_composer

Thanks to Drupal packagist contributors.

It has been a useful service. Their github repo is here if you need it.

Thanks in particular to:

And Appnovation, who sponsored the initial development of Drupal.org’s composer endpoints.

David Corbacho

Written by

Freelance Frontend Engineer in London https://www.linkedin.com/in/corbacho

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade