PHPackages                             pdffiller/pdffiller-php-api-client - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. pdffiller/pdffiller-php-api-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

pdffiller/pdffiller-php-api-client
==================================

PHP client for pdffiller.com REST API

v3.2.0(3y ago)14140.2k↑27.4%7[2 PRs](https://github.com/pdffiller/pdffiller-php-api-client/pulls)MITPHPPHP &gt;=7.0

Since Feb 29Pushed 1y ago57 watchersCompare

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

READMEChangelog (10)Dependencies (7)Versions (37)Used By (0)

PDFfiller PHP Client
====================

[](#pdffiller-php-client)

[![Join the chat at https://gitter.im/pdffiller/pdffiller-php-api-client](https://camo.githubusercontent.com/832182332d312419800f940b1484020d0f24fdb43be5a67cf54df6064a940c9a/68747470733a2f2f6261646765732e6769747465722e696d2f70646666696c6c65722f70646666696c6c65722d7068702d6170692d636c69656e742e737667)](https://gitter.im/pdffiller/pdffiller-php-api-client?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

[PDFfiller API](https://api.pdffiller.com)You can sign up for the API [here](https://www.pdffiller.com/en/developers#tab-pricing)

System Requirements
-------------------

[](#system-requirements)

- PHP &gt;= 7.0 but the latest stable version of PHP is recommended;
- `mbstring` extension;
- `intl` extension;

Installation
------------

[](#installation)

The library is available on Packagist and can be installed using Composer. This is done by running the following command on a composer installed box:

```
$ composer require pdffiller/pdffiller-php-api-client

```

Most modern frameworks include Composer out of the box. However, please ensure that the following file is included:

```
// Include the Composer autoloader
require 'vendor/autoload.php';
```

### Troubleshooting

[](#troubleshooting)

If you have the following error:

```
[RuntimeException]
 Could not load package pdffiller/pdffiller-php-api-client in http://packagi
 st.org: [UnexpectedValueException] Could not parse version constraint ^5.2:
  Invalid version string "^5.2"

 [UnexpectedValueException]
 Could not parse version constraint ^5.2: Invalid version string "^5.2"

```

Try running

```
composer self-update

```

Also you might encounter the following:

```
Warning: require_once(../../vendor/autoload.php): failed to open stream: No such file or directory

```

This issue is easily fixed by installing composer dependencies:

```
composer install

```

### Quick getting started steps

[](#quick-getting-started-steps)

Install required libraries using composer

```
cd pdffiller-php-api-client/
composer install

```

Edit `.env` file in examples directory setting client\_id, client\_secret, username and password (for authorization via `password_grant`)

```
cd examples/
cp .env.example .env
vi .env

```

Run any example

```
cd signature_request/
php 1_get_signature_request_list.php

```

Authentication
--------------

[](#authentication)

Access tokens automatically initialize when they’re successfully retrieved from the given user's credentials (after PDFfiller\\OAuth2\\Client\\Provider\\PDFfiller::getAccessToken($grant\_type, $options) method), according to the example below:

```
