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.
In this tutorial, here are the steps that are going to do:
- Install the drupal module composer manager
- Then we are going to view the composer.json file management and vendor dir settings
- Then we are going to include two packages one for database and second to convert a query result into a csv file