Skip to content

Commit

Permalink
Drop support for PHP 8.2
Browse files Browse the repository at this point in the history
In accordance with our version policy this drop support for PHP 8.2 as
it has been more than 90 days since the release of PHP 8.3.
  • Loading branch information
jrjohnson committed May 2, 2024
1 parent e252b48 commit a52a201
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 36 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:

strategy:
matrix:
php-version: [8.2, 8.3]
php-version: [8.3]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:

strategy:
matrix:
php-version: [8.2, 8.3]
php-version: [8.3]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -289,7 +289,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [8.2, 8.3]
php-version: [8.3]

steps:
- uses: actions/checkout@v4
Expand All @@ -308,7 +308,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [8.2, 8.3]
php-version: [8.3]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/future-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
ILIOS_FILE_SYSTEM_STORAGE_PATH: /tmp
SYMFONY_DEPRECATIONS_HELPER: disabled=1
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ILIOS_DEPLOYMENT_WEBHOOK_URL }}
future_php: 8.2
future_php: 8.4

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/infection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
ILIOS_FILE_SYSTEM_STORAGE_PATH: /tmp
SYMFONY_DEPRECATIONS_HELPER: disabled=1
MESSENGER_TRANSPORT_DSN: doctrine://default
latest_php: 8.2
latest_php: 8.3
DOCKER_BUILDKIT: 1
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ILIOS_DEPLOYMENT_WEBHOOK_URL }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Use PHP 8.2
- name: Use PHP 8.3
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: 8.2
php-version: 8.3
extensions: apcu
- name: install composer-lock-diff
run: composer global require davidrjonas/composer-lock-diff
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "The \"Ilios Standard Edition\" distribution",
"version": "3.112.0",
"require": {
"php": ">= 8.2",
"php": ">= 8.3",
"ext-apcu": "*",
"ext-ctype": "*",
"ext-dom": "*",
Expand Down Expand Up @@ -89,7 +89,7 @@
},
"config": {
"platform": {
"php": "8.2"
"php": "8.3"
},
"preferred-install": {
"*": "dist"
Expand Down
42 changes: 21 additions & 21 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/packages/monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ liip_monitor:
default:
php_extensions: [apcu, mbstring, ldap, xml, dom, mysqlnd, pdo, zip, json, zlib, ctype, iconv]
php_version:
"8.2": ">="
"8.3": ">="
readable_directory: ["%kernel.cache_dir%"]
writable_directory: ["%kernel.cache_dir%"]
production:
Expand Down
3 changes: 1 addition & 2 deletions docs/ilios_php_version_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ At any given time, the Ilios application will only be supported on the very late

#### Policy Example

For example, the current minimum version of PHP is v8.2. When PHP v8.3 is released, we will continue to ensure the Ilios code will work on PHP 8.2 for at least 90 days, and then, after that time has passed, we will only offer support for Ilios applications running on PHP 8.3 going forward.
For example, the current minimum version of PHP is v8.3. When PHP v8.4 is released, we will continue to ensure the Ilios code will work on PHP 8.3 for at least 90 days, and then, after that time has passed, we will only offer support for Ilios applications running on PHP 8.4 going forward.

### Currently Supported Versions of PHP

Based on the policy above, Ilios is currently compatible with the following versions of PHP:

* PHP 8.2
* PHP 8.3

### Up-To-Date PHP Repositories for CentOS and RHEL
Expand Down
4 changes: 2 additions & 2 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Ilios 3 uses a Symfony (PHP/SQL) backend to serve its API, so these tools and th

* CentOS 7 - Any modern Linux should work, but we recommend Redhat (RHEL, CentOS, or Fedora) or Ubuntu
* MySQL using the InnoDB database engine (v5.7 or later required, 8+ recommended)
* PHP v8.2+ REQUIRED - In order to ensure the best security and performance of the application overall, we have adopted a policy of requiring the latest version of PHP for running Ilios. Please see [ilios_php_version_policy.md](docs/ilios_php_version_policy.md) for the latest information about the PHP version requirements for Ilios.
* PHP v8.3+ REQUIRED - In order to ensure the best security and performance of the application overall, we have adopted a policy of requiring the latest version of PHP for running Ilios. Please see [ilios_php_version_policy.md](docs/ilios_php_version_policy.md) for the latest information about the PHP version requirements for Ilios.

NOTE: Several institutions have successfully deployed Ilios using Microsoft IIS on Windows as their webserver, but we do not recommend it as we do not have alot of experience with it ourselves and we've only ever support Ilios on Linux systems. That being said, if you MUST use IIS for Windows and are having trouble getting Ilios running properly, please contact the [Ilios Project Support Team](https://iliosproject.org) at support@iliosproject.org if you have any problems and we might be able to help you out!

Expand Down Expand Up @@ -64,7 +64,7 @@ You should now be in the '/web/ilios3/ilios' directory
# errors related to git files in your own user's `.config` directory:
sudo -u apache git checkout tags/$(git fetch --tags; git describe --tags `git rev-list --tags --max-count=1`)
```
5. Run the following command to build the packages and its dependencies. This step assumes you have PHP 8.2+ and Composer installed on your system:
5. Run the following command to build the packages and its dependencies. This step assumes you have PHP 8.3+ and Composer installed on your system:
```bash
sudo -u apache bin/setup
```
Expand Down

0 comments on commit a52a201

Please sign in to comment.