Installation library with composer documentation

Created on 2 August 2018, over 6 years ago
Updated 11 June 2024, 6 months ago

Great work!

If you would like to install the select2 library with composer, you will need to add the following to the composer.json file into the repositories array:

    {
      "type": "package",
      "package": {
        "name": "jquery/select2",
        "version": "4.0.5",
        "type": "drupal-library",
        "dist": {
          "url": "https://github.com/select2/select2/archive/4.0.5.zip",
          "type": "zip"
        }
      }
    }

After this you can install the library with "composer require jquery/select2" and the library will be downloaded into the libraries folder.

Maybe this could be added to the documentation?

📌 Task
Status

Fixed

Version

1.0

Component

Documentation

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024