PHPackages                             ivopetkov/lazy-image-bearframework-addon - 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. [Image &amp; Media](/categories/media)
4. /
5. ivopetkov/lazy-image-bearframework-addon

ActiveLibrary[Image &amp; Media](/categories/media)

ivopetkov/lazy-image-bearframework-addon
========================================

Lazy image addon for Bear Framework

v2.11.0(1w ago)02.7k1MITPHPPHP 8.0.\*|8.1.\*|8.2.\*|8.3.\*|8.4.\*|8.5.\*

Since Apr 26Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/ivopetkov/lazy-image-bearframework-addon)[ Packagist](https://packagist.org/packages/ivopetkov/lazy-image-bearframework-addon)[ Docs](https://github.com/ivopetkov/lazy-image-bearframework-addon)[ RSS](/packages/ivopetkov-lazy-image-bearframework-addon/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (10)Versions (56)Used By (1)

Lazy Image
==========

[](#lazy-image)

Addon for Bear Framework

This addon enables you to easily create lazy-loaded images that are SEO friendly. It's based on the popular library [Responsively Lazy](https://github.com/ivopetkov/responsively-lazy/). Multiple versions with different sizes are created on the fly and only the best one is loaded. This saves bandwidth and loads the website faster.

[![Build Status](https://camo.githubusercontent.com/084cf98c8f682c9ffcce19e10b7081a4f946dd2e76741ffe25007aef907b7391/68747470733a2f2f7472617669732d63692e6f72672f69766f7065746b6f762f6c617a792d696d6167652d626561726672616d65776f726b2d6164646f6e2e737667)](https://travis-ci.org/ivopetkov/lazy-image-bearframework-addon)[![Latest Stable Version](https://camo.githubusercontent.com/6d0190db95eff3694fab59f033b9d37c06a4f2e5bc5a53506c80a235b6a1aad2/68747470733a2f2f706f7365722e707567782e6f72672f69766f7065746b6f762f6c617a792d696d6167652d626561726672616d65776f726b2d6164646f6e2f762f737461626c65)](https://packagist.org/packages/ivopetkov/lazy-image-bearframework-addon)[![codecov.io](https://camo.githubusercontent.com/bc0eed1b3ffed790257f0f4488f7bd1a1d6e9ffa0ab3e6379dd698ea5a25a507/68747470733a2f2f636f6465636f762e696f2f6769746875622f69766f7065746b6f762f6c617a792d696d6167652d626561726672616d65776f726b2d6164646f6e2f636f7665726167652e7376673f6272616e63683d6d6173746572)](https://codecov.io/github/ivopetkov/lazy-image-bearframework-addon?branch=master)[![License](https://camo.githubusercontent.com/ba65469d8502177dc6c2efe63e45f7017bace72511223d837d66b97e40dd6a3a/68747470733a2f2f706f7365722e707567782e6f72672f69766f7065746b6f762f6c617a792d696d6167652d626561726672616d65776f726b2d6164646f6e2f6c6963656e7365)](https://packagist.org/packages/ivopetkov/lazy-image-bearframework-addon)[![Codacy Badge](https://camo.githubusercontent.com/b1d81ed49e3fe9a4cd41cea2798d9a148e75ff0d5c91ada7cf77f2b832e71481/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6333333335623133626366623432613261623834633536356465626233303865)](https://www.codacy.com/app/ivo_2/lazy-image-bearframework-addon)

Download and install
--------------------

[](#download-and-install)

**Install via Composer**

```
composer require ivopetkov/lazy-image-bearframework-addon
```

**Download an archive**

Download the [latest release](https://github.com/ivopetkov/lazy-image-bearframework-addon/releases) from the [GitHub page](https://github.com/ivopetkov/lazy-image-bearframework-addon) and include the autoload file.

```
include '/path/to/the/addon/autoload.php';
```

Enable the addon
----------------

[](#enable-the-addon)

Enable the addon for your Bear Framework application.

```
$app->addons->add('ivopetkov/lazy-image-bearframework-addon');
```

Usage
-----

[](#usage)

```

```

### Attributes

[](#attributes)

`filename`

 The name of the file to be shown. It must be in a publicly accessible directory.

`aspectRatio`

 The proportional relationship between the width and the height of the image. It is useful for cropping and resizing the image. Example values: 1:1, 1:2, 1.5:1, etc.

`loadingBackground`

 The type of background shown while the image is loading. Available values: none and checkered.

`class`

 HTML class attribute value

`style`

 HTML style attribute value

`alt`

 HTML alt attribute value

`title`

 HTML title attribute value

### Examples

[](#examples)

The image rendered is a square

```

```

A custom class name is added to the image HTML code

```

```

A title is added

```

```

License
-------

[](#license)

Lazy image addon for Bear Framework is open-sourced software. It's free to use under the MIT license. See the [license file](https://github.com/ivopetkov/lazy-image-bearframework-addon/blob/master/LICENSE) for more information.

Author
------

[](#author)

This addon is created by Ivo Petkov. Feel free to contact me at [@IvoPetkovCom](https://twitter.com/IvoPetkovCom) or [ivopetkov.com](https://ivopetkov.com).

###  Health Score

55

—

FairBetter than 97% of packages

Maintenance80

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity94

Battle-tested with a long release history

 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.

###  Release Activity

Cadence

Every ~68 days

Recently: every ~137 days

Total

55

Last Release

9d ago

Major Versions

v0.2.14 → v1.0.02021-01-02

v1.8.0 → v2.0.02022-12-22

PHP version history (7 changes)v0.0.1PHP &gt;=5.5.0

v0.2.0-beta.2PHP &gt;=7.1.0

v1.0.1PHP 7.1.\*|7.2.\*|7.3.\*|7.4.\*|8.0.\*

v1.6.0PHP 7.1.\*|7.2.\*|7.3.\*|7.4.\*|8.0.\*|8.1.\*

v2.2.0PHP 7.1.\*|7.2.\*|7.3.\*|7.4.\*|8.0.\*|8.1.\*|8.2.\*|8.3.\*

v2.8.0PHP 8.0.\*|8.1.\*|8.2.\*|8.3.\*|8.4.\*

v2.10.0PHP 8.0.\*|8.1.\*|8.2.\*|8.3.\*|8.4.\*|8.5.\*

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

lazy loadingimageBear Framework addonresponsive image

### Embed Badge

![Health badge](/badges/ivopetkov-lazy-image-bearframework-addon/health.svg)

```
[![Health](https://phpackages.com/badges/ivopetkov-lazy-image-bearframework-addon/health.svg)](https://phpackages.com/packages/ivopetkov-lazy-image-bearframework-addon)
```

###  Alternatives

[intervention/image

PHP Image Processing

14.3k203.8M2.5k](/packages/intervention-image)[league/glide

Wonderfully easy on-demand image manipulation library with an HTTP based API.

2.6k52.6M138](/packages/league-glide)[liip/imagine-bundle

This bundle provides an image manipulation abstraction toolkit for Symfony-based projects.

1.7k39.4M239](/packages/liip-imagine-bundle)[spatie/image

Manipulate images with an expressive API

1.4k58.5M176](/packages/spatie-image)[intervention/image-laravel

Laravel Integration of Intervention Image

1558.1M160](/packages/intervention-image-laravel)[intervention/gif

PHP GIF Encoder/Decoder

6125.4M14](/packages/intervention-gif)

PHPackages © 2026

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