From c81342a3e2d1de55ee2663806532d6752a89a60b Mon Sep 17 00:00:00 2001 From: fabriciojs Date: Sat, 6 Jan 2024 18:13:49 -0300 Subject: [PATCH] update codeigniter php version picker --- presets/codeigniter/config.yml | 4 +--- recipes/create-codeigniter.yml | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 recipes/create-codeigniter.yml diff --git a/presets/codeigniter/config.yml b/presets/codeigniter/config.yml index 5babeca0..b72ccfd4 100644 --- a/presets/codeigniter/config.yml +++ b/presets/codeigniter/config.yml @@ -7,9 +7,7 @@ name: 'CodeIgniter' create: - name: Creating new CodeIgniter Application actions: - - scripts: - - docker pull -q kooldev/php:8.1 - - kool docker kooldev/php:8.1 composer create-project --no-install --no-scripts --prefer-dist codeigniter4/appstarter $CREATE_DIRECTORY + - recipe: create-codeigniter # Preset defines the workflow for installing this preset in the current working directory preset: diff --git a/recipes/create-codeigniter.yml b/recipes/create-codeigniter.yml new file mode 100644 index 00000000..896a05d1 --- /dev/null +++ b/recipes/create-codeigniter.yml @@ -0,0 +1,32 @@ +title: "Creating Laravel Application" + +actions: + - prompt: 'Which PHP version do you want to use?' + ref: 'php-version' + default: 'PHP 8.2' + options: + - name: 'PHP 8.3' + actions: + - scripts: + - docker pull -q kooldev/php:8.3 + - kool docker kooldev/php:8.3 composer create-project --no-install --no-scripts --prefer-dist codeigniter4/appstarter $CREATE_DIRECTORY + - name: 'PHP 8.2' + actions: + - scripts: + - docker pull -q kooldev/php:8.2 + - kool docker kooldev/php:8.2 composer create-project --no-install --no-scripts --prefer-dist codeigniter4/appstarter $CREATE_DIRECTORY + - name: 'PHP 8.1' + actions: + - scripts: + - docker pull -q kooldev/php:8.1 + - kool docker kooldev/php:8.1 composer create-project --no-install --no-scripts --prefer-dist codeigniter4/appstarter $CREATE_DIRECTORY + - name: 'PHP 8.0' + actions: + - scripts: + - docker pull -q kooldev/php:8 + - kool docker kooldev/php:p:8 composer create-project --no-install --no-scripts --prefer-dist codeigniter4/appstarter $CREATE_DIRECTORY + - name: 'PHP 7.4' + actions: + - scripts: + - docker pull -q kooldev/php:7.4 + - kool docker kooldev/php:7.4 composer create-project --no-install --no-scripts --prefer-dist codeigniter4/appstarter $CREATE_DIRECTORY