PHPackages                             gb5256/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. gb5256/yii2-elevatezoom

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

gb5256/yii2-elevatezoom
=======================

Elevatezoom widget for Yii2

016JavaScript

Since Sep 20Pushed 7y ago1 watchersCompare

[ Source](https://github.com/gb5256/yii2-elevatezoom)[ Packagist](https://packagist.org/packages/gb5256/yii2-elevatezoom)[ RSS](/packages/gb5256-yii2-elevatezoom/feed)WikiDiscussions master Synced 2d 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).

THIS IS A FORK OF amilna/yii2-elevatezoom DIFFERENCE: I have removed the thumbnail (aka gallery) options as I do not need that).

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

[](#installation)

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

Either run

```
php composer.phar require "gb5256/yii2-elevatezoom" "*"

```

or add

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

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

Usage
-----

[](#usage)

in View

```
	use gb5256\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

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

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://avatars.githubusercontent.com/u/324658?v=4)[gb5256](/maintainers/gb5256)[@gb5256](https://github.com/gb5256)

### Embed Badge

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

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

###  Alternatives

[reactivex/rxphp

Reactive extensions for php.

1.7k3.2M49](/packages/reactivex-rxphp)[yohang/finite

A simple PHP Finite State Machine

1.3k3.5M10](/packages/yohang-finite)[lavary/laravel-menu

A quick way to create menus in Laravel 5

1.2k2.0M44](/packages/lavary-laravel-menu)[hotwired-laravel/turbo-laravel

Turbo Laravel gives you a set of conventions to make the most out of the Hotwire stack (inspired by turbo-rails gem).

838481.6k3](/packages/hotwired-laravel-turbo-laravel)[gladcodes/keygen

A fluent PHP random key generator.

119668.9k2](/packages/gladcodes-keygen)[matomo/searchengine-and-social-list

Search engine and social network definitions used by Matomo (formerly Piwik)

74994.1k5](/packages/matomo-searchengine-and-social-list)

PHPackages © 2026

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