feat: add PIE (PHP Installer for Extensions) support#16860
Merged
Conversation
- composer.json: add type php-ext, php-ext metadata block with extension-name and build-path, remove hardcoded version - package.xml: align PHP minimum to 8.1.0, remove upper bound cap - Add .github/workflows/release-windows.yml for building and publishing Windows DLLs to GitHub Releases on release.published - main.yml: add build_freshness job to detect generated-build drift, add pie_smoke_test job to validate PIE source builds - README.md: add PIE and PECL install instructions Closes #16832
…alcon Instead of running 'pie build phalcon/cphalcon' which fetches from Packagist (where the old metadata without type:php-ext still lives), validate the PIE metadata from local composer.json and build the extension from build/phalcon/ — the exact path PIE will use via the build-path directive.
niden
approved these changes
Apr 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add PIE (PHP Installer for Extensions) support
Closes #16832
This PR adds PIE support to
phalcon/cphalcon, making the extension installable viapie install phalcon/cphalconon Linux/macOS (source build) and Windows (pre-built DLLs from GitHub Releases).Changes
1.
composer.json— PIE metadata"type": "php-ext"so PIE recognizes this as an extension package"php-ext"block withextension-name: "phalcon"andbuild-path: "build/phalcon"(required because the Composer package namephalcon/cphalcondoesn't match the extension namephalcon, and the build root is not the repo root)"version": "5.10.0"— Git tags will drive versions on Packagist2.
package.xml— PHP version alignment<min>8.0.0</min>→<min>8.1.0</min>to align withcomposer.jsonand CI matrix<max>8.5.99</max>to keep upper bound open-ended — no metadata release needed for new PHP minorspackage.xmlis kept for PECL coexistence during transition3.
.github/workflows/release-windows.yml— Windows DLLs for PIErelease.publishedphp/setup-php-sdkphp_phalcon.dll+LICENSE.txt) to the GitHub Release4.
.github/workflows/main.yml— CI guardrailsbuild_freshnessjob: regeneratesbuild/phalconfrom Zephir sources and assertsgit diff --exit-code— catches generated-build drift that would break PIE source installspie_smoke_testjob: runspie build phalcon/cphalconfrom the local checkout on PHP 8.1 and 8.4 to validate PIE compatibility end-to-end5.
README.md— install docsPost-merge ops (not in this PR)
php/pieto move Phalcon to "Supported" in their migration tracker