These slides were used along with the repository https://github.com/kunal-kursija/fldc2021 to present a talk about composer-scripting at DrupalCamp Florida 2021.
2. axelerant.com 2
Hello!
I am Kunal Kursija
• Mumbai, India
• Drupal Engineer - @axelerant
• Twitter: @kunalkursija
• Drupal: https://www.drupal.org/u/kunalkursija
• LinkedIn: https://www.linkedin.com/in/kunalkursija/
@kunalkursija Florida DrupalCamp 2021
3. axelerant.com 3
What is a script?
In Composer’s terms, Script can either be a PHP-Callback(static methods only) or CLI commands.
@kunalkursija Florida DrupalCamp 2021
4. axelerant.com 4
Where are scripts placed?
Scripts are defined at the root level of your composer.json.
@kunalkursija Florida DrupalCamp 2021
5. axelerant.com 5
Composer Events
Composer fires different events during its execution, Which allows other packages to hook into composer
and perform automation tasks.
@kunalkursija Florida DrupalCamp 2021