PHPackages                             amilna/yii2-elevatezoom - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. amilna/yii2-elevatezoom

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

amilna/yii2-elevatezoom
=======================

Elevatezoom widget for Yii2

612.2k↓50%9[1 issues](https://github.com/amilna/yii2-elevatezoom/issues)JavaScript

Since Mar 13Pushed 11y ago1 watchersCompare

[ Source](https://github.com/amilna/yii2-elevatezoom)[ Packagist](https://packagist.org/packages/amilna/yii2-elevatezoom)[ RSS](/packages/amilna-yii2-elevatezoom/feed)WikiDiscussions master Synced 1mo 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 "amilna/yii2-elevatezoom" "*"

```

or add

```
"amilna/yii2-elevatezoom" : "*"
```

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

Usage
-----

[](#usage)

in View

```
	use amilna\elevatezoom\ElevateZoom;

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

	echo ElevateZoom::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 ElevateZoom::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

28

—

LowBetter than 54% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/amilna-yii2-elevatezoom/health.svg)

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

###  Alternatives

[phpro/soap-client

A general purpose SoapClient library

8885.6M46](/packages/phpro-soap-client)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[typo3/cms-reports

TYPO3 CMS Reports - Show status reports and installed services in the (System&gt;Reports) backend module.

137.1M58](/packages/typo3-cms-reports)[lcharette/uf_formgenerator

Form generator for UserFrosting V5

178.7k3](/packages/lcharette-uf-formgenerator)

PHPackages © 2026

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