Download the PHP package valgorithms/discord-changelog without Composer
On this page you can find all versions of the php package valgorithms/discord-changelog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download valgorithms/discord-changelog
More information about valgorithms/discord-changelog
Files in valgorithms/discord-changelog
Download valgorithms/discord-changelog
More information about valgorithms/discord-changelog
Files in valgorithms/discord-changelog
Vendor valgorithms
Package discord-changelog
Short Description GitHub commits -> Discord webhook watcher
License MIT
Package discord-changelog
Short Description GitHub commits -> Discord webhook watcher
License MIT
Please rate this library. Is it a good library?
Informations about the package discord-changelog
Discord changelog webhook watcher
Small PSR-4 CLI that watches a GitHub repo's commits and posts new commits to a Discord webhook (skips commits that mention "Social SDK").
Quick start
-
Install dependencies:
- Copy and edit environment variables:
-- Run the CLI (from the project root):
Bootstrap helper
run.phpis the project's bootstrap. It searches parent directories for a.envand ensureslast_commit.txtexists; run it withphp run.php.
Configuration
- Environment variables are defined in
.env(see .env.example).DISCORD_WEBHOOK— your Discord webhook URL (don't leave asCHANGEME).GITHUB_REPO_API— GitHub commits API URL.LAST_COMMIT_FILE— file to store last seen commit SHA (defaults tolast_commit.txt).
Composer scripts
composer unit— run the test suite (phpunit).composer cs— run PHP CS Fixer.composer phpacker— build single-file binaries (non-interactive; platform baked into the script).
Testing
- Tests live under
tests/and use PHPUnit. Run:
Packaging notes
- The
phpackerbuild bundles a bootstrap (run.php) and the packaged binary expects to find a.envwhen executed;run.phpsearches upward from the current working directory so packaged binaries can locate the project.env.
Logging
- The CLI uses Monolog and logs to
php://stdoutby default. To provide a custom logger, instantiateValgorithms\DiscordChangelog\GitHubCommitWatcherdirectly and pass a PSR-3LoggerInterfaceimplementation.
Support
- If you hit issues packaging or running the exe, ensure the build output
contains the
vendor/folder or userun.phpwhich is tolerant of layout.
All versions of discord-changelog with dependencies
PHP Build Version
Package Version
The package valgorithms/discord-changelog contains the following files
Loading the files please wait ...