php - How to use TCPDF library with Zend Framework 2? -


i trying include tcpdf library in zend2. not able success. please , 1 give solution fix issue.

thanks siva

try use composer. add line below composer.json file's require section in project root:

"require": {     "php"                         : ">=5.4",     "zendframework/zendframework" : "2.3.1",     "tecnickcom/tcpdf"            : "dev-master" <<<-- line -- }, 

open terminal (command line) , type:

cd /path/to/your/project/root php composer.phar selfupdate php composer.phar update 

and anywhere in app:

$pdf = new \tcpdf(); 

thats it.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -