PHPackages                             veryfi/veryfi-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. [API Development](/categories/api)
4. /
5. veryfi/veryfi-php

ActiveLibrary[API Development](/categories/api)

veryfi/veryfi-php
=================

veryfi sdk for php

1.0.5(5mo ago)16129.2k↓24.2%1[2 issues](https://github.com/veryfi/veryfi-php/issues)MITPHPPHP &gt;=7.4CI failing

Since Nov 10Pushed 5mo ago5 watchersCompare

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

READMEChangelog (6)Dependencies (1)Versions (9)Used By (0)

[![](https://user-images.githubusercontent.com/30125790/212157461-58bdc714-2f89-44c2-8e4d-d42bee74854e.png#gh-dark-mode-only)](https://user-images.githubusercontent.com/30125790/212157461-58bdc714-2f89-44c2-8e4d-d42bee74854e.png#gh-dark-mode-only)

[![](https://user-images.githubusercontent.com/30125790/212157486-bfd08c5d-9337-4b78-be6f-230dc63838ba.png#gh-light-mode-only)](https://user-images.githubusercontent.com/30125790/212157486-bfd08c5d-9337-4b78-be6f-230dc63838ba.png#gh-light-mode-only)

[![php - version](https://camo.githubusercontent.com/e0ff00ea5e1193ea0f32e5c4574d2807c3596f15110a205fb8025d8b1e4a8806/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d372e342d383839324246)](https://www.php.net/releases/8.0/en.php)[![License: MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://opensource.org/licenses/MIT)[![code coverage](./metrics/code_coverage.svg)](./metrics/code_coverage.svg)

**Veryfi** is a php module for communicating with the [Veryfi OCR API](https://veryfi.com/api/)

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

[](#installation)

In your project root run

```
composer require veryfi/veryfi-php
```

Getting Started
---------------

[](#getting-started)

### Obtaining Client ID and user keys

[](#obtaining-client-id-and-user-keys)

If you don't have an account with Veryfi, please go ahead and register here:

### php API Client Library

[](#php-api-client-library)

The **Veryfi** library can be used to communicate with Veryfi API. All available functionality is described here DOC

Below is the sample script using **Veryfi** to OCR and extract data from a document:

How to use it?
--------------

[](#how-to-use-it)

```
// First, include the autoload file generated by Composer
require_once "path_to_your_vendor_autoload";

// Then use the Veryfi API
use veryfi\client;
```

### Process a document

[](#process-a-document)

```
$client_id = 'your_client_id';
$client_secret = 'your_client_secret';
$username = 'your_username';
$api_key = 'your_api_key';

$veryfi_client = new Client($client_id, $client_secret, $username, $api_key);
$categories = array('Advertising & Marketing', 'Automotive');
$file = 'path_to_your_image';
$return_associative = true;
$delete_after_processing = false;
$json_response = json_decode($veryfi_client->process_document($file, $categories, $delete_after_processing), $return_associative);
```

### Update a document

[](#update-a-document)

```
$client_id = 'your_client_id';
$client_secret = 'your_client_secret';
$username = 'your_username';
$api_key = 'your_api_key';

$veryfi_client = new Client($client_id, $client_secret, $username, $api_key);
$document_id = 'your_document_id' //as int
$parameters = array('category' => 'Meals & Entertainment',
                    'total' => 11.23);
$return_associative = true;
$json_response = json_decode($veryfi_client->update_document($document_id, $parameters), $return_associative);
```

Need help?
----------

[](#need-help)

Visit  to access integration guides and usage notes in the Veryfi API Documentation Portal

If you run into any issue or need help installing or using the library, please contact .

If you found a bug in this library or would like new features added, then open an issue or pull requests against this repo!

To learn more about Veryfi visit

Tutorial
--------

[](#tutorial)

Debug project with pecl install xdebug Installing '/opt/homebrew/Cellar/php/8.3.10/pecl/20230831/xdebug.so' install ok: channel://pecl.php.net/xdebug-3.3.2 Extension xdebug enabled in php.ini

Below is an introduction to the php SDK.

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance67

Regular maintenance activity

Popularity40

Moderate usage in the ecosystem

Community13

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~295 days

Recently: every ~333 days

Total

6

Last Release

173d ago

PHP version history (2 changes)1.0.0PHP &gt;=8.0.0

1.0.1PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f645de3ee8dd3528e5edecae98479132c43ebc6612596e970b4dd184f4c0e2c?d=identicon)[Kaevan](/maintainers/Kaevan)

---

Top Contributors

[![alejouribesanchez](https://avatars.githubusercontent.com/u/3950665?v=4)](https://github.com/alejouribesanchez "alejouribesanchez (33 commits)")[![Kaevan89](https://avatars.githubusercontent.com/u/83849194?v=4)](https://github.com/Kaevan89 "Kaevan89 (30 commits)")[![abakonski](https://avatars.githubusercontent.com/u/20109575?v=4)](https://github.com/abakonski "abakonski (4 commits)")

---

Tags

apiapi-clientapi-restinvoiceinvoice-insightinvoice-parserocrocr-libraryphpreceiptsdkOCRdata processingveryfi

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/veryfi-veryfi-php/health.svg)

```
[![Health](https://phpackages.com/badges/veryfi-veryfi-php/health.svg)](https://phpackages.com/packages/veryfi-veryfi-php)
```

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)[hubspot/api-client

Hubspot API client

23914.2M16](/packages/hubspot-api-client)[botman/driver-telegram

Telegram driver for BotMan

92437.3k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
