hnhdigital-os/laravel-emogrifier 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

hnhdigital-os/laravel-emogrifier

Composer 安装命令:

composer require hnhdigital-os/laravel-emogrifier

包简介

A Laravel wrapper for emogrifier that converts CSS styles into inline style attributes in your HTML code.

README 文档

README

                                 _  __ _ 
                                (_)/ _(_)
  ___ _ __ ___   ___   __ _ _ __ _| |_ _  ___ _ __
 / _ \ '_ ` _ \ / _ \ / _` | '__| |  _| |/ _ \ '__|
|  __/ | | | | | (_) | (_| | |  | | | | |  __/ |
 \___|_| |_| |_|\___/ \__, |_|  |_|_| |_|\___|_|
                       __/ |
                      |___/

This package provides a Laravel wrapper to the Emogrifier package that provides the ability to convert CSS styles into inline style attributes in your HTML code.

Latest Stable Version Total Downloads Latest Unstable Version Built for Laravel License Donate to this project using Patreon

Build Status StyleCI Test Coverage Issue Count Code Climate

This package has been developed by H&H|Digital, an Australian botique developer. Visit us at hnh.digital.

Documentation

Requirements

  • Laravel 5.4
  • PHP 7.1

Installation

Via composer:

$ composer require hnhdigital-os/laravel-emogrifier ~2.0

The service provider will autoload from Laravel 5.5.

Enable the facade by editing config/app.php:

'aliases' => array(
    ...
    'Emogrifier' => HnhDigital\Emogrifier\Facade::class,
    ...
)

To enable the service provider in versions prior to Laravel 5.4, edit the config/app.php:

Enable the service provider by editing config/app.php:

'providers' => array(
    ...
    HnhDigital\Emogrifier\ServiceProvider::class,
    ...
)

Instructions

$output = Emogrifier::parse($html, $css);
$output = app('Emogrifier')->parse($html, $css);

Contributing

Please see CONTRIBUTING for details.

Credits

License

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

统计信息

  • 总下载量: 12.15k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-07-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固