To use the pushover-bash script with composer, there are a few changes/additions to the instructions in the README.
To install it via composer directly, run:
composer require --dev fr3nch13/pushover-bashOr add it to your composer.json, then run composer update
{
"require-dev": {
"fr3nch13/pushover-bash": "dev-main",
}
}In addition to the default configuration file locations, you can also create the configuration file at the same location as your vendor folder.
**Be sure to add it to your .gitignore file.
/pushover-configYou can add it to your composer.json, and call it as a script like so:
{
"scripts": {
"pushover": "./vendor/bin/pushover",
}
}Then call it through composer like so:
$composer pushover -- [script args]
#example
$composer pushover -- -m MessageYou can also refer to it in composer.json like:
{
"scripts": {
"pushover": "./vendor/bin/pushover",
"pushover-test": "@pushover -T Test -m Message Test",
"pushover-done": "@pushover -T Composer Done -m Composer Done",
"ci": [
"./vendor/bin/phpunit",
"@pushover -T Unit Test -m Unit test complete"
],
"coverage": [
"php -d xdebug.mode=coverage ./vendor/bin/phpunit --coverage-html coverage --testdox",
"@pushover -T PROJECT COVERAGE -m COVERAGE is done"
],
}
}