betrisey / pdf-client
PHP client for Axianet's PDF converter service
Installs: 23
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/betrisey/pdf-client
This package is not auto-updated.
Last update: 2025-10-22 00:01:05 UTC
README
PHP client for Axianet's HTMLtoPDF service
Installation
composer require betrisey/pdf-client
Usage
<?php require_once 'vendor/autoload.php'; use Axianet\pdfConverter\pdfClient; $pdf = new pdfClient([ 'url' => 'http://localhost/htmltopdf/', 'authUrl' => 'http://localhost/htmltopdf/auth/token.php', 'clientId' => ' ', 'clientSecret' => ' ' ]); $pdf->fromFile('file.html'); $pdf->fromString('<h1>Content</h1>'); $pdf->fromUrl('google.com');
Send email
$pdf->fromFile('file.html', 'samuel@axianet.ch', 'Suject', 'Content'); $pdf->fromFile('file.html', ['samuel@axianet.ch', 'info@axianet.ch'], 'Suject', 'Content');