docfalcon / docfalcon-sdk
DocFalcon SDK for PHP
0.2.0
2017-10-18 15:27 UTC
Requires
- php: >=5.5.9
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: ^4.8
This package is not auto-updated.
Last update: 2024-11-10 05:19:27 UTC
README
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