Skip to content

docs(pie): INSTALL-PIE.md + Packagist API update in publish-release#562

Merged
satwareAG-ironMike merged 2 commits into
mainfrom
fix/packagist-pie-485
Jul 21, 2026
Merged

docs(pie): INSTALL-PIE.md + Packagist API update in publish-release#562
satwareAG-ironMike merged 2 commits into
mainfrom
fix/packagist-pie-485

Conversation

@satwareAG-ironMike

Copy link
Copy Markdown

Summary

Completes the remaining acceptance criteria of #485 (Packagist PIE discovery).

Changes

docs/packaging/INSTALL-PIE.md (new)

Full PIE installation guide covering:

  • Both packages: satwareag/php-firebird + satwareag/pdo-fbird
  • Prerequisites, installation steps, php.ini configuration
  • Procedural, OOP, and PDO usage examples
  • Firebird client library options (apt, GitHub releases)
  • Version-specific notes (PHP 8.2-8.5, FB 3.0-5.0)
  • Troubleshooting (stale Packagist, SIGSEGV version mismatch, missing pdo_fbird)

.github/workflows/publish-release.yml

Added Packagist API update step after release publication.

Why: The GitHub webhooks to Packagist return 403 "Invalid github signature" on every push. Packagist explicitly says: "Delete this webhook and recreate it using the manual account sync trigger." Instead of relying on webhooks, this step calls the Packagist API directly to trigger a package update after each release. The broken webhooks have been deleted.

Requires: PACKAGIST_API_TOKEN GitHub secret (from https://packagist.org/profile). The step is conditional (if: env.PACKAGIST_API_TOKEN != '') so it silently skips if the secret is not set.

Current Packagist Status

Package Registered Versions on Packagist Latest tag on GitHub
satwareag/php-firebird Yes Up to v13.0.0 v13.0.2
satwareag/pdo-fbird Yes Only dev-main v13.0.2

Both packages are registered and indexed. The missing versions (v13.0.1, v13.0.1-rc.1, v13.0.2) are because the webhook was broken. Once PACKAGIST_API_TOKEN is set and this PR merges, the next release will automatically trigger a Packagist update.

Acceptance Criteria Status (#485)

What needs to happen after merge

  1. Set PACKAGIST_API_TOKEN secret: Repo admin goes to https://packagist.org/profile, copies their API token, and adds it as a GitHub secret named PACKAGIST_API_TOKEN
  2. Manual Packagist sync: Go to https://packagist.org/packages/satwareag/php-firebird and click "Update", then same for https://packagist.org/packages/satwareag/pdo-fbird
  3. Verify PIE install: pie install satwareag/php-firebird on a clean machine

…485)

- Add docs/packaging/INSTALL-PIE.md with PIE install instructions
  for both satwareag/php-firebird and satwareag/pdo-fbird
- Add Packagist API update step to publish-release.yml
  (replaces broken webhooks that return 403 'Invalid github signature')
- Requires PACKAGIST_API_TOKEN GitHub secret (from packagist.org/profile)

Relates: #485
Per Packagist docs: payload must be {"repository":{"url":"PACKAGE_URL"}}
not {"url":"REPO_URL"}. Also use query-param auth (username+apiToken)
instead of Bearer auth, and reference the Packagist package URL (not the
GitHub repo URL).

Added PACKAGIST_USERNAME secret (also set on GitHub).
@satwareAG-ironMike
satwareAG-ironMike merged commit 04c49ae into main Jul 21, 2026
31 of 32 checks passed
@satwareAG-ironMike
satwareAG-ironMike deleted the fix/packagist-pie-485 branch July 21, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant