Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
11 changes: 5 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,16 @@ concurrency:
cancel-in-progress: true

env:
PHP_EXTENSIONS: curl, dom, imagick, intl, mbstring, mcrypt, memcached
PHP_EXTENSIONS: apcu, curl, dom, imagick, intl, mbstring, mcrypt, memcached
PHP_INI_VALUES: apc.enabled=1,apc.shm_size=32M,apc.enable_cli=1, date.timezone='UTC'
PHPUNIT_EXCLUDE_GROUP: db,wincache
XDEBUG_MODE: coverage

jobs:
phpunit:
name: PHP ${{ matrix.php }}

env:
COVERAGE_DRIVER: ${{ matrix.php < 8.1 && 'xdebug' || 'pcov' }}
COVERAGE_DRIVER: pcov
IGNORE_PLATFORM_REQS: false

runs-on: ubuntu-22.04
Expand All @@ -67,7 +66,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5]
php: [8.3, 8.4, 8.5]

steps: &build-steps
- name: Checkout.
Expand All @@ -83,7 +82,7 @@ jobs:
with:
composer-root-version: 2.0.x-dev
coverage-driver: ${{ env.COVERAGE_DRIVER }}
extensions: ${{ matrix.php < 8.0 && 'apc' || 'apcu' }}, ${{ env.PHP_EXTENSIONS }}
extensions: ${{ env.PHP_EXTENSIONS }}
ignore-platform-reqs: ${{ env.IGNORE_PLATFORM_REQS }}
ini-values: ${{ env.PHP_INI_VALUES }}, session.save_path="${{ runner.temp }}"
php-version: ${{ matrix.php }}
Expand All @@ -106,7 +105,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5]
php: [8.3, 8.4, 8.5]

steps:
- name: Checkout.
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-mariadb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
with:
composer-root-version: 2.0.x-dev
concurrency-group: mariadb-${{ github.ref }}
coverage-driver: xdebug
coverage-driver: pcov
database-env: '{"MARIADB_ROOT_PASSWORD":"root","MARIADB_DATABASE":"yiitest"}'
database-health-cmd: mariadb-admin ping
database-image: mariadb
Expand All @@ -49,7 +49,7 @@ jobs:
database-versions: '["10.4","latest"]'
extensions: curl, intl, pdo, pdo_mysql
os: '["ubuntu-22.04"]'
php-version: '["7.4","8.5"]'
php-version: '["8.3","8.5"]'
phpunit-group: mysql
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -69,5 +69,5 @@ jobs:
database-versions: '["latest"]'
extensions: curl, intl, pdo, pdo_mysql
os: '["ubuntu-22.04"]'
php-version: '["8.0","8.1","8.2","8.3","8.4"]'
php-version: '["8.4"]'
phpunit-group: mysql
6 changes: 3 additions & 3 deletions .github/workflows/ci-mssql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
with:
composer-root-version: 2.0.x-dev
concurrency-group: mssql-${{ github.ref }}
coverage-driver: xdebug
coverage-driver: pcov
database-env: '{"SA_PASSWORD":"YourStrong!Passw0rd","ACCEPT_EULA":"Y","MSSQL_PID":"Developer"}'
database-health-cmd: /opt/mssql-tools18/bin/sqlcmd -C -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'SELECT 1'
database-image: mcr.microsoft.com/mssql/server
Expand All @@ -52,7 +52,7 @@ jobs:
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18
docker exec -i database /opt/mssql-tools18/bin/sqlcmd -C -S localhost -U SA -P 'YourStrong!Passw0rd' -Q "IF DB_ID(N'yiitest') IS NULL CREATE DATABASE yiitest;"
os: '["ubuntu-22.04"]'
php-version: '["7.4","8.5"]'
php-version: '["8.3","8.5"]'
phpunit-group: mssql
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -75,5 +75,5 @@ jobs:
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18
docker exec -i database /opt/mssql-tools18/bin/sqlcmd -C -S localhost -U SA -P 'YourStrong!Passw0rd' -Q "IF DB_ID(N'yiitest') IS NULL CREATE DATABASE yiitest;"
os: '["ubuntu-22.04"]'
php-version: '["8.0","8.1","8.2","8.3","8.4"]'
php-version: '["8.4"]'
phpunit-group: mssql
6 changes: 3 additions & 3 deletions .github/workflows/ci-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
with:
composer-root-version: 2.0.x-dev
concurrency-group: mysql-${{ github.ref }}
coverage-driver: xdebug
coverage-driver: pcov
database-env: '{"MYSQL_ROOT_PASSWORD":"root","MYSQL_DATABASE":"yiitest"}'
database-health-cmd: mysqladmin ping
database-image: mysql
Expand All @@ -49,7 +49,7 @@ jobs:
database-versions: '["5.7","latest"]'
extensions: curl, intl, pdo, pdo_mysql
os: '["ubuntu-22.04"]'
php-version: '["7.4","8.5"]'
php-version: '["8.3","8.5"]'
phpunit-group: mysql
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -69,5 +69,5 @@ jobs:
database-versions: '["latest"]'
extensions: curl, intl, pdo, pdo_mysql
os: '["ubuntu-22.04"]'
php-version: '["8.0","8.1","8.2","8.3","8.4"]'
php-version: '["8.4"]'
phpunit-group: mysql
9 changes: 6 additions & 3 deletions .github/workflows/ci-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ on:
push: *ignore-paths

env:
DEFAULT_COMPOSER_FLAGS: "--prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi"
COMPOSER_ROOT_VERSION: 2.0.x-dev

concurrency:
Expand All @@ -53,8 +52,12 @@ jobs:
with:
persist-credentials: false

- name: Install dependencies.
run: composer update $DEFAULT_COMPOSER_FLAGS
- name: Setup PHP with Composer.
uses: yiisoft/yii2-actions/actions/php-setup@d90cdb5bb58df697c808bb66928864f574c6d07b # master
with:
composer-root-version: 2.0.x-dev
coverage-driver: none
php-version: 8.3

- name: Install JQuery `3.6.*@stable` for tests.
run: composer require "bower-asset/jquery:3.6.*@stable"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
with:
composer-root-version: 2.0.x-dev
concurrency-group: oracle-${{ github.ref }}
coverage-driver: xdebug
coverage-driver: pcov
database-env: '{"ORACLE_PASSWORD":"oracle"}'
database-health-cmd: "healthcheck.sh"
database-health-retries: 10
Expand All @@ -51,7 +51,7 @@ jobs:
extensions: curl, intl, oci8, pdo, pdo_oci
hook: docker exec -i database sqlplus -s system/oracle@//localhost/FREE < tests/data/oci/optimize_for_tests.sql
os: '["ubuntu-22.04"]'
php-version: '["7.4","8.5"]'
php-version: '["8.3","8.5"]'
phpunit-group: oci
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/ci-pgsql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
with:
composer-root-version: 2.0.x-dev
concurrency-group: pgsql-${{ github.ref }}
coverage-driver: xdebug
coverage-driver: pcov
database-env: '{"POSTGRES_USER":"postgres","POSTGRES_PASSWORD":"postgres","POSTGRES_DB":"yiitest"}'
database-health-cmd: pg_isready
database-image: postgres
Expand All @@ -49,7 +49,7 @@ jobs:
database-versions: '["10","11","12","13","14","15","16","17","latest"]'
extensions: curl, intl, pdo, pdo_pgsql
os: '["ubuntu-22.04"]'
php-version: '["7.4","8.5"]'
php-version: '["8.3","8.5"]'
phpunit-group: pgsql
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -69,5 +69,5 @@ jobs:
database-versions: '["latest"]'
extensions: curl, intl, pdo, pdo_pgsql
os: '["ubuntu-22.04"]'
php-version: '["8.0","8.1","8.2","8.3","8.4"]'
php-version: '["8.4"]'
phpunit-group: pgsql
6 changes: 3 additions & 3 deletions .github/workflows/ci-sqlite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ jobs:
with:
composer-root-version: 2.0.x-dev
concurrency-group: sqlite-${{ github.ref }}
coverage-driver: xdebug
coverage-driver: pcov
enable-concurrency: true
extensions: curl, intl, pdo, pdo_sqlite
os: '["ubuntu-22.04","windows-latest"]'
php-version: '["7.4","8.5"]'
php-version: '["8.3","8.5"]'
phpunit-group: sqlite
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -59,5 +59,5 @@ jobs:
enable-concurrency: true
extensions: curl, intl, pdo, pdo_sqlite
os: '["ubuntu-22.04"]'
php-version: '["8.0","8.1","8.2","8.3","8.4"]'
php-version: '["8.4"]'
phpunit-group: sqlite
2 changes: 1 addition & 1 deletion .github/workflows/php-cs-fixer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ jobs:
with:
composer-root-version: 2.0.x-dev
configuration: .php-cs-fixer.dist.php
php-version: '["7.4"]'
php-version: '["8.3"]'
9 changes: 0 additions & 9 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,3 @@ jobs:
concurrency-group: phpstan-${{ github.ref }}
extensions: apcu, curl, dom, imagick, intl, mbstring, mcrypt, memcached
php-version: '["8.5"]'

phpstan-7x:
uses: yiisoft/yii2-actions/.github/workflows/phpstan.yml@d90cdb5bb58df697c808bb66928864f574c6d07b # master
with:
composer-root-version: 2.0.x-dev
configuration: phpstan-7x.dist.neon
concurrency-group: phpstan7x-${{ github.ref }}
extensions: apc, curl, dom, imagick, intl, mbstring, mcrypt, memcached
php-version: '["7.4"]'
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
- docker:dind

variables:
DOCKER_YII2_PHP_IMAGE: yiisoftware/yii2-php:7.4-apache
DOCKER_YII2_PHP_IMAGE: yiisoftware/yii2-php:8.3-apache
DOCKER_MYSQL_IMAGE: percona:5.7
DOCKER_POSTGRES_IMAGE: postgres:9.3

Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ Installation
------------

> [!IMPORTANT]
> - The minimum required [PHP](https://www.php.net/) version of Yii is PHP `7.4`.
> - It works best with PHP `8`.
> - The minimum required [PHP](https://www.php.net/) version of Yii is PHP `8.3`.

- [Follow the Definitive Guide](https://www.yiiframework.com/doc-2.0/guide-start-installation.html)
in order to get step by step instructions.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"yiisoft/yii2": "self.version"
},
"require": {
"php": ">=7.4.0",
"php": ">=8.3.0",
"ext-mbstring": "*",
"ext-ctype": "*",
"lib-pcre": "*",
Expand Down
10 changes: 5 additions & 5 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 docs/guide-ar/intro-yii.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Yii هو إطار عام لبرمجة الويب ، مما يعني أنه يم
# <div dir="rtl">المتطلبات الأساسية للعمل على إطار ال Yii</div>

<ul dir="rtl">
<li>الإصدار PHP 7.4.0 أو أكثر</li>
<li>الإصدار PHP 8.3.0 أو أكثر</li>
<li>المعرفة الأساسية بمفاهيم البرمجة كائنية التوجه OOP</li>
<li>المعرفة بآخر وأحدث التقنيات الموجودة بال php مثل ال namespaces, traits، الفهم لهذه المفاهيم سيسهل عليك العمل كثيرا</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion docs/guide-de/intro-yii.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ In diesem Handbuch geht es hauptsächlich um die Version 2.0.
Anforderungen und Voraussetzungen
---------------------------------

Yii 2.0 erfordert PHP 7.4.0 oder höher und läuft am besten mit der neuesten Version von PHP. Detailliertere
Yii 2.0 erfordert PHP 8.3.0 oder höher und läuft am besten mit der neuesten Version von PHP. Detailliertere
Informationen über die Anforderungen einzelner Funktionen erhalten Sie, indem Sie den "Requirement Checker" ausführen,
der in jedem Yii-Release enthalten ist.

Expand Down
2 changes: 1 addition & 1 deletion docs/guide-es/intro-yii.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Esta guía está basada principalmente en la versión 2.0. del framework.
Requisitos y Prerequisitos
--------------------------

Yii 2.0 requiere PHP 7.4.0 o una versión posterior y corre de mejor manera en la última versión de PHP. Se pueden encontrar requisitos más detallados de características individuales
Yii 2.0 requiere PHP 8.3.0 o una versión posterior y corre de mejor manera en la última versión de PHP. Se pueden encontrar requisitos más detallados de características individuales
ejecutando el script de comprobación incluido en cada lanzamiento de Yii.

Para utilizar Yii se requieren conocimientos básicos de programación orientada a objetos (POO), porque el framework Yii se basa íntegramente en esta tecnología.
Expand Down
2 changes: 1 addition & 1 deletion docs/guide-fr/intro-yii.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Ce guide est principalement pour la version 2.0.
Configuration nécessaire
------------------------

Yii 2.0 nécessite PHP 7.4.0 ou plus. Vous pouvez trouver plus de détails sur la configuration requise pour chaque fonctionnalité
Yii 2.0 nécessite PHP 8.3.0 ou plus. Vous pouvez trouver plus de détails sur la configuration requise pour chaque fonctionnalité
en utilisant le script de test de la configuration inclus dans chaque distribution de Yii.

Utiliser Yii requiert des connaissances de base sur la programmation objet (OOP), en effet Yii est un framework basé sur ce type de programmation.
Expand Down
2 changes: 1 addition & 1 deletion docs/guide-id/intro-yii.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Panduan ini terutama tentang versi 2.0.

## Persyaratan dan Prasyarat

Yii 2.0 memerlukan PHP 7.4.0 atau versi lebih tinggi. Anda dapat menemukan persyaratan yang lebih rinci untuk setiap fitur
Yii 2.0 memerlukan PHP 8.3.0 atau versi lebih tinggi. Anda dapat menemukan persyaratan yang lebih rinci untuk setiap fitur
dengan menjalankan pengecek persyaratan yang diikutsertakan dalam setiap rilis Yii.

Menggunakan Yii memerlukan pengetahuan dasar tentang pemrograman berorientasi objek (OOP), mengingat Yii adalah framework berbasis OOP murni.
Expand Down
2 changes: 1 addition & 1 deletion docs/guide-it/intro-yii.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Questa guida è focalizzata principalmente sulla versione 2.0.
Richieste e requisiti di sistema
---------------------------------

Yii 2.0 richiede PHP 7.4.0 o successivo. Puoi trovare maggiori dettagli sulle richieste delle singole funzionalità
Yii 2.0 richiede PHP 8.3.0 o successivo. Puoi trovare maggiori dettagli sulle richieste delle singole funzionalità
eseguendo lo script di verifica requisiti incluso in ogni versione di Yii.

L'uso di Yii richiede una conoscenza base della programmazione ad oggetti (OOP), dato che Yii è un framework puramente OOP.
Expand Down
2 changes: 1 addition & 1 deletion docs/guide-ja/intro-yii.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Yii は現在、利用可能な二つのメジャー・バージョン、すな
必要条件と前提条件
------------------

Yii 2.0 は PHP 7.4.0 以上を必要とし、PHP の最新バージョンで最高の力を発揮します。
Yii 2.0 は PHP 8.3.0 以上を必要とし、PHP の最新バージョンで最高の力を発揮します。
個々の機能に対する詳細な必要条件は、全ての Yii リリースに含まれている必要条件チェッカを走らせることによって知ることが出来ます。

Yii を使うためには、オブジェクト指向プログラミング (OOP) の基本的な知識が必要です。
Expand Down
2 changes: 1 addition & 1 deletion docs/guide-ja/runtime-sessions-cookies.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ secure フラグの目的は、クッキーが平文で送信されることを

### sameSite

Yii 2.0.21 以降、[[yii\web\Cookie::sameSite]] 設定がサポートされています。これは PHP バージョン 7.4.0 以降を必要とします。
Yii 2.0.21 以降、[[yii\web\Cookie::sameSite]] 設定がサポートされています。
`sameSite` 設定の目的は CSRF (Cross-Site Request Forgery) 攻撃を防止することです。
ブラウザが `sameSite` 設定をサポートしている場合、指定されたポリシー ('Lax' または 'Strict') に従うクッキーだけが送信されます。
詳細については [SameSite の wiki 記事](https://owasp.org/www-community/SameSite) を参照して下さい。
Expand Down
2 changes: 1 addition & 1 deletion docs/guide-ja/security-best-practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ class ContactAction extends Action

> Warning: CSRF を無効化すると、あらゆるサイトから POST リクエストをあなたのサイトに送信することが出来るようになります。その場合には、IP アドレスや秘密のトークンをチェックするなど、追加の検証を実装することが重要です。

> Note: バージョン 2.0.21 以降、Yii は `sameSite` クッキー設定 (PHP バージョン 7.4.0 以上が必要) をサポートしています。
> Note: バージョン 2.0.21 以降、Yii は `sameSite` クッキー設定をサポートしています。
ただし、`sameSite` クッキー設定を行えば、上記の CSRF 対策が不要になるということではありません。何故なら、今はまだ全てのブラウザがこの設定をサポートしている訳ではないからです。
詳細については [セッションとクッキー - sameSite オプション](runtime-sessions-cookies.md#samesite) を参照して下さい。

Expand Down
2 changes: 1 addition & 1 deletion docs/guide-pl/intro-yii.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Ten przewodnik opisuje wersję 2.0.
Wymagania i zależności
----------------------

Yii 2.0 wymaga PHP w wersji 7.4.0 lub nowszej i pracuje najwydajniej na najnowszej wersji PHP. Aby otrzymać więcej
Yii 2.0 wymaga PHP w wersji 8.3.0 lub nowszej i pracuje najwydajniej na najnowszej wersji PHP. Aby otrzymać więcej
informacji na temat wymagań i indywidualnych funkcjonalności, uruchom specjalny skrypt testujący system dołączony w każdym wydaniu Yii.

Używanie Yii wymaga podstawowej wiedzy o programowaniu obiektowym w PHP (OOP), ponieważ Yii
Expand Down
2 changes: 1 addition & 1 deletion docs/guide-pt-BR/intro-yii.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ desenvolvimento nos próximos anos. Este guia trata principalmente da versão 2.
Requisitos e Pré-requisitos
---------------------------

Yii 2.0 requer PHP 7.4.0 ou superior. Você pode encontrar requisitos mais
Yii 2.0 requer PHP 8.3.0 ou superior. Você pode encontrar requisitos mais
detalhados para recursos específicos executando o verificador de requisitos
(requirement checker) incluído em cada lançamento do Yii.

Expand Down
Loading
Loading