Skip to content

Commit

Permalink
update codeigniter php version picker
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriciojs committed Jan 6, 2024
1 parent b799e7f commit c81342a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
4 changes: 1 addition & 3 deletions presets/codeigniter/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
32 changes: 32 additions & 0 deletions recipes/create-codeigniter.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c81342a

Please sign in to comment.