定制 tonystore/fpdf-laravel 二次开发

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

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

tonystore/fpdf-laravel

Composer 安装命令:

composer require tonystore/fpdf-laravel

包简介

Paquete para usar Libreria FPDF en Laravel

README 文档

README

Latest Stable Version Total Downloads License

This package uses FPDF and allows integration with Laravel, and is based on the crabbly/fpdf-laravel package, but with an updated version of FPDF.

INSTALLATION VIA COMPOSER

Step 1: Composer

Run this command line in console.

composer require tonystore/fpdf-laravel

Step 2: Service Provider

For your Laravel app, open config/app.php and, within the providers array, append:

Tonystore\Fpdf\FpdfServiceProvider::class

Usage

We can resolve the FPDF class instance out of the container:

$pdf = app('Fpdf');

OR

$pdf = new Fpdf();

Example

Create a 'Hello World' PDF document and display it in the browser:

use Illuminate\Support\Facades\Storage;

//create pdf document
$pdf = new Fpdf('P', 'mm', 'A4'); //Attributes assigned to the document.
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');
$pdf->Output(); // 'I' is the default output.
exit;

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-08-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固