Skip to content
arrow-up-circle

GitHub Action

Setup PHP Project

v1 Latest version

Setup PHP Project

arrow-up-circle

Setup PHP Project

Sets up a PHP project with GitHub Actions, including detecting PHP version and running composer install

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup PHP Project

uses: benzine-framework/action-setup-php@v1

Learn more about this action in benzine-framework/action-setup-php

Choose a version

action-setup-php

Sets up a PHP project with GitHub Actions, including detecting PHP version and running composer install.

Tests Status QC Status

Inputs:

  • working_directory: The directory to run the PHP setup in. Default: ..
  • php_tools: The PHP tools to install.

Outputs:

  • php_version: The PHP version that was detected.

Exported Envs:

  • PHP_VERSION: The PHP version that was detected.