PHPackages                             chandrantwins/yii2-ezoom - 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. chandrantwins/yii2-ezoom

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

chandrantwins/yii2-ezoom
========================

Elevatezoom widget for Yii2

01JavaScript

Since Feb 5Pushed 6y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Elevate Zoom Widget for Yii2
============================

[](#elevate-zoom-widget-for-yii2)

An elevate zoom widget for Yii2 based on [Elevate Zoom](http://www.elevateweb.co.uk/image-zoom).

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

[](#installation)

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

Either run

```
php composer.phar require "chandrantwins/yii2-ezoom" "dev-master"

```

or add

```
"chandrantwins/yii2-ezoom" : "dev-master"
```

to the require section of your application's `composer.json` file.

Usage
-----

[](#usage)

in View

```
	use chandrantwins\ezoom\EZoom;

	$images = ['an url of zoom image 1','an url of zoom image n'];

	echo EZoom::widget([
 		'images'=>$images,
		'baseUrl'=>Yii::$app->urlManager->baseUrl.'/upload',
		'smallPrefix'=>'/.thumbs',
		'mediumPrefix'=>'',
	]);

	/* //or another example set 'images' with 3 dimension array:
	$images'= [
		[
			'image'=>'an url of zoom image 1',
			'small'=>'an url of gallery display image 1',
			'medium'=>'an url of basic display image 1'
		],
		[
			'image'=>'an url of zoom image n',
			'small'=>'an url of gallery display image n',
			'medium'=>'an url of basic display image n'
		],
	];

	echo EZoom::widget([
 		'images'=>$images,
	]);
	*/

```

'images' is array of images (1 or 3 dimensions, if 1 dimensions then you should set baseUrl, smallPrefix and mediumPrefix) or activeDataProvider (if activeDataProvider you should set imageKey, smallKey and mediumKey)

available options:

1. images
2. css (custom css)
3. baseUrl (string basic replacer of image url)
4. smallPrefix (string replacer to get small size image url)
5. mediumPrefix (string replacer to get medium size image url)
6. imageKey (model atribute that store zoom size image)
7. smallKey (model atribute that store small size image)
8. mediumKey (model atribute that store medium size image)
9. targetId (custom container id)
10. options (please see [examples](http://www.elevateweb.co.uk/image-zoom/examples))

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b40b6ace2794e839b10185e3c250eaf5c0e454047a75009d9de6ee00e1cf2899?d=identicon)[chandrantwins](/maintainers/chandrantwins)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/chandrantwins-yii2-ezoom/health.svg)

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

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3851.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.1k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.3k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

282.2k](/packages/webkinder-sproutset)

PHPackages © 2026

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