pogodoc/pogodoc-php

There is no license information available for the latest version (v0.2.6) of this package.

Installs: 20

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/pogodoc/pogodoc-php

v0.2.6 2025-08-11 08:49 UTC

This package is auto-updated.

Last update: 2025-12-11 09:29:23 UTC


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