Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ body:
description: Which PHP versions did you run your code?
multiple: true
options:
- '8.2'
- '8.3'
- '8.4'
- '8.5'
- '8.6'
validations:
required: true

Expand Down
2 changes: 1 addition & 1 deletion .github/instructions/user-guide.instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ applyTo: "docs/**/*.md"
trailing spaces that end a line as a hard line break.
- Add a new page to the page's folder `index.md` and run
`php admin/update-docs-nav.php` to add it to `docs/.nav.yml`.
- Keep PHP examples compatible with PHP 8.2 and verify signatures and behavior
- Keep PHP examples compatible with PHP 8.3 and verify signatures and behavior
against the current framework code.
- Distinguish new behavior from existing behavior and document defaults
precisely.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-apidocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0
with:
php-version: '8.2'
php-version: '8.3'
tools: phive
coverage: none

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-autoreview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
name: Automatic Code Review
uses: ./.github/workflows/reusable-serviceless-phpunit-test.yml # @TODO Extract to codeigniter4/.github repo
with:
job-name: PHP 8.2
php-version: '8.2'
job-name: PHP 8.3
php-version: '8.3'
job-id: auto-review-tests
group-name: AutoReview
2 changes: 1 addition & 1 deletion .github/workflows/test-coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
fail-fast: false
matrix:
php-version:
- '8.2'
- '8.3'
include:
- php-version: '8.5'
composer-option: '--ignore-platform-req=php'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-composer-normalize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0
with:
php-version: '8.2'
php-version: '8.3'
coverage: none

- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-file-permissions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: '8.3'

- name: Detect unnecessary execution permissions
run: php utils/check_permission_x.php
6 changes: 3 additions & 3 deletions .github/workflows/test-phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0
with:
php-version: '8.2'
php-version: '8.3'
extensions: intl
coverage: none

Expand All @@ -69,9 +69,9 @@ jobs:
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ${{ steps.composer-cache.outputs.COMPOSER_CACHE_FILES_DIR }}
key: composer-php-8.2-${{ hashFiles('**/composer.json') }}
key: composer-php-8.3-${{ hashFiles('**/composer.json') }}
restore-keys: |
composer-php-8.2-
composer-php-8.3-
composer-

- name: Create PHPStan result cache directory
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/test-phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
steps:
- id: coverage-php-version
run: |
echo "version=8.2" >> $GITHUB_OUTPUT
echo "version=8.3" >> $GITHUB_OUTPUT

sanity-tests:
name: Others
Expand All @@ -56,7 +56,6 @@ jobs:
strategy:
matrix:
php-version:
- '8.2'
- '8.3'
- '8.4'
- '8.5'
Expand All @@ -82,7 +81,6 @@ jobs:
fail-fast: false
matrix:
php-version:
- '8.2'
- '8.3'
- '8.4'
- '8.5'
Expand All @@ -95,7 +93,7 @@ jobs:
mysql-version:
- '8.0'
include:
- php-version: '8.2'
- php-version: '8.3'
db-platform: MySQLi
mysql-version: '5.7'

Expand All @@ -121,7 +119,6 @@ jobs:
strategy:
matrix:
php-version:
- '8.2'
- '8.3'
- '8.4'
- '8.5'
Expand All @@ -146,7 +143,6 @@ jobs:
strategy:
matrix:
php-version:
- '8.2'
- '8.3'
- '8.4'
- '8.5'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-psalm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
fail-fast: false
matrix:
php-version:
- '8.2'
- '8.3'

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-rector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
fail-fast: false
matrix:
php-version:
- '8.2'
- '8.3'
include:
- php-version: '8.5'
composer-option: '--ignore-platform-req=php'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-structarmed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
fail-fast: false
matrix:
php-version:
- '8.2'
- '8.3'
- '8.5'

steps:
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/test-userguide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,9 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0
with:
php-version: '8.2'
php-version: '8.3'
coverage: none

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'

- name: Setup Python
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0
with:
php-version: '8.2'
php-version: '8.3'
tools: composer
extensions: intl, gd
coverage: xdebug
Expand Down
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ compatibility policy applies to what the latest tagged release ships.

### All base branches

- Production code must run on PHP 8.2. Do not require a newer PHP version,
- Production code must run on PHP 8.3. Do not require a newer PHP version,
even when a newer version is installed locally.
- Signatures, properties, constants, default values, exceptions, side
effects, configuration, and generated project files are all
Expand All @@ -116,7 +116,7 @@ compatibility policy applies to what the latest tagged release ships.
intentional compatibility constraints. Do not remove an exclusion without
dedicated justification and tests.
- Every new class property must have a native type declaration. Use the
most precise type supported by PHP 8.2; use `mixed` only when the
most precise type supported by PHP 8.3; use `mixed` only when the
property intentionally accepts unrelated types.
- Do not add or change a type on an existing public or protected property
mechanically. Property types affect inheritance and must follow the
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Made with [contrib.rocks](https://contrib.rocks).

## Server Requirements

PHP version 8.2 or higher is required, with the following extensions installed:
PHP version 8.3 or higher is required, with the following extensions installed:

- [intl](http://php.net/manual/en/intl.requirements.php)
- [mbstring](http://php.net/manual/en/mbstring.installation.php)
Expand All @@ -96,8 +96,9 @@ PHP version 8.2 or higher is required, with the following extensions installed:
> - The end of life date for PHP 7.4 was November 28, 2022.
> - The end of life date for PHP 8.0 was November 26, 2023.
> - The end of life date for PHP 8.1 was December 31, 2025.
> - If you are still using a PHP version below 8.2, you should upgrade immediately.
> - The end of life date for PHP 8.2 will be December 31, 2026.
> - The end of life date for PHP 8.2 was December 31, 2026.
> - If you are still using a PHP version below 8.3, you should upgrade immediately.
> - The end of life date for PHP 8.3 will be December 31, 2027.

Additionally, make sure that the following extensions are enabled in your PHP:

Expand Down
7 changes: 4 additions & 3 deletions admin/framework/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Please read the [*Contributing to CodeIgniter*](https://github.com/codeigniter4/

## Server Requirements

PHP version 8.2 or higher is required, with the following extensions installed:
PHP version 8.3 or higher is required, with the following extensions installed:

- [intl](http://php.net/manual/en/intl.requirements.php)
- [mbstring](http://php.net/manual/en/mbstring.installation.php)
Expand All @@ -51,8 +51,9 @@ PHP version 8.2 or higher is required, with the following extensions installed:
> - The end of life date for PHP 7.4 was November 28, 2022.
> - The end of life date for PHP 8.0 was November 26, 2023.
> - The end of life date for PHP 8.1 was December 31, 2025.
> - If you are still using below PHP 8.2, you should upgrade immediately.
> - The end of life date for PHP 8.2 will be December 31, 2026.
> - The end of life date for PHP 8.2 was December 31, 2026.
> - If you are still using a PHP version below 8.3, you should upgrade immediately.
> - The end of life date for PHP 8.3 will be December 31, 2027.

Additionally, make sure that the following extensions are enabled in your PHP:

Expand Down
2 changes: 1 addition & 1 deletion admin/framework/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"slack": "https://codeigniterchat.slack.com"
},
"require": {
"php": "^8.2",
"php": "^8.3",
"ext-intl": "*",
"ext-mbstring": "*",
"laminas/laminas-escaper": "^2.18",
Expand Down
2 changes: 1 addition & 1 deletion admin/starter/.github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
php-versions: ['8.2', '8.5']
php-versions: ['8.3', '8.5']

runs-on: ubuntu-24.04
if: (! contains(github.event.pull_request.title, '[ci skip]'))
Expand Down
7 changes: 4 additions & 3 deletions admin/starter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Problems with it can be raised on our forum, or as issues in the main repository

## Server Requirements

PHP version 8.2 or higher is required, with the following extensions installed:
PHP version 8.3 or higher is required, with the following extensions installed:

- [intl](http://php.net/manual/en/intl.requirements.php)
- [mbstring](http://php.net/manual/en/mbstring.installation.php)
Expand All @@ -59,8 +59,9 @@ PHP version 8.2 or higher is required, with the following extensions installed:
> - The end of life date for PHP 7.4 was November 28, 2022.
> - The end of life date for PHP 8.0 was November 26, 2023.
> - The end of life date for PHP 8.1 was December 31, 2025.
> - If you are still using below PHP 8.2, you should upgrade immediately.
> - The end of life date for PHP 8.2 will be December 31, 2026.
> - The end of life date for PHP 8.2 was December 31, 2026.
> - If you are still using a PHP version below 8.3, you should upgrade immediately.
> - The end of life date for PHP 8.3 will be December 31, 2027.

Additionally, make sure that the following extensions are enabled in your PHP:

Expand Down
2 changes: 1 addition & 1 deletion admin/starter/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"slack": "https://codeigniterchat.slack.com"
},
"require": {
"php": "^8.2",
"php": "^8.3",
"codeigniter4/framework": "^4.7"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"slack": "https://codeigniterchat.slack.com"
},
"require": {
"php": "^8.2",
"php": "^8.3",
"ext-intl": "*",
"ext-mbstring": "*",
"laminas/laminas-escaper": "^2.18",
Expand Down
2 changes: 1 addition & 1 deletion contributing/pull_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ See [Contribution CSS](./css.md).

### Compatibility

CodeIgniter4 requires [PHP 8.2](https://php.net/releases/8_2_0.php).
CodeIgniter4 requires [PHP 8.3](https://php.net/releases/8_3_0.php).

### Backwards Compatibility

Expand Down
2 changes: 1 addition & 1 deletion docs/changelogs/v4.8.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Release Date: Unreleased

## Highlights

- TBD
- Update minimum PHP requirement to `8.3`.

## BREAKING

Expand Down
2 changes: 1 addition & 1 deletion docs/installation/installing_composer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Composer can be used in two ways to install CodeIgniter4 on your system.

!!! important "Important"
CodeIgniter4 requires Composer 2.0.14 or later.
CodeIgniter4 requires Composer 2.0.14 or later. If you are running CodeIgniter4 on PHP `8.6`, you must use Composer 2.11.1 or later to ensure compatibility.

!!! note "Note"
If you are not familiar with Composer, we recommend you read [Basic usage](https://getcomposer.org/doc/01-basic-usage.md) first.
Expand Down
6 changes: 3 additions & 3 deletions docs/installation/running.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ The local development server can be customized with three command line options:
- You can also choose a specific version of PHP to use, with the `--php` CLI option, with its value set to the path of the PHP executable you want to use:

```console
php spark serve --php /usr/bin/php8.2
php spark serve --php /usr/bin/php8.3
```

## Worker Mode with FrankenPHP
Expand Down Expand Up @@ -399,7 +399,7 @@ See [Handling Multiple Environments](../general/environments.md#apache).

## Hosting with nginx

nginx is the second most widely used HTTP server for web hosting. Here you can find an example configuration using PHP 8.2 FPM (unix sockets) under Ubuntu Server.
nginx is the second most widely used HTTP server for web hosting. Here you can find an example configuration using PHP 8.3 FPM (unix sockets) under Ubuntu Server.

### default.conf

Expand All @@ -423,7 +423,7 @@ server {
include snippets/fastcgi-php.conf;
# With php-fpm:
fastcgi_pass unix:/run/php/php8.2-fpm.sock;
fastcgi_pass unix:/run/php/php8.3-fpm.sock;
# With php-cgi:
# fastcgi_pass 127.0.0.1:9000;
}
Expand Down
7 changes: 4 additions & 3 deletions docs/intro/requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## PHP and Required Extensions

[PHP](https://www.php.net/) version 8.2 or newer is required, with the following PHP extensions enabled:
[PHP](https://www.php.net/) version 8.3 or newer is required, with the following PHP extensions enabled:

- [intl](https://www.php.net/manual/en/intl.requirements.php)
- [mbstring](https://www.php.net/manual/en/mbstring.installation.php)
Expand All @@ -11,8 +11,9 @@
- The end of life date for PHP 7.4 was November 28, 2022.
- The end of life date for PHP 8.0 was November 26, 2023.
- The end of life date for PHP 8.1 was December 31, 2025.
- **If you are still using a PHP version below 8.2, you should upgrade immediately.**
- The end of life date for PHP 8.2 will be December 31, 2026.
- The end of life date for PHP 8.2 was December 31, 2026.
- **If you are still using a PHP version below 8.3, you should upgrade immediately**.
- The end of life date for PHP 8.3 will be December 31, 2027.

!!! note "Note"
- PHP 8.5 requires CodeIgniter 4.7.0 or later.
Expand Down
2 changes: 1 addition & 1 deletion phpstan.dist.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ includes:

parameters:
phpVersion:
min: 80200
min: 80300
max: 80599
tmpDir: build/phpstan
level: 6
Expand Down
2 changes: 1 addition & 1 deletion public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*---------------------------------------------------------------
*/

$minPhpVersion = '8.2'; // If you update this, don't forget to update `spark`.
$minPhpVersion = '8.3'; // If you update this, don't forget to update `spark`.
if (version_compare(PHP_VERSION, $minPhpVersion, '<')) {
$message = sprintf(
'Your PHP version must be %s or higher to run CodeIgniter. Current version: %s',
Expand Down
Loading
Loading