PHPackages                             yasheena/yii2-view - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. yasheena/yii2-view

ActiveYii2-extension[Templating &amp; Views](/categories/templating)

yasheena/yii2-view
==================

This packet contains some helpful code for creating views for the framework YII2.

0.1.2(9y ago)0151MITPHP

Since Sep 20Pushed 9y ago1 watchersCompare

[ Source](https://github.com/yasheena/yii2-view)[ Packagist](https://packagist.org/packages/yasheena/yii2-view)[ RSS](/packages/yasheena-yii2-view/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (1)

Helpful extensions for views
============================

[](#helpful-extensions-for-views)

This packet contains some helpful code for creating views for the framework YII2.

YFormatter: Extended YII2-Formatter

- New format: ntext1line =&gt; Returns the first line only or first part of the first line(useful for text fields in grids)

Examples:
In column definition:
'format' =&gt; 'ntext1line', // Shows the first line only
'format' =&gt; \['ntext1line', 25\] // Shows a maximum of 25 characters of the fisrt line

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist yasheena/yii2-view "*"

```

or add

```
"yasheena/yii2-view": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by:

YFormatter: Add the following line to your grid options and you can use the new formats:

```
'formatter' => new \yasheena\view\YFormatter()

```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~29 days

Total

3

Last Release

3511d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6237011?v=4)[Wolfgang Mattis](/maintainers/yasheena)[@yasheena](https://github.com/yasheena)

---

Top Contributors

[![yasheena](https://avatars.githubusercontent.com/u/6237011?v=4)](https://github.com/yasheena "yasheena (11 commits)")

---

Tags

formatterviewyii2extension

### Embed Badge

![Health badge](/badges/yasheena-yii2-view/health.svg)

```
[![Health](https://phpackages.com/badges/yasheena-yii2-view/health.svg)](https://phpackages.com/packages/yasheena-yii2-view)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[marekpetras/yii2-calendarview-widget

CalendarView widget for Yii 2 Framework.

2229.6k](/packages/marekpetras-yii2-calendarview-widget)[raoul2000/yii2-bootswatch-asset

Use Bootswatch theme in your Yii application with minimum effort

2045.3k4](/packages/raoul2000-yii2-bootswatch-asset)[zxbodya/yii2-tinymce

Yii2 extension to use TinyMce with Compressor and FileManager

1732.4k3](/packages/zxbodya-yii2-tinymce)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
