This repository contains the open source code for the PaperBark PHP Development Kit. For more information on how to use PaperBark or the PaperBark API please look at our Documentation repository.
The recommended way of installing the SDK is using Composer. Run this command:
composer require paperbark/php-sdk
// Create a new API instance (replace with your own API token)
$api = new PaperBark\API('{token}');
// Convert HTML to PDF
$pdf = new PaperBark\PDF();
$pdf->addPage('<strong>PaperBark PHP SDK</strong>');
echo $api->pdf($pdf);
Please see the license file for more information.