承接 clippings/phantom-pdf 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

clippings/phantom-pdf

最新稳定版本:0.12.0

Composer 安装命令:

composer require clippings/phantom-pdf

包简介

A Package for generating PDF files using PhantomJS

README 文档

README

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version

Installation

Install via composer

$ composer global require clippings/phantom-pdf

Usage

$pdf = new PdfGenerator();

// Set a writable path for temporary files
$pdf->setStoragePath('storage/path');

// Saves the PDF as a file
$pdf->saveFromView($html, 'filename.pdf');

Use setBinaryPath('path') to use another version of PhantomJS.

Customizing the conversion script

If you want to use another script to execute with PhantomJS, this it how you do it.

$pdf->useScript('path/to/script');

return $pdf->saveFromView('view');

Credits

Forked from the great https://github.com/danielboendergaard/phantom-pdf package

Copyright (c) 2015, Clippings Ltd. Refactored by Ivan Kerin as part of clippings.com

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 9
  • Forks: 26
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-11-06