Apply a patch with composer
Step 1 : Add the package cweagans/composer-patchescomposer require cweagans/composer-patches
Step 1 : Add the package cweagans/composer-patchescomposer require cweagans/composer-patches
Add following packages to composer.json file next to drupal repository
1. A web server (Apache or another web server)
2. Database (Mysql, MariaDB or SQLite)
Composer can hadle CVS (git, svn ...) and ZIP packages.
To install/Update your custom modules, add a custom repository to the composer.json file, following this example.
1. Add package repositories
Here, youtubeapi and sadb
composer create-project drupal/recommended-project my-project
For more information, see : https://www.drupal.org/docs/develop/using-composer/starting-a-site-using-drupal-composer-project-templates
wget https://getcomposer.org/installer
php installer
unlink installersudo mv composer.phar /usr/local/bin/composer.phar
alias composer='/usr/local/bin/composer.phar'
Run : which composer
Result exemple : /usr/local/bin/composer