Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,113 of 9,113 pages
About the help in other languages
All help pages

The Packagist webhook

When Packagist shows an old newest version although the tag is on GitHub, the repository is missing its Packagist hook. How to see that, how to set it up, and how to bring the package up to date once.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/extension-development/part-7-releasing/the-packagist-webhook.md

On this page

The Packagist webhook

Part 7, chapter 6. You pushed tag v1.2.4, the GitHub release is there, but Packagist still offers 1.2.3 and composer require installs the old version. The usual cause: GitHub never tells Packagist that the repository changed, because the repository has no Packagist hook. This chapter shows how to check and fix that.

How Packagist learns about new tags

Packagist does not watch repositories on its own schedule for each push. GitHub notifies it through a webhook (or the Packagist GitHub integration) on every push. Without that notification the package page stays at whatever Packagist read last.

This project found exactly that on one of its extensions: its Packagist page stayed at an old version for months, because the repository had no hook. The tags were all there; only the notification was missing.

Check

On GitHub: the repository's Settings > Webhooks lists the hooks. One should point at packagist.org.

With the GitHub command line tool (you need admin rights on the repository):

gh api repos/your-account/myext/hooks --jq '.[].config.url'

No line with packagist.org means no hook.

On Packagist, the package page shows when it was last updated, and warns maintainers when the package is not auto-updated.

Fix

Packagist's own instructions are on its page About: how to update packages. In short, one of:

  1. The GitHub integration: sign in to Packagist with GitHub and grant it access to the organization; Packagist then sets up hooks for packages it can see.
  2. A webhook by hand: in the repository's Settings > Webhooks > Add webhook, the payload URL and the secret that Packagist shows on your profile page, content type application/json, the push event.

The secret is your Packagist API token: keep it out of issues, commit messages and scripts in the repository.

Bring it up to date once

After the hook is set, the next push updates Packagist. To catch up now, use the Update button on the package page (as a maintainer), or push anything.

Then check: the package page lists the new version, and

composer show your-account/myext --all | grep versions

shows it too.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x