定制 anouar/fpdf 二次开发

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

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

anouar/fpdf

最新稳定版本:2.0

Composer 安装命令:

composer require anouar/fpdf

包简介

Fpdf allows to generate PDF files

README 文档

README

If you're going to use this package with L4, make sure you include the laravel 4 version:

"require": {
    "anouar/fpdf": "1.0.1"
}

##laravel-Fpdf

Fpdf lets you generate PDF files. This package is the laravel package version of http://www.fpdf.org , for more information check this link http://www.fpdf.org/?lang=en

##Donation : If you want to support us: Click here to lend your support to: github and make a donation at pledgie.com !

###Installation Add the following to your composer.json file:

"require-dev": {
	"anouar/fpdf": "1.0.2"
}

Next, run composer install to download it.

Add the service provider to app/config/app.php, within the providers array.

'providers' => array(
	// ...

	'Anouar\Fpdf\FpdfServiceProvider',
)

Finally, add the alias to app/config/app.php, within the aliases array.

'aliases' => array(
	// ...

	'Fpdf'	  => 'Anouar\Fpdf\Facades\Fpdf',
)

##Example Code

Route::get('pdf', function(){
	$fpdf = new Fpdf();
        $fpdf->AddPage();
        $fpdf->SetFont('Arial','B',16);
        $fpdf->Cell(40,10,'Hello World!');
        $fpdf->Output();
        exit;

});

##OR

Route::get('pdf', function(){

        Fpdf::AddPage();
        Fpdf::SetFont('Arial','B',16);
        Fpdf::Cell(40,10,'Hello World!');
        Fpdf::Output();
        exit;

});

统计信息

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

GitHub 信息

  • Stars: 44
  • Watchers: 3
  • Forks: 52
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-2-Clause
  • 更新时间: 2013-09-09