定制 engage/portrayal 二次开发

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

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

engage/portrayal

Composer 安装命令:

composer require engage/portrayal

包简介

Simple, self-contained library allows you to capture screenshots using PhantomJS.

README 文档

README

Build Status

Portrayal

This simple, self-contained library allows you to capture screenshots using PhantomJS.

The library is much inspired by Laravel Cashier's PDF generation process.

Installation

You can install this package through Composer. Edit your project's composer.json file to require engage/portrayal.

"require": {
	"engage/portrayal": "dev-master"
}

Now run composer update from the terminal, and you're good to go!

Usage

$capture = new \Engage\Portrayal\Capture;
$filename = $capture->snap('https://github.com/engagedc/Portrayal', sys_get_temp_dir());

// $filename = /var/folders/6_/htvcfzcd4cb_w9z6bgpmnx5h0000gn/T/d0582362c2ffbf50ee119e504bb64fdc6bba5abd.png

You can adjust the timeout value by appending a third parameter to snap(...). E.g. 15 second timeout: $filename = $capture->snap('https://github.com/engagedc/Portrayal', sys_get_temp_dir(), 15);

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 10
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-01-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固