pogodoc/pogodoc-php
最新稳定版本:v0.2.6
Composer 安装命令:
composer require pogodoc/pogodoc-php
包简介
README 文档
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
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2025-05-21