Skip to content

Commit 192c917

Browse files
authored
Merge pull request #18 from veryfi/feature/LP-956-Update-PHP-SDK
Feature/lp 956 update php sdk
2 parents 3ccd837 + 6a0f0dc commit 192c917

109 files changed

Lines changed: 18723 additions & 1000 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/main.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ jobs:
2020
- ubuntu-latest
2121

2222
php-version:
23-
- "7.4"
24-
- "8.0"
25-
- "8.1"
26-
- "8.2"
23+
- "8.3"
2724

2825
steps:
2926
- uses: actions/checkout@v2
@@ -47,7 +44,7 @@ jobs:
4744
run: cd metrics && python ./generate_badges.py && cd ..
4845

4946
- name: Commit Code Coverage Image to Repo
50-
if: matrix.php-version == '8.0'
47+
if: matrix.php-version == '8.3'
5148
uses: EndBug/add-and-commit@v5
5249
with:
5350
author_name: Github actions

.github/workflows/php.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ jobs:
2020
- ubuntu-latest
2121

2222
php-version:
23-
- "7.4"
24-
- "8.0"
25-
- "8.1"
26-
- "8.2"
23+
- "8.3"
2724

2825
steps:
2926
- uses: actions/checkout@v2

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ Below is the sample script using **Veryfi** to OCR and extract data from a docum
2929

3030

3131
## How to use it?
32+
3233
```php
3334
// First, include the autoload file generated by Composer
3435
require_once "path_to_your_vendor_autoload";
3536

3637
// Then use the Veryfi API
37-
use veryfi\Client;
38+
use veryfi\client;
3839
````
3940
### Process a document
4041
```php
@@ -78,6 +79,11 @@ To learn more about Veryfi visit https://www.veryfi.com/
7879

7980
## Tutorial
8081

82+
Debug project with https://xdebug.org/docs/install#pecl
83+
pecl install xdebug
84+
Installing '/opt/homebrew/Cellar/php/8.3.10/pecl/20230831/xdebug.so'
85+
install ok: channel://pecl.php.net/xdebug-3.3.2
86+
Extension xdebug enabled in php.ini
8187

8288
Below is an introduction to the php SDK.
8389

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@
2020
"php": ">=7.4",
2121
"ext-curl": "*",
2222
"ext-json": "*",
23-
"ext-mbstring": "*"
23+
"ext-mbstring": "*",
24+
"ext-fileinfo": "*"
2425
},
2526

2627
"require-dev": {
27-
"phpunit/phpunit": "9.5.18"
28+
"phpunit/phpunit": "12.3.0"
2829
},
2930

3031
"autoload": {

composer.phar

2.97 MB
Binary file not shown.

phpunit.xml

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<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">
3-
<coverage includeUncoveredFiles="true">
4-
<include>
5-
<directory suffix=".php">./src</directory>
6-
</include>
7-
<report>
8-
<clover outputFile="./clover.xml"/>
9-
</report>
10-
</coverage>
11-
<testsuites>
12-
<testsuite name="default">
13-
<directory>tests</directory>
14-
</testsuite>
15-
</testsuites>
16-
<logging/>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd"
4+
bootstrap="vendor/autoload.php"
5+
colors="true"
6+
cacheDirectory=".phpunit.cache">
7+
<testsuites>
8+
<testsuite name="default">
9+
<directory>tests</directory>
10+
</testsuite>
11+
</testsuites>
12+
<source>
13+
<include>
14+
<directory suffix=".php">src</directory>
15+
</include>
16+
</source>
17+
<coverage>
18+
<report>
19+
<clover outputFile="clover.xml"/>
20+
</report>
21+
</coverage>
1722
</phpunit>

0 commit comments

Comments
 (0)