How to integrate TinyPNG (Tinify API) with CakePHP?

I’m trying to use Tinify to resize and compress on the upload but I can’t get it to work, to be honest I can’t even install it. I’ve tried with composer but I can’t make CakePHP load the plugin. What am I supposed to do?