Search...
Toggle theme

Drupal 7 NES Contrib Modules

The available methods for downloading/installing NES versions of Contributed Drupal 7 Modules.

Installation Methods

HeroDevs currently offers multiple methods for downloading and installing Drupal 7 NES Modules: Composer Installation, Direct Download and Manual Installation

Composer Installation

Authentication Setup

Create an auth.json file or update your existing one:

{
  "bearer": {
    "registry.nes.herodevs.com": "[ACCESS_TOKEN]"
  }
}

Repository Configuration

Add the HeroDevs repository to your composer.json file:

"repositories": [
  {
    "type": "composer",
    "url": "https://registry.nes.herodevs.com/composer/repository"
  }
]

Package Installation

First, add the NES Drupal module to your composer.json file:

composer require "neverendingsupport/[MODULE NAME AND VERSION]" --no-update

Then install dependencies:

composer update drupal/[MODULE NAME] --with-dependencies --no-dev

Direct Download and Manual Installation

Download through your browser using Basic Authentication, or use command line tools like cURL by setting authentication headers.

Download Package

Use cURL to download the tarball with your access token:

NES_ACCESS_TOKEN=[YOUR NES ACCESS TOKEN]
curl --header "Authorization: Bearer $NES_ACCESS_TOKEN" --output ./[MODULE NAME].zip \
--location https://registry.nes.herodevs.com/composer/pkg/neverendingsupport/[MODULE NAME]/[VERSION]/release.zip

Remove existing module from the contrib folder

rm -rf /path/to/site/sites/all/modules/contrib/[MODULE NAME]

Unzip and move to correct folder

From the folder you downloaded the tarball to run:

unzip [MODULE NAME].zip -d /path/to/site/sites/all/modules/contrib/[MODULE NAME]

Verify that the module has been uncompressed in the correct location.

Cleanup

Remove the downloaded zip file from your root directory.

Clear caches with:

drush cc all