Skip to content

Prompt for PHP version during magebox init#97

Merged
peterjaap merged 2 commits into
qoliber:mainfrom
Aquive:feature/init-php-version-prompt
Apr 24, 2026
Merged

Prompt for PHP version during magebox init#97
peterjaap merged 2 commits into
qoliber:mainfrom
Aquive:feature/init-php-version-prompt

Conversation

@Aquive
Copy link
Copy Markdown
Contributor

@Aquive Aquive commented Apr 21, 2026

Adds an interactive PHP version prompt to magebox init, defaulting to the value from global config (default_php). Supported versions are shown as hints.

Adds an interactive PHP version prompt to `magebox init`, defaulting to
the value from global config. Supported versions are listed as hints.
@peterjaap
Copy link
Copy Markdown
Collaborator

peterjaap commented Apr 21, 2026

Can we also add reading the PHP version from composer.json?

{
    "config": {
        "platform": {
            "php": "8.3"
        }
    }
}

and/or

{
    "require": {
        "php": "~8.3",
        ....
     }
}

@Aquive
Copy link
Copy Markdown
Contributor Author

Aquive commented Apr 21, 2026

Yeah had the same idea, see #96

I'll add that part later.

Prefer config.platform.php over require.php; fall back to the global
default when composer.json is missing or declares an unsupported
version. The prompt shows "(from composer.json)" when the default
came from the project's composer.json.
@peterjaap peterjaap merged commit 33327f0 into qoliber:main Apr 24, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants