jalle19 / yii-lazy-image
Lazy image loader for the Yii framework
Installs: 2 809
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.0
- yiisoft/yii: 1.1.*
This package is auto-updated.
Last update: 2024-10-13 00:51:28 UTC
README
Lazy image loader for the Yii framework. It is implemented as a static class which leverages jQuery Unveil to load images lazily. The interface is the same as CHtml::image()
so existing code can easily be adapted to use it.
Usage
Require the project in your composer.json
, then use it like this:
echo \yiilazyimage\components\LazyImage::image($url, $alt, $htmlOptions);
License
This project is licensed under the MIT license