Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop support for PHP 8.2 #5395

Merged
merged 1 commit into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
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
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
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
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
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
49 changes: 26 additions & 23 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
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
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
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