2017 © Pedro Peláez
 

library ampify

Convert your IMG tags to google-amp supported amp-img

image

artka54/ampify

Convert your IMG tags to google-amp supported amp-img

  • Monday, August 21, 2017
  • by artka54
  • Repository
  • 0 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

ampify

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

This is a package to convert regular html <img> tags to those obligated by Google-Amp <amp-img>. This package is tested with ckeditor., (*2)

Install

Via Composer, (*3)

``` bash $ composer require artka54/ampify:1.0.1, (*4)


## Usage ``` php use artka54\ampify\Ampify as Ampify; $Ampify = new Ampify($htmlToConvert); $Ampified = $Ampify->ampifyImgs();

WARNING: Your img must contain src, style(indicating width and height) and alt (can be empty) attributes. E.g a properly formatted img tag that can be successfuly converted with this package:, (*5)

<img alt="here is the alt" src="http://example.com/blahblah.png" style="height:599px; width:900px"> 

Change log

Please see CHANGELOG for more information on what has changed recently., (*6)

Security

If you discover any security related issues, please email artka54@gmail.com instead of using the issue tracker., (*7)

Credits

License

The MIT License (MIT). Please see License File for more information., (*8)

The Versions

21/08 2017

dev-master

9999999-dev https://github.com/artka54/ampify

Convert your IMG tags to google-amp supported amp-img

  Sources   Download

MIT

The Requires

 

The Development Requires

artka54 ampify

21/08 2017

0.1.0

0.1.0.0 https://github.com/artka54/ampify

Convert your IMG tags to google-amp supported amp-img

  Sources   Download

MIT

The Requires

  • php ~5.6|~7.0

 

The Development Requires

artka54 ampify

21/08 2017

0.9.0

0.9.0.0 https://github.com/artka54/ampify

Convert your IMG tags to google-amp supported amp-img

  Sources   Download

MIT

The Requires

  • php ~5.6|~7.0

 

The Development Requires

artka54 ampify

21/08 2017

1.0.1

1.0.1.0 https://github.com/artka54/ampify

Convert your IMG tags to google-amp supported amp-img

  Sources   Download

MIT

The Requires

  • php ~5.6|~7.0

 

The Development Requires

artka54 ampify