定制 artka54/ampify 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

artka54/ampify

Composer 安装命令:

composer require artka54/ampify

包简介

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

README 文档

README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-08-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固