What is the expected support of this project.
- should our composer file define php runtime?
"config": {
"platform": {
"php": "8.1"
}
},
- Wxt Profile 5.x requires Drupal Core 10.0.11
- Drupal Core min/general support is 8.1
- Contrib modules have generally open build if project run via composer. some (low amount) do actually specify php requirement in their composer files..

| Comment | File | Size | Author |
|---|---|---|---|
| #5 | core-reccommend-10.1.png | 85.08 KB | skaught |
| #4 | Screenshot 2023-11-24 at 9.24.22 AM.png | 148.01 KB | skaught |
| php-lifespans-nov2023.png | 20.62 KB | skaught |
Comments
Comment #2
skaughtComment #3
skaught[below]
Comment #4
skaughttagging suggestions
5.0.x Drupal 10.0 php 8.1
5.1.x Drupal 10.1 php 8.1 - see below, core recommend
5.2.x Drupal 10.2 php 8.2
->Drupal 10.2 to be release Dec/2023 (in 2 weeks)
->5.2.x branch release will depend on contrib up flow rate to PHP8.2
these '8.2' commits should be on the 5.2 branch. keep in mind: patches to contrib projects is fast-forwarding their own releases.

Comment #5
skaughtit is bleeding edge to be running an 8.2 production server (at this time, nov 2023).

Comment #6
joseph.olstadLooks like a reasonable target
Comment #7
liam morlandIs there a need for WxT to have its minimum PHP version be higher than the version of Drupal core it is running on?
Comment #8
joseph.olstadYa, I noticed this also, however PHP 8.3 works well with wxt 5.2.3 so it's a bit of an excuse to upgrade.
It's a good idea to upgrade to PHP 8.3. Contrib for Drupal 10/11 is mostly very happy with this version of PHP.
Comment #9
liam morlandSure, it's great to run on a newer version, but this is about the minimum.
Overall, it is best to follow the PHP requirements of core.
Comment #10
joseph.olstadAgreed, it should be composer that decides the PHP version, not WxT,
WxT should aim to be compatible with core. 5.2 targets D10.2 and D10.2 is compatible with PHP 8.1/8.2/8.3.
WxT 5.3 should aim for the same because D10.3 is also compatible with PHP 8.1/8.2/8.3
D11 on the other hand requires minimum PHP 8.3.
Comment #11
joseph.olstadWith that said, the upgrade to PHP 8.3 is a good idea and I do recommend it. I've been using PHP 8.3 for a while now. It's worth the small effort to upgrade if possible, but not always possible.
I know that folks using certain docker recipes might find it tougher to upgrade. Certain vendors are slower to provide newer versions of PHP.
Comment #12
smulvih2I use docker-scaffold for all of my projects, and I am able to use WxT 5.2.x with both PHP8.2 and PHP8.3. Makes it nice not to pin a version of PHP and just use what core defines as a requirement range. I have one project upgrading to WxT 5.3.x but need to stay on PHP8.2 until they certify a new version of their OS. I have another project upgrading WxT to 5.3.x as well as PHP8.3.
Comment #13
smulvih2