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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Mindee PHP API Library Changelog

## v3.0.0-alpha1 - 2026-05-11
### ¡Breaking Changes!
*
### Changes
* :sparkles: add support for extraction in crop, split, and classification
### Fixes
*


## v2.9.0 - 2026-05-07
### Changes
* :sparkles: add support for extraction in crop, split, and classification
Expand Down
11 changes: 5 additions & 6 deletions bin/MindeeCLICommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,21 @@

namespace Mindee\CLI;

use Mindee\Client;
use Mindee\Error\MindeeHttpException;
use Mindee\Input\InputSource;
use Mindee\Input\PageOptions;
use Mindee\Input\PathInput;
use Mindee\Input\PredictMethodOptions;
use Mindee\Input\PredictOptions;
use Mindee\Input\URLInputSource;
use Mindee\Parsing\Common\AsyncPredictResponse;
use Mindee\Parsing\Common\PredictResponse;
use Mindee\V1\Client;
use Mindee\V1\ClientOptions\PredictMethodOptions;
use Mindee\V1\ClientOptions\PredictOptions;
use Mindee\V1\Parsing\Common\AsyncPredictResponse;
use Mindee\V1\Parsing\Common\PredictResponse;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

use const Mindee\Input\KEEP_ONLY;
use const Mindee\Input\REMOVE;
use const Mindee\VERSION;
Expand Down
52 changes: 26 additions & 26 deletions bin/MindeeCLIDocuments.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,157 +16,157 @@ public static function getSpecs(): array
return [
"generated" => new DocumentCommandConfig(
"Custom document type from docTI",
\Mindee\Product\Generated\GeneratedV1::class,
\Mindee\V1\Product\Generated\GeneratedV1::class,
false,
true
),
"barcode-reader" => new DocumentCommandConfig(
"Barcode Reader",
\Mindee\Product\BarcodeReader\BarcodeReaderV1::class,
\Mindee\V1\Product\BarcodeReader\BarcodeReaderV1::class,
true,
false
),
"bill-of-lading" => new DocumentCommandConfig(
"Bill of Lading",
\Mindee\Product\BillOfLading\BillOfLadingV1::class,
\Mindee\V1\Product\BillOfLading\BillOfLadingV1::class,
false,
true
),
"business-card" => new DocumentCommandConfig(
"Business Card",
\Mindee\Product\BusinessCard\BusinessCardV1::class,
\Mindee\V1\Product\BusinessCard\BusinessCardV1::class,
false,
true
),
"cropper" => new DocumentCommandConfig(
"Cropper",
\Mindee\Product\Cropper\CropperV1::class,
\Mindee\V1\Product\Cropper\CropperV1::class,
true,
false
),
"delivery-note" => new DocumentCommandConfig(
"Delivery note",
\Mindee\Product\DeliveryNote\DeliveryNoteV1::class,
\Mindee\V1\Product\DeliveryNote\DeliveryNoteV1::class,
false,
true
),
"driver-license" => new DocumentCommandConfig(
"Driver License",
\Mindee\Product\DriverLicense\DriverLicenseV1::class,
\Mindee\V1\Product\DriverLicense\DriverLicenseV1::class,
false,
true
),
"financial-document" => new DocumentCommandConfig(
"Financial Document",
\Mindee\Product\FinancialDocument\FinancialDocumentV1::class,
\Mindee\V1\Product\FinancialDocument\FinancialDocumentV1::class,
true,
true
),
"fr-bank-account-details" => new DocumentCommandConfig(
"FR Bank Account Details",
\Mindee\Product\Fr\BankAccountDetails\BankAccountDetailsV2::class,
\Mindee\V1\Product\Fr\BankAccountDetails\BankAccountDetailsV2::class,
true,
false
),
"fr-carte-grise" => new DocumentCommandConfig(
"FR Carte Grise",
\Mindee\Product\Fr\CarteGrise\CarteGriseV1::class,
\Mindee\V1\Product\Fr\CarteGrise\CarteGriseV1::class,
true,
false
),
"fr-energy-bill" => new DocumentCommandConfig(
"FR Energy Bill",
\Mindee\Product\Fr\EnergyBill\EnergyBillV1::class,
\Mindee\V1\Product\Fr\EnergyBill\EnergyBillV1::class,
false,
true
),
"fr-health-card" => new DocumentCommandConfig(
"FR Health Card",
\Mindee\Product\Fr\HealthCard\HealthCardV1::class,
\Mindee\V1\Product\Fr\HealthCard\HealthCardV1::class,
false,
true
),
"fr-carte-nationale-d-identite" => new DocumentCommandConfig(
"FR Carte Nationale d'Identité",
\Mindee\Product\Fr\IdCard\IdCardV2::class,
\Mindee\V1\Product\Fr\IdCard\IdCardV2::class,
true,
false
),
"fr-payslip" => new DocumentCommandConfig(
"FR Payslip",
\Mindee\Product\Fr\Payslip\PayslipV3::class,
\Mindee\V1\Product\Fr\Payslip\PayslipV3::class,
false,
true
),
"ind-passport-india" => new DocumentCommandConfig(
"IND Passport - India",
\Mindee\Product\Ind\IndianPassport\IndianPassportV1::class,
\Mindee\V1\Product\Ind\IndianPassport\IndianPassportV1::class,
false,
true
),
"international-id" => new DocumentCommandConfig(
"International ID",
\Mindee\Product\InternationalId\InternationalIdV2::class,
\Mindee\V1\Product\InternationalId\InternationalIdV2::class,
false,
true
),
"invoice" => new DocumentCommandConfig(
"Invoice",
\Mindee\Product\Invoice\InvoiceV4::class,
\Mindee\V1\Product\Invoice\InvoiceV4::class,
true,
true
),
"invoice-splitter" => new DocumentCommandConfig(
"Invoice Splitter",
\Mindee\Product\InvoiceSplitter\InvoiceSplitterV1::class,
\Mindee\V1\Product\InvoiceSplitter\InvoiceSplitterV1::class,
false,
true
),
"multi-receipts-detector" => new DocumentCommandConfig(
"Multi Receipts Detector",
\Mindee\Product\MultiReceiptsDetector\MultiReceiptsDetectorV1::class,
\Mindee\V1\Product\MultiReceiptsDetector\MultiReceiptsDetectorV1::class,
true,
false
),
"nutrition-facts-label" => new DocumentCommandConfig(
"Nutrition Facts Label",
\Mindee\Product\NutritionFactsLabel\NutritionFactsLabelV1::class,
\Mindee\V1\Product\NutritionFactsLabel\NutritionFactsLabelV1::class,
false,
true
),
"passport" => new DocumentCommandConfig(
"Passport",
\Mindee\Product\Passport\PassportV1::class,
\Mindee\V1\Product\Passport\PassportV1::class,
true,
false
),
"receipt" => new DocumentCommandConfig(
"Receipt",
\Mindee\Product\Receipt\ReceiptV5::class,
\Mindee\V1\Product\Receipt\ReceiptV5::class,
true,
true
),
"resume" => new DocumentCommandConfig(
"Resume",
\Mindee\Product\Resume\ResumeV1::class,
\Mindee\V1\Product\Resume\ResumeV1::class,
false,
true
),
"us-bank-check" => new DocumentCommandConfig(
"US Bank Check",
\Mindee\Product\Us\BankCheck\BankCheckV1::class,
\Mindee\V1\Product\Us\BankCheck\BankCheckV1::class,
true,
false
),
"us-healthcare-card" => new DocumentCommandConfig(
"US Healthcare Card",
\Mindee\Product\Us\HealthcareCard\HealthcareCardV1::class,
\Mindee\V1\Product\Us\HealthcareCard\HealthcareCardV1::class,
false,
true
),
"us-us-mail" => new DocumentCommandConfig(
"US US Mail",
\Mindee\Product\Us\UsMail\UsMailV3::class,
\Mindee\V1\Product\Us\UsMail\UsMailV3::class,
false,
true
),
Expand Down
4 changes: 2 additions & 2 deletions docs/code_samples/bank_account_details_v1.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Mindee\Client;
use Mindee\Product\Fr\BankAccountDetails\BankAccountDetailsV1;
use Mindee\V1\Client;
use Mindee\V1\Product\Fr\BankAccountDetails\BankAccountDetailsV1;

// Init a new client
$mindeeClient = new Client("my-api-key");
Expand Down
4 changes: 2 additions & 2 deletions docs/code_samples/bank_account_details_v2.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Mindee\Client;
use Mindee\Product\Fr\BankAccountDetails\BankAccountDetailsV2;
use Mindee\V1\Client;
use Mindee\V1\Product\Fr\BankAccountDetails\BankAccountDetailsV2;

// Init a new client
$mindeeClient = new Client("my-api-key");
Expand Down
4 changes: 2 additions & 2 deletions docs/code_samples/bank_check_v1.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Mindee\Client;
use Mindee\Product\Us\BankCheck\BankCheckV1;
use Mindee\V1\Client;
use Mindee\V1\Product\Us\BankCheck\BankCheckV1;

// Init a new client
$mindeeClient = new Client("my-api-key");
Expand Down
4 changes: 2 additions & 2 deletions docs/code_samples/barcode_reader_v1.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Mindee\Client;
use Mindee\Product\BarcodeReader\BarcodeReaderV1;
use Mindee\V1\Client;
use Mindee\V1\Product\BarcodeReader\BarcodeReaderV1;

// Init a new client
$mindeeClient = new Client("my-api-key");
Expand Down
4 changes: 2 additions & 2 deletions docs/code_samples/bill_of_lading_v1_async.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Mindee\Client;
use Mindee\Product\BillOfLading\BillOfLadingV1;
use Mindee\V1\Client;
use Mindee\V1\Product\BillOfLading\BillOfLadingV1;

// Init a new client
$mindeeClient = new Client("my-api-key");
Expand Down
4 changes: 2 additions & 2 deletions docs/code_samples/business_card_v1_async.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Mindee\Client;
use Mindee\Product\BusinessCard\BusinessCardV1;
use Mindee\V1\Client;
use Mindee\V1\Product\BusinessCard\BusinessCardV1;

// Init a new client
$mindeeClient = new Client("my-api-key");
Expand Down
4 changes: 2 additions & 2 deletions docs/code_samples/carte_grise_v1.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Mindee\Client;
use Mindee\Product\Fr\CarteGrise\CarteGriseV1;
use Mindee\V1\Client;
use Mindee\V1\Product\Fr\CarteGrise\CarteGriseV1;

// Init a new client
$mindeeClient = new Client("my-api-key");
Expand Down
4 changes: 2 additions & 2 deletions docs/code_samples/cropper_v1.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Mindee\Client;
use Mindee\Product\Cropper\CropperV1;
use Mindee\V1\Client;
use Mindee\V1\Product\Cropper\CropperV1;

// Init a new client
$mindeeClient = new Client("my-api-key");
Expand Down
6 changes: 3 additions & 3 deletions docs/code_samples/custom_v1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
// Use only with version 1.x of the library.
//

use Mindee\Client;
use Mindee\Product\Custom\CustomV1;
use Mindee\Input\PredictMethodOptions;
use Mindee\V1\Client;
use Mindee\V1\Product\Custom\CustomV1;
use Mindee\V1\ClientOptions\PredictMethodOptions;

// Init a new client
$mindeeClient = new Client("my-api-key");
Expand Down
6 changes: 3 additions & 3 deletions docs/code_samples/default.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Mindee\Client;
use Mindee\Product\Generated\GeneratedV1;
use Mindee\Input\PredictMethodOptions;
use Mindee\V1\Client;
use Mindee\V1\Product\Generated\GeneratedV1;
use Mindee\V1\ClientOptions\PredictMethodOptions;

// Init a new client
$mindeeClient = new Client("my-api-key");
Expand Down
6 changes: 3 additions & 3 deletions docs/code_samples/default_async.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Mindee\Client;
use Mindee\Product\Generated\GeneratedV1;
use Mindee\Input\PredictMethodOptions;
use Mindee\V1\Client;
use Mindee\V1\Product\Generated\GeneratedV1;
use Mindee\V1\ClientOptions\PredictMethodOptions;

// Init a new client
$mindeeClient = new Client("my-api-key");
Expand Down
4 changes: 2 additions & 2 deletions docs/code_samples/delivery_notes_v1_async.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Mindee\Client;
use Mindee\Product\DeliveryNote\DeliveryNoteV1;
use Mindee\V1\Client;
use Mindee\V1\Product\DeliveryNote\DeliveryNoteV1;

// Init a new client
$mindeeClient = new Client("my-api-key");
Expand Down
4 changes: 2 additions & 2 deletions docs/code_samples/driver_license_v1_async.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Mindee\Client;
use Mindee\Product\DriverLicense\DriverLicenseV1;
use Mindee\V1\Client;
use Mindee\V1\Product\DriverLicense\DriverLicenseV1;

// Init a new client
$mindeeClient = new Client("my-api-key");
Expand Down
4 changes: 2 additions & 2 deletions docs/code_samples/energy_bill_fra_v1_async.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Mindee\Client;
use Mindee\Product\Fr\EnergyBill\EnergyBillV1;
use Mindee\V1\Client;
use Mindee\V1\Product\Fr\EnergyBill\EnergyBillV1;

// Init a new client
$mindeeClient = new Client("my-api-key");
Expand Down
4 changes: 2 additions & 2 deletions docs/code_samples/expense_receipts_v5.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Mindee\Client;
use Mindee\Product\Receipt\ReceiptV5;
use Mindee\V1\Client;
use Mindee\V1\Product\Receipt\ReceiptV5;

// Init a new client
$mindeeClient = new Client("my-api-key");
Expand Down
4 changes: 2 additions & 2 deletions docs/code_samples/expense_receipts_v5_async.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Mindee\Client;
use Mindee\Product\Receipt\ReceiptV5;
use Mindee\V1\Client;
use Mindee\V1\Product\Receipt\ReceiptV5;

// Init a new client
$mindeeClient = new Client("my-api-key");
Expand Down
Loading
Loading