docfalcon/docfalcon-sdk

0.2.0 2017-10-18 15:27 UTC

This package is not auto-updated.

Last update: 2024-11-10 05:19:27 UTC


README

Build Status Coverage Status Packagist version

Introduction

This library provides PHP integration for DocFalcon APIs.

We welcome feedback and issues you may spot while using it.

Installation

composer require docfalcon/docfalcon-sdk

Usage

DocFalcon has one very simple and intuitive API for PDF generation. This library is a very simple wrapper around an http client.

PDF Generation

$businessCard = json_decode(file_get_contents('./samples/business_card.json'));

$client = new \GuzzleHttp\Client();
$docfalcon = new \DocFalcon\Client($client,'YOUR_APIKEY');
$response = $docfalcon->generate($businessCard, './business_card.pdf');

You can get more info about how to get an apikey or how to describe your document by looking at the docs.

License

BSD 3-Clause License

Copyright (c) 2017, DocFalcon