Skip to content

Commit 740a819

Browse files
♻️ move all V1 and V2 logic to their own namespaces (#184)
♻️ move all V1 and V2 logic to their own namespaces (#184)
1 parent 1719007 commit 740a819

351 files changed

Lines changed: 1799 additions & 1870 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.

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Mindee PHP API Library Changelog
22

3+
## v3.0.0-alpha1 - 2026-05-11
4+
### ¡Breaking Changes!
5+
*
6+
### Changes
7+
* :sparkles: add support for extraction in crop, split, and classification
8+
### Fixes
9+
*
10+
11+
312
## v2.9.0 - 2026-05-07
413
### Changes
514
* :sparkles: add support for extraction in crop, split, and classification

bin/MindeeCLICommand.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,21 @@
22

33
namespace Mindee\CLI;
44

5-
use Mindee\Client;
65
use Mindee\Error\MindeeHttpException;
76
use Mindee\Input\InputSource;
87
use Mindee\Input\PageOptions;
98
use Mindee\Input\PathInput;
10-
use Mindee\Input\PredictMethodOptions;
11-
use Mindee\Input\PredictOptions;
129
use Mindee\Input\URLInputSource;
13-
use Mindee\Parsing\Common\AsyncPredictResponse;
14-
use Mindee\Parsing\Common\PredictResponse;
10+
use Mindee\V1\Client;
11+
use Mindee\V1\ClientOptions\PredictMethodOptions;
12+
use Mindee\V1\ClientOptions\PredictOptions;
13+
use Mindee\V1\Parsing\Common\AsyncPredictResponse;
14+
use Mindee\V1\Parsing\Common\PredictResponse;
1515
use Symfony\Component\Console\Command\Command;
1616
use Symfony\Component\Console\Input\InputArgument;
1717
use Symfony\Component\Console\Input\InputInterface;
1818
use Symfony\Component\Console\Input\InputOption;
1919
use Symfony\Component\Console\Output\OutputInterface;
20-
2120
use const Mindee\Input\KEEP_ONLY;
2221
use const Mindee\Input\REMOVE;
2322
use const Mindee\VERSION;

bin/MindeeCLIDocuments.php

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -16,157 +16,157 @@ public static function getSpecs(): array
1616
return [
1717
"generated" => new DocumentCommandConfig(
1818
"Custom document type from docTI",
19-
\Mindee\Product\Generated\GeneratedV1::class,
19+
\Mindee\V1\Product\Generated\GeneratedV1::class,
2020
false,
2121
true
2222
),
2323
"barcode-reader" => new DocumentCommandConfig(
2424
"Barcode Reader",
25-
\Mindee\Product\BarcodeReader\BarcodeReaderV1::class,
25+
\Mindee\V1\Product\BarcodeReader\BarcodeReaderV1::class,
2626
true,
2727
false
2828
),
2929
"bill-of-lading" => new DocumentCommandConfig(
3030
"Bill of Lading",
31-
\Mindee\Product\BillOfLading\BillOfLadingV1::class,
31+
\Mindee\V1\Product\BillOfLading\BillOfLadingV1::class,
3232
false,
3333
true
3434
),
3535
"business-card" => new DocumentCommandConfig(
3636
"Business Card",
37-
\Mindee\Product\BusinessCard\BusinessCardV1::class,
37+
\Mindee\V1\Product\BusinessCard\BusinessCardV1::class,
3838
false,
3939
true
4040
),
4141
"cropper" => new DocumentCommandConfig(
4242
"Cropper",
43-
\Mindee\Product\Cropper\CropperV1::class,
43+
\Mindee\V1\Product\Cropper\CropperV1::class,
4444
true,
4545
false
4646
),
4747
"delivery-note" => new DocumentCommandConfig(
4848
"Delivery note",
49-
\Mindee\Product\DeliveryNote\DeliveryNoteV1::class,
49+
\Mindee\V1\Product\DeliveryNote\DeliveryNoteV1::class,
5050
false,
5151
true
5252
),
5353
"driver-license" => new DocumentCommandConfig(
5454
"Driver License",
55-
\Mindee\Product\DriverLicense\DriverLicenseV1::class,
55+
\Mindee\V1\Product\DriverLicense\DriverLicenseV1::class,
5656
false,
5757
true
5858
),
5959
"financial-document" => new DocumentCommandConfig(
6060
"Financial Document",
61-
\Mindee\Product\FinancialDocument\FinancialDocumentV1::class,
61+
\Mindee\V1\Product\FinancialDocument\FinancialDocumentV1::class,
6262
true,
6363
true
6464
),
6565
"fr-bank-account-details" => new DocumentCommandConfig(
6666
"FR Bank Account Details",
67-
\Mindee\Product\Fr\BankAccountDetails\BankAccountDetailsV2::class,
67+
\Mindee\V1\Product\Fr\BankAccountDetails\BankAccountDetailsV2::class,
6868
true,
6969
false
7070
),
7171
"fr-carte-grise" => new DocumentCommandConfig(
7272
"FR Carte Grise",
73-
\Mindee\Product\Fr\CarteGrise\CarteGriseV1::class,
73+
\Mindee\V1\Product\Fr\CarteGrise\CarteGriseV1::class,
7474
true,
7575
false
7676
),
7777
"fr-energy-bill" => new DocumentCommandConfig(
7878
"FR Energy Bill",
79-
\Mindee\Product\Fr\EnergyBill\EnergyBillV1::class,
79+
\Mindee\V1\Product\Fr\EnergyBill\EnergyBillV1::class,
8080
false,
8181
true
8282
),
8383
"fr-health-card" => new DocumentCommandConfig(
8484
"FR Health Card",
85-
\Mindee\Product\Fr\HealthCard\HealthCardV1::class,
85+
\Mindee\V1\Product\Fr\HealthCard\HealthCardV1::class,
8686
false,
8787
true
8888
),
8989
"fr-carte-nationale-d-identite" => new DocumentCommandConfig(
9090
"FR Carte Nationale d'Identité",
91-
\Mindee\Product\Fr\IdCard\IdCardV2::class,
91+
\Mindee\V1\Product\Fr\IdCard\IdCardV2::class,
9292
true,
9393
false
9494
),
9595
"fr-payslip" => new DocumentCommandConfig(
9696
"FR Payslip",
97-
\Mindee\Product\Fr\Payslip\PayslipV3::class,
97+
\Mindee\V1\Product\Fr\Payslip\PayslipV3::class,
9898
false,
9999
true
100100
),
101101
"ind-passport-india" => new DocumentCommandConfig(
102102
"IND Passport - India",
103-
\Mindee\Product\Ind\IndianPassport\IndianPassportV1::class,
103+
\Mindee\V1\Product\Ind\IndianPassport\IndianPassportV1::class,
104104
false,
105105
true
106106
),
107107
"international-id" => new DocumentCommandConfig(
108108
"International ID",
109-
\Mindee\Product\InternationalId\InternationalIdV2::class,
109+
\Mindee\V1\Product\InternationalId\InternationalIdV2::class,
110110
false,
111111
true
112112
),
113113
"invoice" => new DocumentCommandConfig(
114114
"Invoice",
115-
\Mindee\Product\Invoice\InvoiceV4::class,
115+
\Mindee\V1\Product\Invoice\InvoiceV4::class,
116116
true,
117117
true
118118
),
119119
"invoice-splitter" => new DocumentCommandConfig(
120120
"Invoice Splitter",
121-
\Mindee\Product\InvoiceSplitter\InvoiceSplitterV1::class,
121+
\Mindee\V1\Product\InvoiceSplitter\InvoiceSplitterV1::class,
122122
false,
123123
true
124124
),
125125
"multi-receipts-detector" => new DocumentCommandConfig(
126126
"Multi Receipts Detector",
127-
\Mindee\Product\MultiReceiptsDetector\MultiReceiptsDetectorV1::class,
127+
\Mindee\V1\Product\MultiReceiptsDetector\MultiReceiptsDetectorV1::class,
128128
true,
129129
false
130130
),
131131
"nutrition-facts-label" => new DocumentCommandConfig(
132132
"Nutrition Facts Label",
133-
\Mindee\Product\NutritionFactsLabel\NutritionFactsLabelV1::class,
133+
\Mindee\V1\Product\NutritionFactsLabel\NutritionFactsLabelV1::class,
134134
false,
135135
true
136136
),
137137
"passport" => new DocumentCommandConfig(
138138
"Passport",
139-
\Mindee\Product\Passport\PassportV1::class,
139+
\Mindee\V1\Product\Passport\PassportV1::class,
140140
true,
141141
false
142142
),
143143
"receipt" => new DocumentCommandConfig(
144144
"Receipt",
145-
\Mindee\Product\Receipt\ReceiptV5::class,
145+
\Mindee\V1\Product\Receipt\ReceiptV5::class,
146146
true,
147147
true
148148
),
149149
"resume" => new DocumentCommandConfig(
150150
"Resume",
151-
\Mindee\Product\Resume\ResumeV1::class,
151+
\Mindee\V1\Product\Resume\ResumeV1::class,
152152
false,
153153
true
154154
),
155155
"us-bank-check" => new DocumentCommandConfig(
156156
"US Bank Check",
157-
\Mindee\Product\Us\BankCheck\BankCheckV1::class,
157+
\Mindee\V1\Product\Us\BankCheck\BankCheckV1::class,
158158
true,
159159
false
160160
),
161161
"us-healthcare-card" => new DocumentCommandConfig(
162162
"US Healthcare Card",
163-
\Mindee\Product\Us\HealthcareCard\HealthcareCardV1::class,
163+
\Mindee\V1\Product\Us\HealthcareCard\HealthcareCardV1::class,
164164
false,
165165
true
166166
),
167167
"us-us-mail" => new DocumentCommandConfig(
168168
"US US Mail",
169-
\Mindee\Product\Us\UsMail\UsMailV3::class,
169+
\Mindee\V1\Product\Us\UsMail\UsMailV3::class,
170170
false,
171171
true
172172
),

docs/code_samples/bank_account_details_v1.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

3-
use Mindee\Client;
4-
use Mindee\Product\Fr\BankAccountDetails\BankAccountDetailsV1;
3+
use Mindee\V1\Client;
4+
use Mindee\V1\Product\Fr\BankAccountDetails\BankAccountDetailsV1;
55

66
// Init a new client
77
$mindeeClient = new Client("my-api-key");

docs/code_samples/bank_account_details_v2.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

3-
use Mindee\Client;
4-
use Mindee\Product\Fr\BankAccountDetails\BankAccountDetailsV2;
3+
use Mindee\V1\Client;
4+
use Mindee\V1\Product\Fr\BankAccountDetails\BankAccountDetailsV2;
55

66
// Init a new client
77
$mindeeClient = new Client("my-api-key");

docs/code_samples/bank_check_v1.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

3-
use Mindee\Client;
4-
use Mindee\Product\Us\BankCheck\BankCheckV1;
3+
use Mindee\V1\Client;
4+
use Mindee\V1\Product\Us\BankCheck\BankCheckV1;
55

66
// Init a new client
77
$mindeeClient = new Client("my-api-key");

docs/code_samples/barcode_reader_v1.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

3-
use Mindee\Client;
4-
use Mindee\Product\BarcodeReader\BarcodeReaderV1;
3+
use Mindee\V1\Client;
4+
use Mindee\V1\Product\BarcodeReader\BarcodeReaderV1;
55

66
// Init a new client
77
$mindeeClient = new Client("my-api-key");

docs/code_samples/bill_of_lading_v1_async.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

3-
use Mindee\Client;
4-
use Mindee\Product\BillOfLading\BillOfLadingV1;
3+
use Mindee\V1\Client;
4+
use Mindee\V1\Product\BillOfLading\BillOfLadingV1;
55

66
// Init a new client
77
$mindeeClient = new Client("my-api-key");

docs/code_samples/business_card_v1_async.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

3-
use Mindee\Client;
4-
use Mindee\Product\BusinessCard\BusinessCardV1;
3+
use Mindee\V1\Client;
4+
use Mindee\V1\Product\BusinessCard\BusinessCardV1;
55

66
// Init a new client
77
$mindeeClient = new Client("my-api-key");

docs/code_samples/carte_grise_v1.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

3-
use Mindee\Client;
4-
use Mindee\Product\Fr\CarteGrise\CarteGriseV1;
3+
use Mindee\V1\Client;
4+
use Mindee\V1\Product\Fr\CarteGrise\CarteGriseV1;
55

66
// Init a new client
77
$mindeeClient = new Client("my-api-key");

0 commit comments

Comments
 (0)