Quantcast
Channel: Live News for Yii Framework

[wiki] How to redirect all emails to one inbox on Yii2 applications

\yii\mail\BaseMailer::useFileTransport is a great tool. If you activate it, all emails sent trough this mailer will be saved (by default) on @runtime/mail instead of being sent, allowing the devs to...

View Article


[wiki] Interview Questions For YII2

Hey Everyone, In this post I Just shared my Experience what most of interviewer ask in YII2 Interview. What is Active Record? and How we use that? What is Components ? What is Helpers Functions? How to...

View Article


[wiki] Aadhar Number Validator

In India have Aadhar number an we may need to valid it a input. So I created a validator for yii2 use yii\validators\Validator; class TAadharNumberValidator extends Validator { public $regExPattern =...

View Article

[wiki] Convert JSON data to html table for display on page

I have a calls which help me display json directly in html table. Json2Table::formatContent($json); The code of Json2Table class is here ============================================ /** * Class convert...

View Article

[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

Image may be NSFW.
Clik here to view.

[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


[extension] luguohuakai/yii2-dm

Database extension for DM ¶ Installation Usage A database extension for DM database Installation ¶The preferred way to install this extension is through composer. Either run php composer.phar require...

View Article


[extension] neoacevedo/yii2-auditing

Yii2 Auditing ¶ Instalación Uso Desplegando la información Registra cambios de sus modelos ActiveRecord de Yii2. Este paquete permite mantener un historial de cambios de los modelos proveyendo...

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

Image may be NSFW.
Clik here to view.

[extension] sandritsch91/yii2-widget-form-wizard

yii2-form-wizard ¶ Features Installation Usage Contributing A Yii2 form-wizard widget for bootstrap 5 Features ¶ Bootstrap 5 Client side validation, with the option to validate each step separately...

View Article

[extension] sandritsch91/yii2-widget-flatpickr

yii2-flatpickr ¶A flatpickr widget for Yii2

View Article


Image may be NSFW.
Clik here to view.

[extension] asminog/yii2-proxy

HTTP Proxy Extension for Yii 2 Installation Usage This is a simple proxy for Yii2 framework. This extension provides the HTTP proxy action for the Yii framework 2.0. For license information check the...

View Article

[extension] jatin

$config['components']['mailer'] = [ 'class' => 'jatin\resend\Mailer', 'useFileTransport' => false, 'viewPath' => '@app/mail', 'transport' => [ 'apiKey' => '<YOUR_API_KEY>' ], ];

View Article


[extension] xiaosongshu/yii2-elasticsearch

elasticsearch-YII客户端 elasticsearch client for YII ¶安装 install ¶composer require xiaosongshu/yii2-elasticsearch 配置 Configuration ¶ `php 'components' => [ 'ESClient' => [ 'class' =>...

View Article

[extension] xiaosongshu/yii2-rabbitmq

rabbitmq queue 延迟队列 ¶安装方法 install ¶composer require xiaosongshu/yii2-rabbitmq 示例 demo ¶定义一个队列 queue ¶<?php namespace app\commands; require_once __DIR__.'/vendor/autoload.php'; class Demo extends...

View Article


[extension] xiaosongshu/rabbitmq

rabbitmq queue 消息队列 ¶项目地址:https://github.com/2723659854/rabbitmq ¶项目介绍 ¶消息队列主要用于业务解耦,本项目采用rabbitmq,支持thinkPHP,laravel,webman,yii等常用框架,也可以单独使用。 安装方法 install ¶composer require xiaosongshu/rabbitmq 示例...

View Article

Image may be NSFW.
Clik here to view.

[extension] diecoding/yii2-pdfjs

Yii2 PDF.js ¶ Table of Contents Instalation Dependencies Usage Previewer PDF File with PDF.js for Yii2 Yii2 PDF.js uses PDF.js Demo: https://mozilla.github.io/pdf.js/web/viewer.html Table of Contents ¶...

View Article

Image may be NSFW.
Clik here to view.

[extension] yagas/yii2-debug4mongo

Yii 2 Debug For MongoDB 目录结构 安装依赖 安装说明 配置说明 本项目为yii2-debug的扩展,使用MongoDB对debug数据进行存储。 目录结构 ¶ src/ 代码目录 src/models/ 数据模型 src/views/ 视图文件 src/controllers/ 控制器 安装依赖 ¶ PHP支持>=5.4 yii2-mongodb...

View Article

Image may be NSFW.
Clik here to view.

[extension] sjaakp/yii2-random-provider

yii2-random-provider ¶ Installation Using RandomProvider ActiveDataProvider with random selection ¶ RandomProvider is derived from ActiveDataProvider of the Yii 2.0 PHP Framework. It selects the...

View Article


Image may be NSFW.
Clik here to view.

[extension] pingcrm-yii2-vue3

Ping CRM on Yii 2 ¶ Demo Installation Running tests Requirements Extending this project Credits A Yii 2 demo application to illustrate how Inertia.js works. With Inertia you are able to build...

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

Image may be NSFW.
Clik here to view.

[extension] duna/qrcode

Duna QR Code Library ¶ Overview Installation Usage License Contributing Issues and Support A versatile QR code generation library that supports HTML, PNG, and SVG output formats. Overview ¶The Duna QR...

View Article

Image may be NSFW.
Clik here to view.

[extension] sjaakp/yii2-donate

yii2-donate ¶ Basic functionality Prerequisites Installation The Donate widget Module options Internationalization Module ID Donation widget for Yii2 ¶ Yii2-donate is a module for the Yii 2.0 PHP...

View Article


Image may be NSFW.
Clik here to view.

[extension] mgrechanik/gridviewfilterfix

Fix for Yii2 GridView filter functionality to work properly with Bootstrap 4 and Bootstrap 5 ¶ What is it about? Installing How to use What is it about? ¶When you are using Yii2 default GridView you...

View Article

[extension] mgrechanik/yii2-activefield-additional-error

Additional span with error class for ActiveField ¶ What is it about? Installing How to use What is it about? ¶Bootstrap 4 and 5 are expecting `html` like this to decorate validation error: <input...

View Article

[extension] neoacevedo/yii2-material

Yii2 Material 3 ¶ Esta es una extensión primaria para [Yii framework 2.0](https://www.yiiframework.com). Encapsula componentes de [Material Design](https://m3.material.io/) en términos de Widgets Yii....

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



[news] Yii HTML 3.10

Version 3.10 of Yii HTML package is released. Here are the list of improvements and fixes included in the new version: made $content parameter optional in Button factories; allowed to pass null to...

View Article

[news] Yii RBAC 2.1

Version 2.1 of Yii RBAC package is released. Added optional $clock parameter to Manager constructor to get current time. Changed PHP constraint in composer.json to 8.1 - 8.4. Fixed bug when default...

View Article

[news] Please upgrade to Yii 2.0.52

We have fixed a security issue in 2.0.50 but there were additional issues so complete fix was done in 2.0.52. We have not properly assigned a new CVE for it and considered additional fix as: Bug...

View Article

[news] Yii 1.1.31 is released

We are very pleased to announce that Yii Framework version 1.1.31 is released. You can download it at yiiframework.com/download/. Yii 1.1.31 fixes some minor issues and includes a security improvement....

View Article


[news] Bootstrap5 1.0.0

First stable release of yiisoft/bootstrap5 package was tagged. The package presents Bootstrap 5 UI framework in terms of Yii widgets allowing easy usage in PHP templates, theming and more. <?php use...

View Article

[news] Yii Error Handler 4.1

Yii Error Handler package was updated with the following enhancements: Add Yiisoft\ErrorHandler\ThrowableResponseFactory that provides a response for Throwable object with renderer provider usage. Mark...

View Article

[extension] jonatas-sas/yii2-m2m-behavior

View Article


[news] MongoDB extension 3.0.3 released

We are pleased to announce the release of MongoDB extension version 3.0.3. This version requires minimum of 1.20.1 version of MongoDB PHP Extension and fixes deprecation issue with UTCDateTime and...

View Article


[news] Yii Validator 2.3

Version 2.3 of Yii Validator package has been released. The Uuid validation rule was added in this version.

View Article

[news] Yii Runner RoadRunner 3.1

Minor version of Yii Runner RoadRunner package was released. In this release: added temporal support; improved RoadRunnerGrpcApplicationRunner: added error handling, bootstrap loading, event checking,...

View Article

[news] Yii View 12.2

Version 12.2 of Yii View package has been released. Here are the list of improvements and fixes included in the new version: allowed to pass Stringable objects to WebView::setTitle() method; allowed...

View Article

[news] Yii PSR Emitter 1.0

First release of Yii PSR Emitter package was done. It provides EmitterInterface that is responsible for sending PSR-7 HTTP responses as well as several implementations of the interface: SapiEmitter -...

View Article


[news] Yii Dependency Injection 1.4

Version 1.4 of Yii Dependency Injection container is released. Added TagReference::id() method. Changed PHP constraint in composer.json to 8.1 - 8.4. Made BuildingException and NotFoundException...

View Article

[news] Yii Caching Library 3.1

Version 3.1 of Yii Caching Library is released. Added interface SerializerInterface for data serialization, and PhpSerializer implementation. Made normalize() method static in CacheKeyNormalizer class....

View Article


[news] Yii HTTP Middleware 1.0

First stable version of Yii HTTP Middleware was released. The package provides a collection of PSR-15 middleware focused on HTTP features: ContentLengthMiddleware — manages the Content-Length header in...

View Article

[news] Redis extension 2.0.20 released

We are very pleased to announce the release of Redis extension version 2.0.20. This version removes logging of AUTH command parameters in non debug mode which may pose security issue. Also, it fixes...

View Article


[news] Debug extension 2.1.27 and 2.1.26 released

We've tagged Yii2 debug extension version 2.1.27. It fixes a bug of unnecessary usage of backticks in UserPanel resulting in inability to work with environments where shell_exec is not available. No...

View Article

[news] Yii HTTP Middleware 1.1

Minor version of Yii HTTP Middleware has been released. This release adds RemoveBodyMiddleware, which removes the response body for specific HTTP status codes.

View Article

[news] Yii HTML 3.11

Version 3.11 of Yii HTML package is released. Here are the list of improvements and fixes included in the new version: added classes for Code and Pre tags, Html::code() and Html::pre() methods; added...

View Article

[news] Yii Middleware 1.1

Minor version of Yii Middleware has been released. Here are the list of improvements and fixes included in the new version: bumped PHP minimal version to 8.1 and refactor code to use new features;...

View Article


[news] Yii HTTP Runner 3.2

Minor version of Yii HTTP Runner were tagged. In this version made several changes and improvements. Add HttpApplicationRunner::runAndGetResponse() method that returns response without emit. Add...

View Article