Amitav Roy

Blog on web and travel

Using composer packages with Drupal 7

Posted on July 2019

In this video tutorial, I will show you how we can use composer packages inside Drupal modules. This module will give us easy access to using popular classes and extend our Drupal module with that functionality. In this video I will convert a database query result into a CSV as well as use famous Illuminate database package to query a Drupal database for demonstration purpose.

The Video

In this tutorial, here are the steps that are going to do:

  1. Install the drupal module composer manager
  2. Then we are going to view the composer.json file management and vendor dir settings
  3. Then we are going to include two packages one for database and second to convert a query result into a csv file