Awesome
Drafter Installer
Install drafter in your php project with ease.
Installation
The recommended way to install drafter-installer is composer:
composer require hmaus/drafter-installer
Add config to extra
:
Pass the tag of drafter to install
"extra": {
"drafter-installer-tag": "v3.2.7"
}
Add it to scripts
:
"scripts": {
"install-drafter": "Hmaus\\Drafter\\Installer::installDrafter"
}
You may also consider adding a reference to your update and install hooks:
"scripts": {
"post-install-cmd": [
"@install-drafter"
],
"post-update-cmd": [
"@install-drafter"
]
}