How do I install CakePdf Plugin compatible with Cakephp 2.7.3?

691 Views Asked by At

I am working on a Cakephp 2.7.3 application and I need to install CakePdf Plugin.

So far all I've found is the CakePdf version that requires Cakephp 3.0+, including when I try using composer and GitHub.

Am still not an expert in CakePHP. Kindly Assist.

1

There are 1 best solutions below

2
On BEST ANSWER

CakePDF release 1.0.3 is compatible with CakePHP 2.x.

To install it, add the following to your /app/composer.json file:

{
    "require": {
        "friendsofcake/cakepdf": "1.0.3"
    }
}

and run

localhost:~/path/to/cake/app$ composer update