paperbark/php-sdk

PaperBark SDK for PHP

dev-master 2017-06-16 13:21 UTC

This package is not auto-updated.

Last update: 2024-09-14 19:31:10 UTC


README

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.

Installation

The recommended way of installing the SDK is using Composer. Run this command:

composer require paperbark/php-sdk

Usage

// 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);

License

Please see the license file for more information.