Skip to content

Releases: shivammathur/setup-php

2.25.0

17 Apr 00:16
1fdc5e7
Compare
Choose a tag to compare

Changelog

  • Dropped support for Ubuntu 18.04. (#717)
    Please use ubuntu-22.04 or ubuntu-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 the php-version-file input.

- name: Checkout
  uses: actions/checkout@v3

- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version-file: .php-version
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    extensions: intl-73.1
- 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 of Exit on Windows as that did not stop the workflow on errors. (#709)

  • Improved support for relay extension. #719

  • Fixed support for zts build of zephir_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

New Contributors

Thanks! for the contribution 🎉

Follow for updates

setup-php reddit setup-php twitter setup-php status

2.24.0

27 Jan 03:26
d30ad8b
Compare
Choose a tag to compare

Support Ukraine

#StandWithUkraine


  • 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 in major.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 🎉

Follow for updates

setup-php reddit setup-php twitter setup-php status

2.23.0

25 Dec 22:31
8e2ac35
Compare
Choose a tag to compare

Support Ukraine

#StandWithUkraine


  • Added support for nightly builds of PHP 8.3.
    Note: Specifying nightly as the php-version now will set up PHP 8.3.
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.3'
  • PHP 8.2 is now stable on setup-php. #673
    Notes:
    • Specifying latest or 8.x as the php-version now will set up PHP 8.2.
    • Except ubuntu-22.04, all GitHub runners now have PHP 8.2 as the default version.
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.2'
  • Added support for thread-safe builds of PHP on Linux. #651
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.2'
  env:
    phpts: ts

Full Changelog: 2.22.0...2.23.0

Merry Christmas and happy holidays! 🎄🎁

Thanks! @jrfnl and @flavioheleno for the contributions 🎉

Follow for updates

setup-php reddit setup-php twitter setup-php status

2.22.0

28 Oct 10:24
1a18b22
Compare
Choose a tag to compare

Support Ukraine

#StandWithUkraine


- name: Setup PHP with debugging symbols
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.1'
  env:
    debug: true 
- name: Setup PHP with intl
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.1'
    extensions: intl-72.1
  • Existing PHP version on GitHub actions Ubuntu images is now updated if ppa:ondrej/php is missing regardless of the update environment variable. (actions/runner-images#6331).

  • Environment variable COMPOSER_NO_AUDIT is now set by default. If you would like to run the composer audit in your workflows, please add a step with composer audit command. (#635, #636)

- name: Composer audit
  run: composer audit
  • Switched to GITHUB_OUTPUT environment file for setting up outputs. If you are using setup-php on self-hosted runners, please update it to 2.297.0 or greater. More Info (#654)

  • Updated sqlsrv and pdo_sqlsrv version to 5.10.1 for PHP 7.0 and above on Linux.

  • Improved support for phalcon5 extension to set up the latest stable version.

  • Improved symfony-cli support to fetch the artifact URL from the brew tap on Linux. (#641, #652, #653)

  • Improved fetching brew taps on Linux to avoid brew's overhead.

  • Fixed installing extension packages on self-hosted Linux runners. (#642)

  • Fixed support for couchbase and firebird extensions after GitHub release page changes.

  • Fixed support for older versions of laravel/pint. (#647)

  • Updated Node.js dependencies.


Full Changelog: 2.21.2...2.22.0

Thanks! @alcaeus and @jderusse for the contributions 🎉

Follow for updates

setup-php reddit setup-php twitter setup-php status

2.21.2

17 Aug 11:49
e04e1d9
Compare
Choose a tag to compare

Support Ukraine

#StandWithUkraine


  • Added support for rector in tools input. #627
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: 8.1
    tools: rector
  • Added support for ast extension on macOS using shivammathur/extensions tap.
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: 8.1
    extensions: ast
  • Fixed support for symfony-cli on Linux #632
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: 8.1
    tools: symfony
  • Fixed installing unstable extensions from PECL. #625
  • Updated Node.js dependencies.

Follow for updates

setup-php reddit setup-php twitter setup-php status

2.21.1

28 Jul 00:03
16011a7
Compare
Choose a tag to compare

Support Ukraine

#StandWithUkraine


  • Fixed installing tools' old versions which are composer plugins.

  • Updated Node.js dependencies.


Follow for updates

setup-php reddit setup-php twitter setup-php status

2.21.0

19 Jul 11:53
945c34c
Compare
Choose a tag to compare

Support Ukraine

#StandWithUkraine


  • Added support for Laravel Pint #613, #614
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: `8.1`
    tools: pint
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: `8.1`
    extensions: phalcon5
  • Added support for Private Packagist authentication for composer. Docs
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.1'
  env:
    PACKAGIST_TOKEN: ${{ secrets.PACKAGIST_TOKEN }}
  • Added support for manual JSON-based authentication for composer Docs
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.1'
  env:
    COMPOSER_AUTH_JSON: |
      {
        "http-basic": {
          "example.org": {
            "username": "${{ secrets.EXAMPLE_ORG_USERNAME }}",
            "password": "${{ secrets.EXAMPLE_ORG_PASSWORD }}"
          }
        }
      }
  • Deprecated COMPOSER_TOKEN in favor of GITHUB_TOKEN. Docs
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.1'
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  • Updated Node.js dependencies.

Thanks! @phpstan for the sponsorship ❤️

Thanks! @d8vjork and @ChristophWurst for the contributions 🎉

Follow for updates

setup-php reddit setup-php twitter setup-php status

2.20.1

07 Jul 22:47
3312ea6
Compare
Choose a tag to compare

Support Ukraine

#StandWithUkraine



Follow for updates

setup-php reddit setup-php twitter setup-php status

2.20.0

05 Jul 20:57
cdb037c
Compare
Choose a tag to compare

Support Ukraine

#StandWithUkraine


  • Improved support for event extension on Linux and macOS for PHP 5.4 and above. #604

  • Fixed support for composer plugins in tools input. Since composer 2.2, the plugins are required to be marked as allowed in the composer config. This will now be done by default. #611

  • Added support to show code coverage driver's (Xdebug/PCOV) version in the logs when setup using the coverage input. #610

  • Fixed a bug where PHP was not added to PATH during the action run on self-hosted Windows environments. #609

  • Fixed a bug where the tool cache path was not set on self-hosted environments. #606

  • Updated Node.js dependencies.


Thanks! @jrfnl, @dino182 and @markseuffert for the contributions 🚀

Follow for updates

setup-php reddit setup-php twitter setup-php status

2.19.1

06 Jun 06:23
3eda583
Compare
Choose a tag to compare

Support Ukraine

#StandWithUkraine


  • Fixed support for deployer.

  • Updated Node.js dependencies.


Follow for updates

setup-php reddit setup-php twitter setup-php status