Install third party

Rating

Some modules need a third party to work. These must be installed in the "libraries" folder.

You can do this in different ways:

as an example we will install the third party for the Photobox module.

by Fillezilla or file management of your cpanel.

by Fillezilla (or other FTP program):

  • unzip the file
  • upload the extracted folder to the "libraries" folder

by file management of your cpanel:

  • upload the zip file to the "libraries" folder
upload

 

  • and extract it.
  • Rename the third party's folder if necessary
  • Remove the zip file
  • Third party is ready to be used.
unzip

by commando WGET

copy the file location of the zip file (vb  https://github.com/yairEO/photobox/archive/1.9.2.zip )

linkin the terminal window go to the "libraries" folder of your site and via the command wget "bestandslocatie" download the zip file to the "libraries" folder (vb: wget https://github.com/yairEO/photobox/archive/1.9.2.zip )wget

Third party photobox zip file is now in the folder (1.9.2.zip) and you have to extract that file, that is possible with the command line: unzip "name zip file" (vb: unzip 1.9.2.zip

now only delete the zip file and give the extracted folder the correct name via the command line:  rm 1.9.2.zip && mv photobox-1.9.2 photobox

wget
by COMPOSER.JSON
  • in the file composer.json below "repositories" place a similar code (depending on third party: here for the photobox module)

 

    "repositories": [
               {
            "type": "package",
            "package": {
                "name": "yairEO/photobox",
                "version": "1.9.12",
                "type": "drupal-library",
                "dist": {
                    "url": "https://github.com/yairEO/photobox/archive/1.9.2.zip",
                    "type": "zip"
                }
            }
        }
    ]

 

note: if something is already listed under "repositories", place a comma after the last parenthesis of each code (except last):

 

    "repositories": [
               {
            "type": "package",
            "package": {
                "name": "yairEO/photobox",
                "version": "1.9.12",
                "type": "drupal-library",
                "dist": {
                    "url": "https://github.com/yairEO/photobox/archive/1.9.2.zip",
                    "type": "zip"
                }
            }
        },
          {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        }
    ]
  • then enter the following command in the terminal window: composer require yairEO/photobox:1.9.12​​