承接 crabbly/fpdf-laravel 相关项目开发

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

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

crabbly/fpdf-laravel

最新稳定版本:v1.0.6

Composer 安装命令:

composer require crabbly/fpdf-laravel

包简介

Laravel package for FPDF.

README 文档

README

A package for Laravel to implement the FPDF class.

FPDF Official Website: www.fpdf.org

Installation

Step 1: Composer

From the command line, run:

composer require crabbly/fpdf-laravel

Step 2: Service Provider

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

Crabbly\Fpdf\FpdfServiceProvider::class

This will bootstrap the package into Laravel.

Usage

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

$pdf = app('Fpdf');

We can also instantiate it directly:

$pdf = new Crabbly\Fpdf\Fpdf;

FPDF Documentation

For documentation manual and tutorials, please visit www.fpdf.org

Example

Create a 'Hello World' PDF document and save it to a file in the storage folder:

use Illuminate\Support\Facades\Storage;

//create pdf document
$pdf = app('Fpdf');
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');

//save file
Storage::put($pdf->Output('S'));

Contribution

Pull requests are welcome. Please report any issue you find in the issues page.

License

The package is free software distributed under the terms of the MIT license. FPDF is a free PHP class, you may use it for any kind of usage and modify it to suit your needs.

统计信息

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

GitHub 信息

  • Stars: 30
  • Watchers: 1
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固