Releases: shivammathur/setup-php
2.27.1
Changelog
-
Fixed updating PHP dependencies after formulae in homebrew/core tap have been sharded into directories with prefixes. (#780)
-
Update
actions/setup-node
fromv3
tov4
in the node workflow. -
Update Node.js dependencies.
For the complete list of changes, please refer to the Full Changelog
Follow for updates
2.27.0
Changelog
- Tools
box
andphp-scoper
can now be installed easily using thetools
input. (#776)
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: box, php-scoper
-
Added support for macOS 14.x Sonoma and dropped support for macOS 11.x Big Sur following a three-year support cycle that Apple follows for macOS.
-
We now set
keepAlive
inhttps
agent tofalse
infetch.ts
. After Node 19 it is set totrue
by default. This prevented the node process from exiting until timeout after the action run was completed. (#773, #777) - Ref -
Fixed support for
couchbase
extension for PHP 7.4.
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: couchbase
-
Fixed a warning when
find
was run without checking if the path exists on macOS. -
Fixed checking for existing PHP installations on macOS on self-hosted environments.
-
Fixed adding tools in case
/usr/local/bin
directory was missing on self-hosted environments. -
Bumped Node.js dependencies.
Merged Pull Requests
- Merged pull request #766 from @theofidry
New Contributors
- @theofidry made their contribution in #776
Full Changelog
For the complete list of changes, please refer to the Full Changelog: 2.26.0...2.27.0.
Thanks @tillkruss for the sponsorship ❤️
Follow for updates
2.26.0
Changelog
Microsoft SQL Server extensions. (#758, #766)
The latest supported version of sqlsrv
and pdo_sqlsrv
for the PHP version will be installed.
Also, on Windows, these extensions will be installed from microsoft/msphpsql
GitHub releases and will fallback to pecl
.
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: sqlsrv, pdo_sqlsrv
PHP 8.4 Support (#762)
Added support for PHP 8.4.0-dev
from the master branch of php/php-src
for all supported OS.
Note: PHP 8.3.0-dev
is now built from the new PHP-8.3
branch.
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
Fixes
Blackfire Player
Resolved issues affecting the blackfire-player
on Linux and macOS. It now installs the uuid
extension that is required for the tool.
Dropped support for it on Windows as uuid
extension is not available for the OS.
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
tools: blackfire-player
Updates
Update actions/checkout
Updated the use of actions/checkout
to v4 in the documentation and workflows.
- name: Checkout
uses: actions/checkout@v4
Update Node.js Version
Note: Node.js 16 reached End-of-Life on 2023-09-11 (Ref).
Updated action.yml
to use the node20
binary. If you use setup-php
on a self-hosted runner, please make sure it is v2.308.0 or newer to use this release or the major version tag v2
.
Node.js Dependencies
Bumped Node.js dependencies.
Merged Pull Requests
- Merged pull request #766 from @GrahamCampbell
- Merged pull request #754 from @jasongill
New Contributors
- @jasongill made their contribution in #754
Full Changelog
For the complete list of changes, please refer to the Full Changelog: 2.25.5...2.26.0.
Follow for updates
2.25.5
Changelog
- Added support for
castor
in tools input. #746
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: castor
-
Fixed support for self-hosted Debian 12 environments.
-
Fixed support for self-hosted environments using DEB822-STYLE .sources files.
-
Fixed re-enabling opcache extension on macOS. #749
-
Updated Node.js dependencies.
New Contributors
Full Changelog: 2.25.4...2.25.5
Follow for updates
2.25.4
Changelog
-
Fixed regression in 2.25.3 in PHPUnit installation by specifying
major
ormajor.minor
version in thetools
input. #743 -
Fixed
fs
import inutls.test.ts
. -
Updated Node.js dependencies.
Full Changelog: 2.25.3...2.25.4
Follow for updates
2.25.3
Changelog
-
Added support for
zts
intl builds for all supported ICU versions. #739, shivammathur/icu-intl@d6ee42c. -
Added docker to the
shivammathur/node
images. #742 -
Fixed regression in support for Zend extensions installed using PECL. #738
-
Fixed
PHPUnit
andphpcpd
support to set up versions compatible with the PHP version. #732 -
Fixed support for
nektos/act
to run the action in self-hosted mode when using the tool. #742 -
Fixed parsing versions in tools input. #734
-
Updated Node.js dependencies.
Full Changelog: 2.25.2...2.25.3
New Contributors
Thanks @ramsey and @pxlrbt for the sponsorship ❤️
Follow for updates
2.25.2
Changelog
- Improved PHP builds cache for GitHub Actions Ubuntu environments.
- Fixed support for PECL extensions in
extensions
input with version. #725 - Updated
memcache
extension to8.2
in the builds cache for GitHub Actions Ubuntu environments for PHP 8.0 and above. #725 - Fixed a typo in the strategy of the sage example by @yassinehamouten in #726
- Updated Node.js dependencies.
New Contributors
- @yassinehamouten made their first contribution in #726
Full Changelog: 2.25.1...2.25.2
Follow for updates
2.25.1
Changelog
- Fixed regression in support for event extension in
2.25.0
(#722). - Added fallback to GitHub API in
Add-DebugSymbols
on Windows. - Updated Node.js dependencies.
Full Changelog: 2.25.0...2.25.1
Follow for updates
2.25.0
Changelog
- Dropped support for Ubuntu 18.04. (#717)
Please useubuntu-22.04
orubuntu-20.04
runners.
- runs-on: ubuntu-18.04
+ runs-on: ubuntu-22.04
# or
- runs-on: ubuntu-18.04
+ runs-on: ubuntu-20.04
-
Added support for
php-version-file
input to read the input PHP version from a file Docs. (#690)Example: If you have a file
.php-version
in your file structure with the PHP version as its content, you can use thephp-version-file
input.
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version-file: .php-version
- Added support for
intl
extension withICU 73.1
. shivammathur/icu-intl#5
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
extensions: intl-73.1
- Added support for
snmp
anduuid
on macOS usingshivammathur/extensions
tap. (shivammathur/homebrew-extensions#2426, shivammathur/homebrew-extensions#2452)
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
extensions: snmp, uuid
-
Added retry logic across Windows to decrease the network failure rate. (#700, #711)
-
Switched to using
phpenmod
script to enable extensions on Linux. -
Switched to using
Write-Error
instead ofExit
on Windows as that did not stop the workflow on errors. (#709) -
Improved support for
relay
extension. #719 -
Fixed support for
zts
build ofzephir_parser
extension. #701 -
Fixed parameters in the
xargs
call. #712 -
Fixed minor shellcheck error.
-
Fixed the wrapper used to install Debian packages to check for broken package failures.
-
Fixed the JIT config set up to match the docs.
-
Updated Node.js dependencies.
Full Changelog: 2.24.0...2.25.0
Contributions
- Fix DocBlock in
utils.ts
by @viktorruskai in #689 - Support .php-version file for version detection by @stevelacey in #690
- Move php version default out of action.yml and update inputs by @stevelacey in #691
- docs: improve sentence structure slightly by @G-Rath in #707
- Add support for ICU 73-1 by @jderusse in shivammathur/icu-intl#5
New Contributors
- @viktorruskai made their first contribution in #689
- @stevelacey made their first contribution in #690
- @G-Rath made their first contribution in #707
Thanks! for the contribution 🎉
Follow for updates
2.24.0
Support Ukraine
- Added support for
relay
extension on Linux and macOS for PHP 7.4 to 8.2. (#682)
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: relay # or specific version like relay-0.4.6
env:
RELAY_KEY: ${{ secrets.RELAY_KEY }}
RELAY_ENVIRONMENT: development
RELAY_EVICTION_POLICY: lru
RELAY_MAX_MEMORY: 256M
- Improved support for
zephir_parser
extension. (#681)
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: zephir_parser
-
Fixed support for self-hosted environments with outdated package lists. (#688)
-
Fixed logs for coverage extensions on PHP 8.3. (#685)
-
Fixed PECL options parsing on macOS. (#680)
-
Fixed support for
blackfire-player
. -
Fixed fetching
phalcon
release asset URL on Windows. -
Fixed
protoc
support to account for release versions inmajor.minor
format. -
Change the
choco
install script URL to avoid redirecting. -
Refactored function names in scripts for tools and extensions with custom support.
-
Updated Node.js dependencies.
Full Changelog: 2.23.0...2.24.0
Thanks! @tillkruss, @quick-order, @jobbsy-dev, and @DracoBlue for the sponsorship ❤️
Thanks! @Rotzbua for the contribution 🎉