Composer tips and tricks

Submitted by Greg Nowak on 2019-05-30

Composer without root

Run this in ~/composer: curl -sS https://getcomposer.org/installer | php

Put this in .bashrc: alias composer="php ~/composer/composer.phar"

Install Drupal 8 With Composer In Custom Web Folder

composer create-project drupal-composer/drupal-project:8.x-dev my_site_name_dir --no-interaction --no-install
Adjust web folder in composer.json file and then run "composer install".

Check available versions of a package

composer show package_name --available


Submitted by Greg Nowak on 2015-03-14


  • Backend development for casino web app with requirements from Spillemyndigheden.dk.
    • Server setup and optimization.
    • XML generation.
    • Tamper token.
  • Wordpress optimization, upgrading, theme development, plugin development, and migrating old php/asp sites to Wordpress.
  • Upgrading Drupal 7 sites to Drupal 8 and Drupal 9.