From 0fd914062857b62b24bd6220c8bcdd13617ebc01 Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Tue, 30 Sep 2025 10:18:26 -0300 Subject: [PATCH 01/10] Update `README.md` to enhance logo display (ligth/dark) and badge styles. --- README.md | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 8b6e4597821..65ac92ed3ff 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@

- Yii Framework + + + + Yii Framework +

@@ -9,17 +13,19 @@ Yii 2 is a modern framework designed to be a solid foundation for your PHP appli It is fast, secure and efficient and works right out of the box pre-configured with reasonable defaults. The framework is easy to adjust to meet your needs, because Yii has been designed to be flexible. -[![Latest Stable Version](https://img.shields.io/packagist/v/yiisoft/yii2.svg)](https://packagist.org/packages/yiisoft/yii2) -[![Total Downloads](https://img.shields.io/packagist/dt/yiisoft/yii2.svg)](https://packagist.org/packages/yiisoft/yii2) -[![Build Status](https://github.com/yiisoft/yii2/workflows/build/badge.svg)](https://github.com/yiisoft/yii2/actions) -[![codecov](https://codecov.io/gh/yiisoft/yii2/graph/badge.svg?token=Exm6sRwhJ6)](https://codecov.io/gh/yiisoft/yii2) -[![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/yiisoft/yii2/badges/quality-score.png?s=b1074a1ff6d0b214d54fa5ab7abbb90fc092471d)](https://scrutinizer-ci.com/g/yiisoft/yii2/) +[![Packagist Dependency Version](https://img.shields.io/badge/%3E%3D7.4-777BB4.svg?style=for-the-badge&logo=php&logoColor=white)](https://www.php.net/) +[![Latest Stable Version](https://img.shields.io/packagist/v/yiisoft/yii2.svg?style=for-the-badge)](https://packagist.org/packages/yiisoft/yii2) +[![Total Downloads](https://img.shields.io/packagist/dt/yiisoft/yii2.svg?style=for-the-badge)](https://packagist.org/packages/yiisoft/yii2) +[![Build Status](https://img.shields.io/github/actions/workflow/status/yiisoft/yii2/build.yml?style=for-the-badge&label=Build)](https://github.com/yiisoft/yii2/actions) +[![codecov](https://img.shields.io/codecov/c/github/yiisoft/yii2.svg?style=for-the-badge&logo=codecov&logoColor=white&label=Coverage)](https://codecov.io/gh/yiisoft/yii2) Installation ------------ -- The minimum required PHP version of Yii is PHP 7.4. -- It works best with PHP 8. +> [!IMPORTANT] +> - The minimum required PHP version of Yii is PHP 7.4. +> - It works best with PHP 8. + - [Follow the Definitive Guide](https://www.yiiframework.com/doc-2.0/guide-start-installation.html) in order to get step by step instructions. @@ -37,7 +43,8 @@ to get an idea of what has changed in 2.0. Versions & PHP compatibility ---------------------------- -See ["Release Cycle" at the website](https://www.yiiframework.com/release-cycle). +> [!NOTE] +> See ["Release Cycle" at the website](https://www.yiiframework.com/release-cycle) for detailed information about supported versions. Community --------- @@ -63,6 +70,9 @@ You may join us and: ### Reporting Security issues +> [!WARNING] +> Please do not report security vulnerabilities through public GitHub issues. + Please refer to a [special page at the website](https://www.yiiframework.com/security/) describing proper workflow for security issue reports. @@ -89,7 +99,7 @@ we suggest using [our logo](https://www.yiiframework.com/logo/) on your title sl If you are using Yii 2 as part of an OpenSource project, a way to acknowledge it is to [use a special badge](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=flat) in your README: -![Yii2](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=flat) +![Yii2](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=for-the-badge&logo=yii) If your code is hosted at GitHub, you can place the following in your README.md file to get the badge: @@ -101,4 +111,7 @@ If your code is hosted at GitHub, you can place the following in your README.md Support this project by becoming a sponsor or a backer. -[![OpenCollective sponsors](https://opencollective.com/yiisoft/sponsors/badge.svg)](https://opencollective.com/yiisoft) [![OpenCollective backers](https://opencollective.com/yiisoft/backers/badge.svg)](https://opencollective.com/yiisoft) +[![Open Collective sponsors](https://img.shields.io/opencollective/sponsors/yiisoft?style=for-the-badge) +](https://opencollective.com/yiisoft) +[![OpenCollective backers](https://img.shields.io/opencollective/backers/yiisoft?style=for-the-badge) +](https://opencollective.com/yiisoft) From 3bab5e731c7cafcc016ff8f4ed893770fbfb3349 Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Tue, 30 Sep 2025 10:25:02 -0300 Subject: [PATCH 02/10] Apply fixed review Copilot. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 65ac92ed3ff..7fee0c82860 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@

- - - Yii Framework + + + Yii Framework

@@ -97,7 +97,7 @@ we suggest using [our logo](https://www.yiiframework.com/logo/) on your title sl **In projects** If you are using Yii 2 as part of an OpenSource project, a way to acknowledge it is to -[use a special badge](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=flat) in your README: +[use a special badge](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=for-the-badge&logo=yii) in your README: ![Yii2](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=for-the-badge&logo=yii) From 303258b9cc150ce1ebdb5a8c4dd4d9280bc54298 Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Tue, 30 Sep 2025 10:29:27 -0300 Subject: [PATCH 03/10] Apply fixed review Copilot. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7fee0c82860..9ebedfefc81 100644 --- a/README.md +++ b/README.md @@ -99,12 +99,12 @@ we suggest using [our logo](https://www.yiiframework.com/logo/) on your title sl If you are using Yii 2 as part of an OpenSource project, a way to acknowledge it is to [use a special badge](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=for-the-badge&logo=yii) in your README: -![Yii2](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=for-the-badge&logo=yii) +[![Yii2](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=for-the-badge&logo=yii)](https://www.yiiframework.com/) If your code is hosted at GitHub, you can place the following in your README.md file to get the badge: ``` -[![Yii2](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=flat)](https://www.yiiframework.com/) +[![Yii2](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=for-the-badge&logo=yii)](https://www.yiiframework.com/) ``` ### Sponsoring From 7db0d25f5155b4bcd7d4360f71feba1adda6c574 Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Tue, 30 Sep 2025 10:31:57 -0300 Subject: [PATCH 04/10] Apply fixed review Copilot. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9ebedfefc81..2204a827d9b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ - + Yii Framework @@ -113,5 +113,5 @@ Support this project by becoming a sponsor or a backer. [![Open Collective sponsors](https://img.shields.io/opencollective/sponsors/yiisoft?style=for-the-badge) ](https://opencollective.com/yiisoft) -[![OpenCollective backers](https://img.shields.io/opencollective/backers/yiisoft?style=for-the-badge) +[![Open Collective backers](https://img.shields.io/opencollective/backers/yiisoft?style=for-the-badge) ](https://opencollective.com/yiisoft) From 82eb1a399cbe4e937e6477cb648ac79a37dc83b5 Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Tue, 30 Sep 2025 10:36:28 -0300 Subject: [PATCH 05/10] Update badge styles in `README.md` for improved consistency and logo display. --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2204a827d9b..e5e396dae71 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,9 @@ It is fast, secure and efficient and works right out of the box pre-configured w The framework is easy to adjust to meet your needs, because Yii has been designed to be flexible. [![Packagist Dependency Version](https://img.shields.io/badge/%3E%3D7.4-777BB4.svg?style=for-the-badge&logo=php&logoColor=white)](https://www.php.net/) -[![Latest Stable Version](https://img.shields.io/packagist/v/yiisoft/yii2.svg?style=for-the-badge)](https://packagist.org/packages/yiisoft/yii2) -[![Total Downloads](https://img.shields.io/packagist/dt/yiisoft/yii2.svg?style=for-the-badge)](https://packagist.org/packages/yiisoft/yii2) -[![Build Status](https://img.shields.io/github/actions/workflow/status/yiisoft/yii2/build.yml?style=for-the-badge&label=Build)](https://github.com/yiisoft/yii2/actions) +[![Latest Stable Version](https://img.shields.io/packagist/v/yiisoft/yii2.svg?logo=packagist&style=for-the-badge)](https://packagist.org/packages/yiisoft/yii2) +[![Total Downloads](https://img.shields.io/packagist/dt/yiisoft/yii2.svg?style=for-the-badge&logo=composer)](https://packagist.org/packages/yiisoft/yii2) +[![Build Status](https://img.shields.io/github/actions/workflow/status/yiisoft/yii2/build.yml?style=for-the-badge&logo=github&label=Build)](https://github.com/yiisoft/yii2/actions) [![codecov](https://img.shields.io/codecov/c/github/yiisoft/yii2.svg?style=for-the-badge&logo=codecov&logoColor=white&label=Coverage)](https://codecov.io/gh/yiisoft/yii2) Installation @@ -111,7 +111,7 @@ If your code is hosted at GitHub, you can place the following in your README.md Support this project by becoming a sponsor or a backer. -[![Open Collective sponsors](https://img.shields.io/opencollective/sponsors/yiisoft?style=for-the-badge) +[![Open Collective sponsors](https://img.shields.io/opencollective/sponsors/yiisoft?style=for-the-badge&logo=opencollective) ](https://opencollective.com/yiisoft) -[![Open Collective backers](https://img.shields.io/opencollective/backers/yiisoft?style=for-the-badge) +[![Open Collective backers](https://img.shields.io/opencollective/backers/yiisoft?style=for-the-badge&logo=opencollective) ](https://opencollective.com/yiisoft) From cc0355fa8bf4b031b177efd6d59905c308af4e1c Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Tue, 30 Sep 2025 10:38:56 -0300 Subject: [PATCH 06/10] Apply fixed review Copilot. --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e5e396dae71..e0d2a927de8 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ - Yii Framework + Yii Framework

@@ -111,7 +111,5 @@ If your code is hosted at GitHub, you can place the following in your README.md Support this project by becoming a sponsor or a backer. -[![Open Collective sponsors](https://img.shields.io/opencollective/sponsors/yiisoft?style=for-the-badge&logo=opencollective) -](https://opencollective.com/yiisoft) -[![Open Collective backers](https://img.shields.io/opencollective/backers/yiisoft?style=for-the-badge&logo=opencollective) -](https://opencollective.com/yiisoft) +[![Open Collective sponsors](https://img.shields.io/opencollective/sponsors/yiisoft?style=for-the-badge&logo=opencollective)](https://opencollective.com/yiisoft) +[![Open Collective backers](https://img.shields.io/opencollective/backers/yiisoft?style=for-the-badge&logo=opencollective)](https://opencollective.com/yiisoft) From af46bb05bd073f0aaefaaa7ef8fac680232dc5bc Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Tue, 30 Sep 2025 19:08:00 -0300 Subject: [PATCH 07/10] Fix badge links and improve PHP version requirements formatting in `README.md`. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e0d2a927de8..66be958158d 100644 --- a/README.md +++ b/README.md @@ -13,18 +13,18 @@ Yii 2 is a modern framework designed to be a solid foundation for your PHP appli It is fast, secure and efficient and works right out of the box pre-configured with reasonable defaults. The framework is easy to adjust to meet your needs, because Yii has been designed to be flexible. -[![Packagist Dependency Version](https://img.shields.io/badge/%3E%3D7.4-777BB4.svg?style=for-the-badge&logo=php&logoColor=white)](https://www.php.net/) [![Latest Stable Version](https://img.shields.io/packagist/v/yiisoft/yii2.svg?logo=packagist&style=for-the-badge)](https://packagist.org/packages/yiisoft/yii2) [![Total Downloads](https://img.shields.io/packagist/dt/yiisoft/yii2.svg?style=for-the-badge&logo=composer)](https://packagist.org/packages/yiisoft/yii2) -[![Build Status](https://img.shields.io/github/actions/workflow/status/yiisoft/yii2/build.yml?style=for-the-badge&logo=github&label=Build)](https://github.com/yiisoft/yii2/actions) +[![Build Status](https://img.shields.io/github/actions/workflow/status/yiisoft/yii2/build.yml?style=for-the-badge&logo=github&label=Build)](https://github.com/yiisoft/yii2/actions/workflows/build.yml) +[![Static Analysis](https://img.shields.io/github/actions/workflow/status/yiisoft/yii2/static.yml?style=for-the-badge&label=PHPStan&logo=github)](https://github.com/yiisoft/yii2/actions/workflows/static.yml) [![codecov](https://img.shields.io/codecov/c/github/yiisoft/yii2.svg?style=for-the-badge&logo=codecov&logoColor=white&label=Coverage)](https://codecov.io/gh/yiisoft/yii2) Installation ------------ > [!IMPORTANT] -> - The minimum required PHP 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 `7.4`. +> - It works best with PHP `8.0` or later. - [Follow the Definitive Guide](https://www.yiiframework.com/doc-2.0/guide-start-installation.html) in order to get step by step instructions. From ad327d65cbc6a369028b20b6a4ed65b90dddcb2b Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Tue, 30 Sep 2025 19:12:09 -0300 Subject: [PATCH 08/10] Update badge labels for clarity and improve PHP version recommendation in `README.md`. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 66be958158d..860d2018a49 100644 --- a/README.md +++ b/README.md @@ -13,18 +13,18 @@ Yii 2 is a modern framework designed to be a solid foundation for your PHP appli It is fast, secure and efficient and works right out of the box pre-configured with reasonable defaults. The framework is easy to adjust to meet your needs, because Yii has been designed to be flexible. -[![Latest Stable Version](https://img.shields.io/packagist/v/yiisoft/yii2.svg?logo=packagist&style=for-the-badge)](https://packagist.org/packages/yiisoft/yii2) +[![Latest Stable Version](https://img.shields.io/packagist/v/yiisoft/yii2.svg?logo=packagist&style=for-the-badge&label=Stable)](https://packagist.org/packages/yiisoft/yii2) [![Total Downloads](https://img.shields.io/packagist/dt/yiisoft/yii2.svg?style=for-the-badge&logo=composer)](https://packagist.org/packages/yiisoft/yii2) [![Build Status](https://img.shields.io/github/actions/workflow/status/yiisoft/yii2/build.yml?style=for-the-badge&logo=github&label=Build)](https://github.com/yiisoft/yii2/actions/workflows/build.yml) -[![Static Analysis](https://img.shields.io/github/actions/workflow/status/yiisoft/yii2/static.yml?style=for-the-badge&label=PHPStan&logo=github)](https://github.com/yiisoft/yii2/actions/workflows/static.yml) -[![codecov](https://img.shields.io/codecov/c/github/yiisoft/yii2.svg?style=for-the-badge&logo=codecov&logoColor=white&label=Coverage)](https://codecov.io/gh/yiisoft/yii2) +[![codecov](https://img.shields.io/codecov/c/github/yiisoft/yii2.svg?style=for-the-badge&logo=codecov&logoColor=white&label=Codecov)](https://codecov.io/gh/yiisoft/yii2) +[![Static Analysis](https://img.shields.io/github/actions/workflow/status/yiisoft/yii2/static.yml?style=for-the-badge&label=Static&logo=github)](https://github.com/yiisoft/yii2/actions/workflows/static.yml) Installation ------------ > [!IMPORTANT] > - The minimum required [PHP](https://www.php.net/) version of Yii is PHP `7.4`. -> - It works best with PHP `8.0` or later. +> - It works best with PHP `8`. - [Follow the Definitive Guide](https://www.yiiframework.com/doc-2.0/guide-start-installation.html) in order to get step by step instructions. From fb62df1c4aa1ffc139d46f623868d16be61b5b2d Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Tue, 30 Sep 2025 19:14:00 -0300 Subject: [PATCH 09/10] Fix badge logo in Total Downloads section of `README.md` for consistency. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 860d2018a49..859c0b83f00 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ It is fast, secure and efficient and works right out of the box pre-configured w The framework is easy to adjust to meet your needs, because Yii has been designed to be flexible. [![Latest Stable Version](https://img.shields.io/packagist/v/yiisoft/yii2.svg?logo=packagist&style=for-the-badge&label=Stable)](https://packagist.org/packages/yiisoft/yii2) -[![Total Downloads](https://img.shields.io/packagist/dt/yiisoft/yii2.svg?style=for-the-badge&logo=composer)](https://packagist.org/packages/yiisoft/yii2) +[![Total Downloads](https://img.shields.io/packagist/dt/yiisoft/yii2.svg?style=for-the-badge)](https://packagist.org/packages/yiisoft/yii2) [![Build Status](https://img.shields.io/github/actions/workflow/status/yiisoft/yii2/build.yml?style=for-the-badge&logo=github&label=Build)](https://github.com/yiisoft/yii2/actions/workflows/build.yml) [![codecov](https://img.shields.io/codecov/c/github/yiisoft/yii2.svg?style=for-the-badge&logo=codecov&logoColor=white&label=Codecov)](https://codecov.io/gh/yiisoft/yii2) [![Static Analysis](https://img.shields.io/github/actions/workflow/status/yiisoft/yii2/static.yml?style=for-the-badge&label=Static&logo=github)](https://github.com/yiisoft/yii2/actions/workflows/static.yml) From fafb8194be5a9c7d034ad39c81838e161dd038fa Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Tue, 30 Sep 2025 19:16:11 -0300 Subject: [PATCH 10/10] Fix badge order in `README.md` for improved clarity and consistency. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 859c0b83f00..2348867cc7c 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,8 @@ The framework is easy to adjust to meet your needs, because Yii has been designe [![Latest Stable Version](https://img.shields.io/packagist/v/yiisoft/yii2.svg?logo=packagist&style=for-the-badge&label=Stable)](https://packagist.org/packages/yiisoft/yii2) [![Total Downloads](https://img.shields.io/packagist/dt/yiisoft/yii2.svg?style=for-the-badge)](https://packagist.org/packages/yiisoft/yii2) [![Build Status](https://img.shields.io/github/actions/workflow/status/yiisoft/yii2/build.yml?style=for-the-badge&logo=github&label=Build)](https://github.com/yiisoft/yii2/actions/workflows/build.yml) -[![codecov](https://img.shields.io/codecov/c/github/yiisoft/yii2.svg?style=for-the-badge&logo=codecov&logoColor=white&label=Codecov)](https://codecov.io/gh/yiisoft/yii2) [![Static Analysis](https://img.shields.io/github/actions/workflow/status/yiisoft/yii2/static.yml?style=for-the-badge&label=Static&logo=github)](https://github.com/yiisoft/yii2/actions/workflows/static.yml) +[![codecov](https://img.shields.io/codecov/c/github/yiisoft/yii2.svg?style=for-the-badge&logo=codecov&logoColor=white&label=Codecov)](https://codecov.io/gh/yiisoft/yii2) Installation ------------