[wiki] GridView show sum of columns in footer.
GridView show sum of columns in footer `PHP use yii\grid\DataColumn; /** Sum of all the values in the column @author shiv / class TSumColumn extends DataColumn { public function...
View Article[wiki] How to Create and Use Validator Using Regular expressions
There are Multiple Ways to Create a Validator But here we use Regular Expression or JavaScript Regular Expression or RegExp for Creation Validators. In this article, we will see the most Frequently...
View Article[wiki] Create Bootstrap5 based Image carousel with thumbnails
Use the following css styles for carousel to work as expected. .product_img_slide { padding: 100px 0 0 0; } .product_img_slide > .carousel-inner > .carousel-item { overflow: hidden; max-height:...
View Article[wiki] How to add a DropDown Language Picker (i18n) to the Menu
How To Add Internationalisation to the NavBar Menu in Yii2 ¶ Create the required Files Edit the /config/web.php file Edit all the files in the "views" folder and any sub folders Create the texts to be...
View Article[wiki] Integrating Yii3 packages into WordPress
Source code available Goal Approach Conclusion I was recently assigned with the task of integrating several extensive forms into a WordPress website. These forms comprised numerous fields, intricate...
View Article[wiki] Use Single Login Session on All Your Yii2 Application/Repository Under...
There are multiple blog that shows how to use seperate login for yii2 application but in this article i will show you how to use a single login screen for all your YII2 Advanced, YII2 Basic,...
View Article[extension] fenomviewrenderer
Installation Usage Yii 2 extension for render views using Fenom template engine. Installation ¶composer require ensostudio/yii2-fenom Usage ¶You can add a custom template engine by reconfiguring view...
View Article[wiki] Yii3 - How to start
(draft) In Yii3 it is not as easy to start as it was with Yii2. You have to install and configure basic things on your own. Yii3 uses the modern approach based on independent packages and dependency...
View Article[extension] mspirkov/yii2-db
Yii2 DB Extension Installation Components A package of helper classes for working with databases in Yii2. Installation ¶Run php composer.phar require mspirkov/yii2-db or add "mspirkov/yii2-db": "^0.3"...
View Article[extension] mspirkov/yii2-web
Yii2 Web Extension Installation Components A package of helper classes for working with web components in Yii2. Installation ¶Run php composer.phar require mspirkov/yii2-web or add...
View Article[extension] rft/yii2-searchable-depdrop
Searchable & Dependent Dropdown Widget for Yii2 ¶ Features Installation Usage Styling Features Configuration Options Recent Changes (v1.0.1) License A reusable Yii2 widget that provides a...
View Article[extension] ldkafka/yii2-google-gemini
Yii2 Google Gemini Component (v2.0.0) ¶ What’s New in 2.0.0 Feature Summary Requirements Installation Quick Start Usage Examples Caching Modes Deep Dive Console Commands Configuration Options Supported...
View Article[extension] ldkafka/yii2-scheduler
yii2-scheduler ¶ Installation Usage Upgrade notes Release checklist Logging Monitoring Events Cleanup and safety Compatibility License High-resolution cron-like job scheduler for Yii2 supporting:...
View Article[wiki] Building Modern SPAs with Yii2 and Inertia.js
Introduction Installation Quick Setup Core Features Best Practices Common Patterns Troubleshooting Additional Resources Conclusion Introduction ¶Inertia.js is a modern approach to building single-page...
View Article[extension] crenspire/yii2-react-starter
Yii2 - Modern Starter Kit Screenshots Requirements Installation Production Build Configuration Directory Structure Testing Yii2 - Modern Starter Kit is a modern, full-featured Yii 2 application...
View Article[extension] davidrnk/yii2-recurring-date
yii2-recurring-date ¶ Main Features Installation Usage JSON Format (persisted) Calculation of the Next Expiration Date Configuration and Customization Validations and UX Behavior Internationalization...
View Article[extension] neoacevedo/yii2-chartjs-widget
ChartJs Widget ¶ Installation Usage Further Information Contributing Credits License Este paquete es un fork de 2amigos/yii2-chartjs-widget, el cual se encuentra en modo de solo lectura. Este fork fue...
View Article[news] Yii Test Support 3.2
Supporting tools for testing version 3.2.0 was released. In this version added StringStream, a test-specific implementation of PSR-7 stream.
View Article[extension] chinaphp/yii2-ide-helper
Yii2 IDE Helper ¶ 功能特性 安装 使用 PhpStorm Meta 文件详解 PhpStorm 配置 生成文件示例 测试 贡献 许可证 致谢 为 Yii2 框架提供 PhpStorm 智能代码补全支持,灵感来源于 barryvdh/laravel-ide-helper 功能特性 ¶ ✅ 为 Yii2 组件生成完整的 PHPDoc 类型提示 ✅ 为 ActiveRecord...
View Article[news] Security lessons Yii learned thanks to GitHub Secure Open Source Fund
Last year Yii was chosen to be in session 3 of the GitHub Secure Open Source Fund as a project that impacts a significant part of the PHP landscape. We were in good company together with many wonderful...
View Article[news] Yii3 web application template 1.2.0
Yii3 web application template version 1.2.0 was released. In this version: Improved prod-deploy error handling so exact error is printed in case of rollback. Removed mutation testing since that's...
View Article[news] Yii3 support added to Tideways profiler
Yii3 support was added to Tideways profiler additionally to existing verison 1 and 2 support. Happy profiling!
View Article[news] Yii Data Response 2.2
Yii Data Response version 2.2.0 was released. In this version: Add DataStream Add FormatterInterface and implementations: HtmlFormatter, JsonFormatter, PlainTextFormatter, XmlFormatter Add...
View Article[news] Yii View Renderer 7.4
Minor version of Yii View Renderer were tagged. Introduce WebViewRenderer instead of ViewRenderer which is marked as deprecated. Explicitly import classes, functions, and constants in "use" section.
View Article[news] Yii Mailer 6.1
Yii Mailer version 6.1.0 was released. In this version: Add debug collector Explicitly import classes, functions, and constants in "use" section Remove unnecessary files from Composer package Add PHP...
View Article[news] Bootstrap5 1.1.0
Bootstrap 5 version 1.1.0 was released. In this version: Add Nav::activateParents() that makes parent dropdown active when one of its child items is active Allow Dropdown::togglerVariant() to be null,...
View Article[news] Yii API Application Template 1.2
Yii3 API project template 1.2.0 Yii API Application Template version 1.2.0 was released. In this version: Improve prod-deploy error handling so exact error is printed in case of rollback Refactor...
View Article[news] Yii HTTP Middleware 1.2
Yii HTTP Middleware version 1.2.0 was released. In this version: Add RedirectMiddleware Change PHP constraint in composer.json to 8.1 - 8.5
View Article[news] Yii HTML 3.13
Yii HTML version 3.13.0 was released. In this version: Added $attributes parameter to Html::li() method Deprecateed static constructors such as TagName::tag() in favor of new TagName() Enhanced...
View Article[news] Yii HTML 4
Yii HTML version 4 was released. In this version: Allow passing int, float and null as tag content Throw LogicException in Tag::id() when id is empty string Remove tag attributes sorting Make all...
View Article[news] Yii DataView 1.1
Yii DataView version 1.1.0 was released. In this version: Add caption support for GridView Explicitly import constants in "use" section Bump minimal yiisoft/html version to 3.13 and add support for ^4.0
View Article[extension] bestyii/yii2-tabler
bestyii/yii2-tabler ¶ 产品定位 当前交付面 适合什么项目 和应用的边界 安装 快速开始 组件契约 资源策略 产品目标 稳定性与兼容原则 质量与可维护性 文档入口 选型结论 bestyii/yii2-tabler 是一个面向 Yii2 后台、运营平台和数据管理界面的 Tabler 组件包。 它不是单纯的 CSS 主题封装,而是把 Tabler...
View Article[news] Proxy 1.2.0
Yii Proxy version 1.2 was released. This version adds support for PHP 8.5.
View Article[news] Yii3 web application template 1.3.0
Yii3 web application template version 1.3.0 was released. In this version: Replace deprecated PHP CS Fixer rule set @PER-CS2.0 with @PER-CS Do not write logs to file since that's not needed for both...
View Article[news] Yii API Application Template 1.3
Yii3 API project template version 1.3.0 was released. In this version: Do not write logs to file since that's not needed for both Docker and ./yii serve Add .env for development without Docker Add...
View Article[news] Response Download 1.1.0
Response download version 1.1.0 was released. In this version: Add support for psr/http-message version ^2.0 Try to determine content MIME type automatically
View Article[news] Yii3 application templates 1.4.0
Both web template and API template got 1.4.0 release which adds expicit Caddyfile configs for production and development Docker environments. These configs are in docker/Caddyfile for production image...
View Article[news] Yii3 FrankenPHP worker runner 1.0.0
First stable version of FrankenPHP worker runner released. The runner allows using FrankenPHP in worker mode. In this mode application is initializer once per worker and is serving multiple reqests in...
View Article[wiki] Using Redis Cache in Yii 1.x (Production Setup + Tips)
Hey everyone, I’m working on a Yii 1.x–based ERP/POS system and recently implemented Redis caching for performance optimization. Thought I’d share my setup and a few lessons learned in case it helps...
View Article[news] Yii Log Email Target 4.2
Yii Log Email Target version 4.2.0 was released. In this version: Change PHP constraint in composer.json to 8.1 - 8.5 Raise the minimum yiisoft/mailer version to ^6.0 and adapt the code accordingly...
View Article[extension] andy87/yii2-file-crafter
Yii2 File Crafter Yii2 File Crafter - library for generating a many templates with minimal differences Content ¶ Setup Config Using Setup Requirements php >=8.0 Yii2 Composer Add package to project...
View Article[wiki] How to add Open Graph and Twitter Card tags to Yii2 website.
OpenGraph and Twitter Cards are two metadata sets that allow to describe web pages and make it more understandable for Facebook and Twitter respectively. There a lot of meta tags to add to a simple...
View Article