Skip to content

docfalcon/docfalcon-sdk-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DocFalcon SDK for PHP

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