2017 © Pedro Peláez
 

library lazy-image-bearframework-addon

Lazy image addon for Bear Framework

image

ivopetkov/lazy-image-bearframework-addon

Lazy image addon for Bear Framework

  • Thursday, July 12, 2018
  • by ivopetkov
  • Repository
  • 1 Watchers
  • 0 Stars
  • 744 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 15 Versions
  • 14 % Grown

The README.md

Lazy Image

Addon for Bear Framework, (*1)

This addon enables you to easily create lazy-loaded images that are SEO friendly. It's based on the popular library 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., (*2)

Build Status Latest Stable Version codecov.io License Codacy Badge, (*3)

Download and install

Install via Composer, (*4)

composer require ivopetkov/lazy-image-bearframework-addon

Download an archive, (*5)

Download the latest release from the GitHub page and include the autoload file., (*6)

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

Enable the addon

Enable the addon for your Bear Framework application., (*7)

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

Usage

<component src="lazy-image" filename="path/to/the/file.jpg" />

Attributes

filename, (*8)

      The name of the file to be shown. It must be in a publicly accessible directory., (*9)

aspectRatio, (*10)

      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., (*11)

loadingBackground, (*12)

      The type of background shown while the image is loading. Available values: none and checkered., (*13)

class, (*14)

      HTML class attribute value, (*15)

style, (*16)

      HTML style attribute value, (*17)

alt, (*18)

      HTML alt attribute value, (*19)

title, (*20)

      HTML title attribute value, (*21)

Examples

The image rendered is a square, (*22)

<component src="lazy-image" filename="path/to/the/file.jpg" aspectRatio="1:1" />

A custom class name is added to the image HTML code, (*23)

<component src="lazy-image" filename="path/to/the/file.jpg" class="my-class-name" />

A title is added, (*24)

<component src="lazy-image" filename="path/to/the/file.jpg" title="New Year's Eve" />

License

Lazy image addon for Bear Framework is open-sourced software. It's free to use under the MIT license. See the license file for more information., (*25)

Author

This addon is created by Ivo Petkov. Feel free to contact me at @IvoPetkovCom or ivopetkov.com., (*26)

The Versions

12/07 2018

dev-master

9999999-dev https://github.com/ivopetkov/lazy-image-bearframework-addon

Lazy image addon for Bear Framework

  Sources   Download

MIT

The Requires

 

The Development Requires

image bear framework addon lazy loading responsive image

25/06 2018

v0.2.1

0.2.1.0 https://github.com/ivopetkov/lazy-image-bearframework-addon

Lazy image addon for Bear Framework

  Sources   Download

MIT

The Requires

 

The Development Requires

image bear framework addon lazy loading responsive image

31/07 2017

v0.2.0-beta.5

0.2.0.0-beta5 https://github.com/ivopetkov/lazy-image-bearframework-addon

Lazy image addon for Bear Framework

  Sources   Download

MIT

The Requires

 

The Development Requires

image bear framework addon lazy loading responsive image

31/07 2017

v0.2.0

0.2.0.0 https://github.com/ivopetkov/lazy-image-bearframework-addon

Lazy image addon for Bear Framework

  Sources   Download

MIT

The Requires

 

The Development Requires

image bear framework addon lazy loading responsive image

19/06 2017

v0.2.0-beta.4

0.2.0.0-beta4 https://github.com/ivopetkov/lazy-image-bearframework-addon

Lazy image addon for Bear Framework

  Sources   Download

MIT

The Requires

 

The Development Requires

image bear framework addon lazy loading responsive image

07/06 2017

v0.2.0-beta.3

0.2.0.0-beta3 https://github.com/ivopetkov/lazy-image-bearframework-addon

Lazy image addon for Bear Framework

  Sources   Download

MIT

The Requires

 

The Development Requires

image bear framework addon lazy loading responsive image

21/05 2017

v0.2.0-beta.2

0.2.0.0-beta2 https://github.com/ivopetkov/lazy-image-bearframework-addon

Lazy image addon for Bear Framework

  Sources   Download

MIT

The Requires

 

The Development Requires

image bear framework addon lazy loading responsive image

19/05 2017

v0.2.0-beta.1

0.2.0.0-beta1 https://github.com/ivopetkov/lazy-image-bearframework-addon

Lazy image addon for Bear Framework

  Sources   Download

MIT

The Requires

 

The Development Requires

image bear framework addon lazy loading responsive image

21/10 2016

v0.1.2

0.1.2.0 https://github.com/ivopetkov/lazy-image-bearframework-addon

Lazy image addon for Bear Framework

  Sources   Download

MIT

The Requires

 

The Development Requires

image bear framework addon lazy loading responsive image

03/10 2016

v0.1.1

0.1.1.0 https://github.com/ivopetkov/lazy-image-bearframework-addon

Lazy image addon for Bear Framework

  Sources   Download

MIT

The Requires

 

The Development Requires

image bear framework addon lazy loading responsive image

16/09 2016

v0.1.0

0.1.0.0 https://github.com/ivopetkov/lazy-image-bearframework-addon

Lazy image addon for Bear Framework

  Sources   Download

MIT

The Requires

 

The Development Requires

image bear framework addon lazy loading responsive image

02/09 2016

v0.0.4

0.0.4.0 https://github.com/ivopetkov/lazy-image-bearframework-addon

Lazy image addon for Bear Framework

  Sources   Download

MIT

The Requires

 

image bear framework addon lazy loading responsive image

15/06 2016

v0.0.3

0.0.3.0 https://github.com/ivopetkov/lazy-image-bearframework-addon

Lazy image addon for Bear Framework

  Sources   Download

MIT

The Requires

 

image bear framework addon lazy loading responsive image

06/06 2016

v0.0.2

0.0.2.0 https://github.com/ivopetkov/lazy-image-bearframework-addon

Lazy image addon for Bear Framework

  Sources   Download

MIT

The Requires

 

image bear framework addon lazy loading responsive image

26/04 2016

v0.0.1

0.0.1.0 https://github.com/ivopetkov/lazy-image-bearframework-addon

Lazy image addon for Bear Framework

  Sources   Download

MIT

The Requires

 

responsive image addon lazy bear framework