Zum Inhalt springen

Composer: Unterschied zwischen den Versionen

Aus Computech CMS Wiki
Frederick (Diskussion | Beiträge)
Die Seite wurde neu angelegt: „= Composer - The PHP dependency manager = The Drupal community is changing to use Composer to install and update Drupal. Drush has no idea about dependencies…“
 
Phsc (Diskussion | Beiträge)
 
(28 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
= Composer - The PHP dependency manager =
=Allgemeines=


The Drupal community is changing to use Composer to install and update Drupal. Drush has no idea about dependencies as it is not a dependency manager.
Drupal Module installieren:
<code>composer require 'drupal/ctools:^3.4'</code>
Module einschalten mit Drush
<code>drush en -y ctools</code>
== Module mit Patch auf inkompatibler Drupal Version installieren ==
<code>composer req mglaman/composer-drupal-lenient</code>
<code>composer config --merge --json extra.drupal-lenient.allowed-list '["drupal/node_view_permissions"]' </code>


== Install the Drupal 8 Lightning distribution with Composer ==
composer, lenient, Drupal 10, Patch, inkompatibel, modul


composer create-project acquia/lightning-project:^8.1.0 '''MYPROJECT''' --no-interaction
== Composer Configuration ==
Where '''MYPROJECT''' is the name of the project folder. Inside the project folder will be the webroot folder called '''docroot'''. This is the folder to server with the web server.
List configuration from the composer.json file in the current folder.
 
<code>composer config --list</code>
ie. To install a project called '''meos''' on the '''dev01''' server, first go to <code>/var/www</code> then run:
composer create-project acquia/lightning-project:^8.1.0 '''meos''' --no-interaction
 
For more information about the Lightning Distribution see its [https://www.drupal.org/project/lightning Drupal.org project page] or [https://github.com/acquia/lightning-project Github page].

Aktuelle Version vom 15. April 2024, 13:49 Uhr

Allgemeines

Drupal Module installieren: composer require 'drupal/ctools:^3.4' Module einschalten mit Drush drush en -y ctools

Module mit Patch auf inkompatibler Drupal Version installieren

composer req mglaman/composer-drupal-lenient composer config --merge --json extra.drupal-lenient.allowed-list '["drupal/node_view_permissions"]'

composer, lenient, Drupal 10, Patch, inkompatibel, modul

Composer Configuration

List configuration from the composer.json file in the current folder. composer config --list