Creating Composer aware modules with Drupal core's new Package Manager module
Creating Composer aware modules with Drupal core's new Package Manager module
Package Manager, a new experimental module in Drupal Core, provides an API for interacting with Composer, which has been powering the Automatic Updates and Project Browser contrib modules for years. In this session, we will explore how you can leverage this API to create modules that effectively utilize Composer.
In this session, we will explore several example modules that leverage the Package Manager’s API to implement a variety of features, including:
* Providing a simple form for installing modules by project name or URL
* Removing unused projects from your current codebase
* Displaying detailed information about Automatic Updates operations
* Implementing more control over which modules can be installed through the Project Browser
These examples will demonstrate how to:
* Create user interfaces to perform Composer operations
* Use the Package Manager event system to customize
Composer operations
* Prevent Composer operations based on custom criteria
* Get detailed information about currently installed Composer packages
Whether you want to create a custom module to integrate with Automatic Updates and Project Browser or create the next big contrib project that performs Composer operations, this session will get you started.