PHPackages                             pdfsquid/client-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. pdfsquid/client-php

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

pdfsquid/client-php
===================

PHP client for PDFsquid API

0.9.2(9y ago)250MITPHPPHP &gt;=5.3

Since May 24Pushed 9y ago1 watchersCompare

[ Source](https://github.com/pdfsquid/client-php)[ Packagist](https://packagist.org/packages/pdfsquid/client-php)[ RSS](/packages/pdfsquid-client-php/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

PDFsquid PHP client
===================

[](#pdfsquid-php-client)

This library simplifies usage of ZoneApi used for PDFsquid conversion mechanisms.

Requirements and dependencies
-----------------------------

[](#requirements-and-dependencies)

The library requires PHP 5.3 and later. Additionally, make sure that the following PHP extensions are installed on your server:

- [`curl`](https://secure.php.net/manual/en/book.curl.php),
- [`json`](https://secure.php.net/manual/en/book.json.php)

You also need credentials for ZoneApi (api key, api secret) and zone name in order to use this client. If you do not have them you can:

- register at[Client Panel](https://panel.pdfsquid.com) if you do not have account yet
- add new api access

or

- ask for api access your administrator who is registered

Install by composer
-------------------

[](#install-by-composer)

This is preferred install method. If you do not have composer already, install it first from [Composer](http://getcomposer.org/). Then run below command:

```
composer require pdfsquid/client-php
```

Then use Composer's [autoload](https://getcomposer.org/doc/00-intro.md#autoloading) mechanism:

```
require_once('vendor/autoload.php');
```

Manual Installation
-------------------

[](#manual-installation)

There might be situation when you can not use composer to install this library (eg. it is not available on the system). In such cases you can download the [latest release](https://github.com/pdfsquid/zoneapi-php/releases) and then just include the `autoload.php` file.

```
require_once('/path/to/client-php/autoload.php');
```

Example usage
-------------

[](#example-usage)

Download PDF file from URL/HTML synchronously:

```
