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

Keeping Packagist up to date automatically

Make Packagist read every new tag as soon as it is pushed - through the GitHub integration or a webhook - and check that the hook works after a release.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/designers/distribution/packagist-auto-update.md

On this page

Keeping Packagist up to date automatically

This page is for designers who published a theme on Packagist. Without an update hook, Packagist does not learn about new tags promptly, and users see an old version as the newest.

Two ways

WayHow
The GitHub integrationSign in to Packagist with your GitHub account and let Packagist manage the hooks of your repositories; it sets the hook for packages it can access
A manual webhookIn the repository's Settings > Webhooks add Packagist's GitHub hook URL (https://packagist.org/api/github?username=<your Packagist user>) with your Packagist API token as the secret, content type application/json, event "push"

Packagist's own page Profile > Settings > API Token shows your token and explains the hook for your account; follow its current text, it is the authority.

Step by step: check the hook

  1. List the hooks of the repository (needs admin rights):

    gh api repos/yourvendor/mytheme/hooks --jq '.[].config.url'

    Expected: a URL on packagist.org. No output means there is no hook.

  2. After the next release, check Packagist within a few minutes:

    curl -s https://repo.packagist.org/p2/yourvendor/mytheme.json | grep -o '"version":"[^"]*"' | head -3

    Expected: the new version first.

  3. In GitHub, Settings > Webhooks > the Packagist hook > Recent Deliveries shows each call and its response; a red mark tells you the hook failed and why.

If the hook cannot be set up yet

On the package's Packagist page, a maintainer can press Update to make Packagist read the repository now. Do this after every release until the hook works.

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