https://github.com/robertobadjio/yii2-popup-image
Yii2 popup image
https://github.com/robertobadjio/yii2-popup-image
Last synced: 4 months ago
JSON representation
Yii2 popup image
- Host: GitHub
- URL: https://github.com/robertobadjio/yii2-popup-image
- Owner: robertobadjio
- Created: 2018-12-25T20:56:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-27T10:04:17.000Z (over 6 years ago)
- Last Synced: 2025-01-14T23:35:49.297Z (6 months ago)
- Language: JavaScript
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Yii2 Popup Image
========
Based on a plugin [jQuery Lightbox v2.10.0 by Lokesh Dhakar](https://lokeshdhakar.com/projects/lightbox2/)Installation
------------The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require --prefer-dist b4djo/yii2-popup-image "*"
```or add
```
"b4djo/yii2-popup-image": "*"
```to the require section of your `composer.json` file.
Usage
-----Once the extension is installed, simply use it in your code by:
```php
= \b4djo\popup_image\PopupImageWidget::widget([
'thumbnail' => $thumbnailUrl,
'source' => $sourceUrl,
'description' => $description,
]); ?>
```