ilovepdf/ilovepdf-php ? reverse-engineered prompt

Reverse engineered prompt

Build me a PHP library for the iLovePDF API that makes it easy to automate common PDF jobs from an app.

I want to be able to sign in with a project public id and secret key, create a task for things like compressing, merging, splitting, converting Office files to PDF, PDF to JPG, images to PDF, adding page numbers, rotating, unlocking, stamping a watermark, and repairing PDFs, then add files, run the task, and download the result.

Please make it feel simple to use, with clear examples, good error handling, and support for PHP 8 and newer. Include a few sample scripts I can run right away, and make sure the code is organized cleanly enough to test and maintain. If you need anything unclear, look up the current iLovePDF docs online and follow their API behavior closely.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab