Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ jobs:
- ubuntu-latest

php-version:
- "7.4"
- "8.0"
- "8.1"
- "8.2"
- "8.3"

steps:
- uses: actions/checkout@v2
Expand All @@ -47,7 +44,7 @@ jobs:
run: cd metrics && python ./generate_badges.py && cd ..

- name: Commit Code Coverage Image to Repo
if: matrix.php-version == '8.0'
if: matrix.php-version == '8.3'
uses: EndBug/add-and-commit@v5
with:
author_name: Github actions
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ jobs:
- ubuntu-latest

php-version:
- "7.4"
- "8.0"
- "8.1"
- "8.2"
- "8.3"

steps:
- uses: actions/checkout@v2
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ Below is the sample script using **Veryfi** to OCR and extract data from a docum


## How to use it?

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

// Then use the Veryfi API
use veryfi\Client;
use veryfi\client;
````
### Process a document
```php
Expand Down Expand Up @@ -78,6 +79,11 @@ 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.

Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@
"php": ">=7.4",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*"
"ext-mbstring": "*",
"ext-fileinfo": "*"
},

"require-dev": {
"phpunit/phpunit": "9.5.18"
"phpunit/phpunit": "12.3.0"
},

"autoload": {
Expand Down
Binary file added composer.phar
Binary file not shown.
35 changes: 20 additions & 15 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" executionOrder="depends,defects" beStrictAboutOutputDuringTests="true" colors="true" verbose="true">
<coverage includeUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
<report>
<clover outputFile="./clover.xml"/>
</report>
</coverage>
<testsuites>
<testsuite name="default">
<directory>tests</directory>
</testsuite>
</testsuites>
<logging/>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
cacheDirectory=".phpunit.cache">
<testsuites>
<testsuite name="default">
<directory>tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">src</directory>
</include>
</source>
<coverage>
<report>
<clover outputFile="clover.xml"/>
</report>
</coverage>
</phpunit>
Loading