tuxone / fpdf

为使用 Symfony 2.1 生成 PDF - 由 StartupJob 开发

dev-master 2013-12-02 00:32 UTC

This package is auto-updated.

Last update: 2024-09-04 22:51:15 UTC


README

使用 FPDF 1.7

配置

将以下行添加到您的 'composer.json' 文件中:

    "require": {
            "php": ">=5.3.3",
            "symfony/symfony": "2.1.*",
            .......
            "startupjob/fpdf": "*"
     },
    "repositories": [
            {
                "type": "package",
                "package": {
                    "name": "startupjob/fpdf",
                    "version": "master",
                    "source": {
                        "url": "git@github.com:startupjob/fpdf.git",
                        "type": "git",
                        "reference": "master"
                    }
                }
            }
        ],

现在运行 php composer.phar updatephp composer.phar install

使用方法

    $pdf = new \PDF;

StartupJob

来源

FPDF