2

Although I've used TCPDF before I am using it with composer for the first time through Laravel 4.

I am fighting the urge to edit any package files directly but their are config settings/ constants in TCPDF that I would like to be able to change.

I do know vendor config files can be published using:

php artisan config:publish {package}

But I don't think the TCPDF package I am using has this feature. The package is:

https://packagist.org/packages/tecnick.com/tcpdf

Don't really know much more about the package either as the git page seems to be down.

So to my questions:

Is publishing the config possible?

If not what would be the best way to to apply custom settings without touching the vendor?

Finally if the above will not really work is their a better Laravel 4 based solution that allows for HTML to PDF generation?

Thanks for reading

4

1 回答 1

0

我无法查看包的来源,但配置的发布仅适用于已正确设置和注册包的 Laravel 特定包。对于其他需要配置的包,它们应该提供一些扩展配置的方法,以避免调整后的配置被composer update.

于 2013-06-06T00:11:04.297 回答