Advertising sustains the DA. Ads are hidden for members. Join today

Contributed module documentation

Ludwig

This module provides a manual alternative to Composer for Drupal 8+ users.

Why Ludwig?

Contributed modules often require external PHP libraries. To use them Composer is needed. Ludwig is Composer alternative in such cases.

Drupal Core compatibility

2.0.x branch is compatible with Drupal 9/10

Installation and Usage

Step by step guide for Ludwig module installation and usage.

Maintenance of Ludwig managed modules

Step by step guide on how to properly maintain/update Ludwig managed modules.

Drupal Commerce + Ludwig installation guide

Drupal Commerce installation without Composer. Step by step guide.

Manual library setup [obsolete]

You need this if the automatic download button doesn't work for you only.

Can I manage libraries of all contrib modules with Ludwig?

In order for Ludwig to be able to manage contrib module's libraries, the module has to support Ludwig by providing the ludwig.json file.

Autoload library types support status

Ludwig has support for 'PSR-4', 'PSR-0', 'Classmap' and 'Files' autoload types.

Migration from Ludwig to Composer (instructions)

Since Drupal 8.8.0 is released it has become a lot easier to manage Drupal with Composer.

Ludwig warnings and troubleshooting

The list of warnings which can appear at Ludwig Reports > Packages page. And troubleshooting guide.

Ludwig integration developer's guide and FAQ

Are you a module developer or maintainer who would like to decide to add or not Ludwig integration to your project? This guide is for you.

Developers guide: How to integrate 'classmap' and 'files' type libraries with Ludwig

The 'classmap' and 'files' type libraries aren't supported by Ludwig automatically. The ludwig.require_once service can help in this regard.

The optional Drupal Core compatibility argument

This argument(s) can be added inside the ludwig.json file to include some library version for specific Drupal major versions only.

Drush and Drupal console commands [obsolete]

Ludwig has abandoned Drush and Drupal Console support with 8.x-1.4 release.

Guide maintainers

devad's picture