Download the PHP package ernestdefoe/github-release-bot without Composer

On this page you can find all versions of the php package ernestdefoe/github-release-bot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package github-release-bot

GitHub Release Bot

Flarum 2 extension that listens for GitHub release webhooks and posts a reply to a configured discussion thread on your forum. No API tokens or GitHub Actions required — runs entirely on the forum side.

How it works

  1. GitHub fires a webhook to POST /api/github-webhook every time a release is published on a configured repo.
  2. The controller verifies the HMAC signature using a shared secret.
  3. It looks up the repository name in your Repo → Discussion map.
  4. It posts a reply to that discussion as a configured bot user, with the release tag, notes (markdown), and a link back to GitHub.

Install

Then enable the extension in Admin → Extensions.

Configuration

In Admin → Extensions → GitHub Release Bot:

Setting Value
GitHub Webhook Secret Random string. Generate with openssl rand -hex 32.
Bot User ID Numeric Flarum user ID that authors replies. Usually 1 (your admin).
Repository → Discussion Map JSON: {"mosaic": 42, "recruiting": 43, "social-groups": 44}

To find a discussion ID: open the support thread for that extension; the URL ends in /d/<id>-<slug>. Use just the number.

Add the webhook to each GitHub repo

For each repo: Settings → Webhooks → Add webhook:

GitHub will fire a ping event immediately to verify the endpoint — the controller returns 200 {"pong":true} if everything's wired correctly.

Response codes

Status Body Meaning
200 {ok:true} Reply posted
200 {ignored:...} Event accepted but not actionable (wrong event, draft release, unmapped repo)
401 {error:"invalid_signature"} HMAC mismatch — secret is wrong on one side
503 {error:"not_configured"} Extension settings incomplete
503 {error:"bot_user_not_found"} Bot User ID doesn't match a real user
500 {error:"post_failed"} Discussion doesn't exist, bot lacks permission, etc. Check logs.

License

MIT


All versions of github-release-bot with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
flarum/core Version ^2.0
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ernestdefoe/github-release-bot contains the following files

Loading the files please wait ...