pogodoc / pogodoc-php
There is no license information available for the latest version (v0.2.6) of this package.
v0.2.6
2025-08-11 08:49 UTC
Requires
- guzzlehttp/guzzle: ^7.9
- vlucas/phpdotenv: ^5.6
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
The Pogodoc PHP SDK enables developers to seamlessly generate documents and manage templates using Pogodoc’s API.
Installation
To install the PHP SDK, just execute the following command
$ composer require pogodoc/pogodoc-php
Setup
To use the SDK you will need an API key which can be obtained from the Pogodoc Dashboard
Example
<?php require __DIR__ . '/vendor/autoload.php'; use PogodocSdk\PogodocSdk; $client = new PogodocSdk("YOUR_POGODOC_API_TOKEN"); $response = $client->generateDocument([ 'templateId' => "your-template-id", 'data' => ["name" => "John Doe"], 'renderConfig' => [ 'type' => 'html', 'target' => 'pdf', 'formatOpts' => [ 'fromPage' => 1, ], ], ]); printf("Generated document url:\n %s\n", $response->output->data->url);
License
MIT License