Skip to main content
Version: 8.x

Php Recipe

require 'recipe/provision/php.php';

Source

Configuration

php_version

Source

Default value
$defaultPhpVersion = file_exists('composer.json')
? explode('|', preg_replace('/[^0-9.|]+/', '', json_decode(file_get_contents('composer.json'), true)['require']['php'] ?? '8.3'))[0]
: '8.3';
return ask(' What PHP version to install? ', $defaultPhpVersion, ['5.6', '7.4', '8.0', '8.1', '8.2']);

Tasks

provision:php

Source

Installs PHP packages.

logs:php-fpm

Source

Shows php-fpm logs.

provision:composer

Source

Installs Composer.