artka54/ampify
Composer 安装命令:
composer require artka54/ampify
包简介
Convert your IMG tags to google-amp supported amp-img
README 文档
README
This is a package to convert regular html <img> tags to those obligated by Google-Amp <amp-img>.
This package is tested with ckeditor.
Install
Via Composer
$ composer require artka54/ampify:1.0.1
Usage
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:
<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.
Security
If you discover any security related issues, please email artka54@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-08-21