veryfi/veryfi-php
Composer 安装命令:
composer require veryfi/veryfi-php
包简介
veryfi sdk for php
关键字:
README 文档
README
https://veryfi.github.io/veryfi-php/
Veryfi is a php module for communicating with the Veryfi OCR API
Installation
In your project root run
composer require veryfi/veryfi-php
Getting Started
Obtaining Client ID and user keys
If you don't have an account with Veryfi, please go ahead and register here: https://hub.veryfi.com/signup/api/
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?
// 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
$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
$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?
Visit https://docs.veryfi.com/ 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 support@veryfi.com.
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 https://www.veryfi.com/
Tutorial
Debug project with https://xdebug.org/docs/install#pecl 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.
veryfi/veryfi-php 适用场景与选型建议
veryfi/veryfi-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 189k 次下载、GitHub Stars 达 15, 最近一次更新时间为 2021 年 11 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「OCR」 「data processing」 「veryfi」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 veryfi/veryfi-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 veryfi/veryfi-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 veryfi/veryfi-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Shoot aims to make providing data to your templates more manageable
Adds the EDTF data type to Wikibase
A simple library that allows transform any kind of data to native php data or whatever
paywant api php client
Convert and operate with FIPS codes for states, counties, etc.
Data provider for yii2
统计信息
- 总下载量: 189k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-11-10

