diff --git a/README.md b/README.md index 4e6dca0..a82dca4 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Convert API lets you effortlessly convert file formats and types. [Cloudmersive Document and Data Conversion API](https://www.cloudmersive.com/convert-api) provides advanced document conversion, editing and generation capabilities. - API version: v1 -- Package version: 3.1.1 +- Package version: 3.2.0 ## Requirements @@ -70,9 +70,10 @@ $apiInstance = new Swagger\Client\Api\CompareDocumentApi( ); $input_file1 = "/path/to/file.txt"; // \SplFileObject | First input file to perform the operation on. $input_file2 = "/path/to/file.txt"; // \SplFileObject | Second input file to perform the operation on (more than 2 can be supplied). +$autorepair = true; // bool | Optional; automatically repair input documents that have errors (default is true) try { - $result = $apiInstance->compareDocumentDocx($input_file1, $input_file2); + $result = $apiInstance->compareDocumentDocx($input_file1, $input_file2, $autorepair); print_r($result); } catch (Exception $e) { echo 'Exception when calling CompareDocumentApi->compareDocumentDocx: ', $e->getMessage(), PHP_EOL; @@ -109,6 +110,7 @@ Class | Method | HTTP request | Description *ConvertDocumentApi* | [**convertDocumentAutodetectGetInfo**](docs/Api/ConvertDocumentApi.md#convertdocumentautodetectgetinfo) | **POST** /convert/autodetect/get-info | Get document type information *ConvertDocumentApi* | [**convertDocumentAutodetectToJpg**](docs/Api/ConvertDocumentApi.md#convertdocumentautodetecttojpg) | **POST** /convert/autodetect/to/jpg | Convert Document to JPG/JPEG image array *ConvertDocumentApi* | [**convertDocumentAutodetectToPdf**](docs/Api/ConvertDocumentApi.md#convertdocumentautodetecttopdf) | **POST** /convert/autodetect/to/pdf | Convert Document to PDF +*ConvertDocumentApi* | [**convertDocumentAutodetectToPdfBatchJob**](docs/Api/ConvertDocumentApi.md#convertdocumentautodetecttopdfbatchjob) | **POST** /convert/autodetect/to/pdf/batch-job | Convert Document to PDF as Batch Job *ConvertDocumentApi* | [**convertDocumentAutodetectToPngArray**](docs/Api/ConvertDocumentApi.md#convertdocumentautodetecttopngarray) | **POST** /convert/autodetect/to/png | Convert Document to PNG array *ConvertDocumentApi* | [**convertDocumentAutodetectToThumbnail**](docs/Api/ConvertDocumentApi.md#convertdocumentautodetecttothumbnail) | **POST** /convert/autodetect/to/thumbnail | Convert File to Thumbnail Image *ConvertDocumentApi* | [**convertDocumentAutodetectToThumbnailsAdvanced**](docs/Api/ConvertDocumentApi.md#convertdocumentautodetecttothumbnailsadvanced) | **POST** /convert/autodetect/to/thumbnail/advanced | Convert File to Thumbnail Image Object @@ -131,6 +133,7 @@ Class | Method | HTTP request | Description *ConvertDocumentApi* | [**convertDocumentEmlToJpg**](docs/Api/ConvertDocumentApi.md#convertdocumentemltojpg) | **POST** /convert/eml/to/jpg | Convert Email EML file to JPG/JPEG image array *ConvertDocumentApi* | [**convertDocumentEmlToPdf**](docs/Api/ConvertDocumentApi.md#convertdocumentemltopdf) | **POST** /convert/eml/to/pdf | Convert Email EML file to PDF document *ConvertDocumentApi* | [**convertDocumentEmlToPng**](docs/Api/ConvertDocumentApi.md#convertdocumentemltopng) | **POST** /convert/eml/to/png | Convert Email EML file to PNG image array +*ConvertDocumentApi* | [**convertDocumentGetAsyncJobStatus**](docs/Api/ConvertDocumentApi.md#convertdocumentgetasyncjobstatus) | **GET** /convert/batch-job/status | Get the status and result of a Convert Document Batch Job *ConvertDocumentApi* | [**convertDocumentGetFileTypeIcon**](docs/Api/ConvertDocumentApi.md#convertdocumentgetfiletypeicon) | **POST** /convert/autodetect/get-icon | Get PNG icon file for the file extension *ConvertDocumentApi* | [**convertDocumentGetFileTypeIconAdvanced**](docs/Api/ConvertDocumentApi.md#convertdocumentgetfiletypeiconadvanced) | **POST** /convert/autodetect/get-icon/advanced | Get PNG icon byte array for the file extension *ConvertDocumentApi* | [**convertDocumentHtmlToPdf**](docs/Api/ConvertDocumentApi.md#convertdocumenthtmltopdf) | **POST** /convert/html/to/pdf | Convert HTML document file to PDF Document @@ -163,6 +166,7 @@ Class | Method | HTTP request | Description *ConvertDocumentApi* | [**convertDocumentPdfToPngArrayDirect**](docs/Api/ConvertDocumentApi.md#convertdocumentpdftopngarraydirect) | **POST** /convert/pdf/to/png/direct | Convert PDF to PNG Image Array (Direct) *ConvertDocumentApi* | [**convertDocumentPdfToPngSingle**](docs/Api/ConvertDocumentApi.md#convertdocumentpdftopngsingle) | **POST** /convert/pdf/to/png/merge-single | Convert PDF to Single PNG image *ConvertDocumentApi* | [**convertDocumentPdfToPptx**](docs/Api/ConvertDocumentApi.md#convertdocumentpdftopptx) | **POST** /convert/pdf/to/pptx | Convert PDF to PowerPoint PPTX Presentation +*ConvertDocumentApi* | [**convertDocumentPdfToTiff**](docs/Api/ConvertDocumentApi.md#convertdocumentpdftotiff) | **POST** /convert/pdf/to/tiff | Convert PDF to TIFF image *ConvertDocumentApi* | [**convertDocumentPdfToTxt**](docs/Api/ConvertDocumentApi.md#convertdocumentpdftotxt) | **POST** /convert/pdf/to/txt | Convert PDF Document to Text (txt) *ConvertDocumentApi* | [**convertDocumentPngArrayToPdf**](docs/Api/ConvertDocumentApi.md#convertdocumentpngarraytopdf) | **POST** /convert/png/to/pdf | Convert PNG Array to PDF *ConvertDocumentApi* | [**convertDocumentPngArrayToPdfFlattenTransparency**](docs/Api/ConvertDocumentApi.md#convertdocumentpngarraytopdfflattentransparency) | **POST** /convert/png/to/pdf/remove-transparency | Convert PNG Array to PDF and remove transparency @@ -247,7 +251,9 @@ Class | Method | HTTP request | Description *EditDocumentApi* | [**editDocumentDocxUpdateTableRow**](docs/Api/EditDocumentApi.md#editdocumentdocxupdatetablerow) | **POST** /convert/edit/docx/update-table-row | Update, set contents of a table row in an existing table in a Word DOCX document *EditDocumentApi* | [**editDocumentFinishEditing**](docs/Api/EditDocumentApi.md#editdocumentfinishediting) | **POST** /convert/edit/finish-editing | Finish editing document, and download result from document editing *EditDocumentApi* | [**editDocumentPptxDeleteSlides**](docs/Api/EditDocumentApi.md#editdocumentpptxdeleteslides) | **POST** /convert/edit/pptx/delete-slides | Delete, remove slides from a PowerPoint PPTX presentation document +*EditDocumentApi* | [**editDocumentPptxEditSizeAndOrientation**](docs/Api/EditDocumentApi.md#editdocumentpptxeditsizeandorientation) | **POST** /convert/edit/pptx/set-size-and-orientation | Set the size and/or orientation of a PowerPoint PPTX presentation document *EditDocumentApi* | [**editDocumentPptxGetMacroInformation**](docs/Api/EditDocumentApi.md#editdocumentpptxgetmacroinformation) | **POST** /convert/edit/pptx/get-macros | Get macro information from a PowerPoint PPTX/PPTM presentation document +*EditDocumentApi* | [**editDocumentPptxGetSizeAndOrientation**](docs/Api/EditDocumentApi.md#editdocumentpptxgetsizeandorientation) | **POST** /convert/edit/pptx/get-size-and-orientation | Get the page layout information, including size and orientation of a PowerPoint PPTX presentation document *EditDocumentApi* | [**editDocumentPptxReplace**](docs/Api/EditDocumentApi.md#editdocumentpptxreplace) | **POST** /convert/edit/pptx/replace-all | Replace string in PowerPoint PPTX presentation *EditDocumentApi* | [**editDocumentXlsxAppendRow**](docs/Api/EditDocumentApi.md#editdocumentxlsxappendrow) | **POST** /convert/edit/xlsx/append-row | Append row to a Excel XLSX spreadsheet, worksheet *EditDocumentApi* | [**editDocumentXlsxClearCellByIndex**](docs/Api/EditDocumentApi.md#editdocumentxlsxclearcellbyindex) | **POST** /convert/edit/xlsx/clear-cell/by-index | Clear cell contents in an Excel XLSX spreadsheet, worksheet by index @@ -287,14 +293,18 @@ Class | Method | HTTP request | Description *EditPdfApi* | [**editPdfConvertToPdfA**](docs/Api/EditPdfApi.md#editpdfconverttopdfa) | **POST** /convert/edit/pdf/optimize/pdf-a | Convert a PDF file to PDF/A *EditPdfApi* | [**editPdfDecrypt**](docs/Api/EditPdfApi.md#editpdfdecrypt) | **POST** /convert/edit/pdf/decrypt | Decrypt and password-protect a PDF *EditPdfApi* | [**editPdfDeletePages**](docs/Api/EditPdfApi.md#editpdfdeletepages) | **POST** /convert/edit/pdf/pages/delete | Remove, delete pages from a PDF document +*EditPdfApi* | [**editPdfDeletePagesBatchJob**](docs/Api/EditPdfApi.md#editpdfdeletepagesbatchjob) | **POST** /convert/edit/pdf/pages/delete/batch-job | Remove, delete pages from a PDF document as Batch Job *EditPdfApi* | [**editPdfEncrypt**](docs/Api/EditPdfApi.md#editpdfencrypt) | **POST** /convert/edit/pdf/encrypt | Encrypt and password-protect a PDF *EditPdfApi* | [**editPdfGetAnnotations**](docs/Api/EditPdfApi.md#editpdfgetannotations) | **POST** /convert/edit/pdf/annotations/list | Get PDF annotations, including comments in the document +*EditPdfApi* | [**editPdfGetAsyncJobStatus**](docs/Api/EditPdfApi.md#editpdfgetasyncjobstatus) | **GET** /convert/edit/pdf/batch-job/status | Get the status and result of a PDF Batch Job *EditPdfApi* | [**editPdfGetFormFields**](docs/Api/EditPdfApi.md#editpdfgetformfields) | **POST** /convert/edit/pdf/form/get-fields | Gets PDF Form fields and values *EditPdfApi* | [**editPdfGetMetadata**](docs/Api/EditPdfApi.md#editpdfgetmetadata) | **POST** /convert/edit/pdf/get-metadata | Get PDF document metadata *EditPdfApi* | [**editPdfGetPdfTextByPages**](docs/Api/EditPdfApi.md#editpdfgetpdftextbypages) | **POST** /convert/edit/pdf/pages/get-text | Get text in a PDF document by page *EditPdfApi* | [**editPdfInsertPages**](docs/Api/EditPdfApi.md#editpdfinsertpages) | **POST** /convert/edit/pdf/pages/insert | Insert, copy pages from one PDF document into another +*EditPdfApi* | [**editPdfInsertPagesBatchJob**](docs/Api/EditPdfApi.md#editpdfinsertpagesbatchjob) | **POST** /convert/edit/pdf/pages/insert/batch-job | Insert, copy pages from one PDF document into another as a batch job *EditPdfApi* | [**editPdfLinearize**](docs/Api/EditPdfApi.md#editpdflinearize) | **POST** /convert/edit/pdf/optimize/linearize | Linearize and optimize a PDF for streaming download *EditPdfApi* | [**editPdfRasterize**](docs/Api/EditPdfApi.md#editpdfrasterize) | **POST** /convert/edit/pdf/rasterize | Rasterize a PDF to an image-based PDF +*EditPdfApi* | [**editPdfRasterizeBatchJob**](docs/Api/EditPdfApi.md#editpdfrasterizebatchjob) | **POST** /convert/edit/pdf/rasterize/batch-job | Rasterize a PDF to an image-based PDF as Batch Job *EditPdfApi* | [**editPdfReduceFileSize**](docs/Api/EditPdfApi.md#editpdfreducefilesize) | **POST** /convert/edit/pdf/optimize/reduce-file-size | Reduce the file size and optimize a PDF *EditPdfApi* | [**editPdfRemoveAllAnnotations**](docs/Api/EditPdfApi.md#editpdfremoveallannotations) | **POST** /convert/edit/pdf/annotations/remove-all | Remove all PDF annotations, including comments in the document *EditPdfApi* | [**editPdfRemoveAnnotationItem**](docs/Api/EditPdfApi.md#editpdfremoveannotationitem) | **POST** /convert/edit/pdf/annotations/remove-item | Remove a specific PDF annotation, comment in the document @@ -318,9 +328,11 @@ Class | Method | HTTP request | Description *EditTextApi* | [**editTextReplaceSimple**](docs/Api/EditTextApi.md#edittextreplacesimple) | **POST** /convert/edit/text/replace/string | Replace a string in text with another string value *EditTextApi* | [**editTextTextEncodingDetect**](docs/Api/EditTextApi.md#edittexttextencodingdetect) | **POST** /convert/edit/text/encoding/detect | Detect text encoding of file *EditTextApi* | [**editTextTrimWhitespace**](docs/Api/EditTextApi.md#edittexttrimwhitespace) | **POST** /convert/edit/text/remove/whitespace/trim | Trim leading and trailing whitespace from text string +*MergeDocumentApi* | [**mergeDocumentBatchJobCreate**](docs/Api/MergeDocumentApi.md#mergedocumentbatchjobcreate) | **POST** /convert/merge/batch-job/create | Merge an array of Documents into a Single Document by Page as a Batch Job *MergeDocumentApi* | [**mergeDocumentDocx**](docs/Api/MergeDocumentApi.md#mergedocumentdocx) | **POST** /convert/merge/docx | Merge Two Word DOCX Together *MergeDocumentApi* | [**mergeDocumentDocxMulti**](docs/Api/MergeDocumentApi.md#mergedocumentdocxmulti) | **POST** /convert/merge/docx/multi | Merge Multple Word DOCX Together *MergeDocumentApi* | [**mergeDocumentDocxMultiArray**](docs/Api/MergeDocumentApi.md#mergedocumentdocxmultiarray) | **POST** /convert/merge/docx/multi/array | Merge Multple Word DOCX Together from an array +*MergeDocumentApi* | [**mergeDocumentGetAsyncJobStatus**](docs/Api/MergeDocumentApi.md#mergedocumentgetasyncjobstatus) | **GET** /convert/merge/batch-job/status | Get the status and result of a Merge Document Batch Job *MergeDocumentApi* | [**mergeDocumentHtml**](docs/Api/MergeDocumentApi.md#mergedocumenthtml) | **POST** /convert/merge/html | Merge Two HTML (HTM) Files Together *MergeDocumentApi* | [**mergeDocumentHtmlMulti**](docs/Api/MergeDocumentApi.md#mergedocumenthtmlmulti) | **POST** /convert/merge/html/multi | Merge Multple HTML (HTM) Files Together *MergeDocumentApi* | [**mergeDocumentHtmlMultiArray**](docs/Api/MergeDocumentApi.md#mergedocumenthtmlmultiarray) | **POST** /convert/merge/html/multi/array | Merge Multple HTML (HTM) Files Together from an array @@ -340,7 +352,7 @@ Class | Method | HTTP request | Description *MergeDocumentApi* | [**mergeDocumentXlsxMultiArray**](docs/Api/MergeDocumentApi.md#mergedocumentxlsxmultiarray) | **POST** /convert/merge/xlsx/multi/array | Merge Multple Excel XLSX Together from an Array *SplitDocumentApi* | [**splitDocumentBatchJobCreate**](docs/Api/SplitDocumentApi.md#splitdocumentbatchjobcreate) | **POST** /convert/split/batch-job/create | Split a single Document into Separate Documents by Page as a Batch Job *SplitDocumentApi* | [**splitDocumentDocx**](docs/Api/SplitDocumentApi.md#splitdocumentdocx) | **POST** /convert/split/docx | Split a single Word Document DOCX into Separate Documents by Page -*SplitDocumentApi* | [**splitDocumentGetAsyncJobStatus**](docs/Api/SplitDocumentApi.md#splitdocumentgetasyncjobstatus) | **GET** /convert/split/batch-job/status | Get the status and result of a Batch Job +*SplitDocumentApi* | [**splitDocumentGetAsyncJobStatus**](docs/Api/SplitDocumentApi.md#splitdocumentgetasyncjobstatus) | **GET** /convert/split/batch-job/status | Get the status and result of a Split Document Batch Job *SplitDocumentApi* | [**splitDocumentPdfByPage**](docs/Api/SplitDocumentApi.md#splitdocumentpdfbypage) | **POST** /convert/split/pdf | Split a PDF file into separate PDF files, one per page *SplitDocumentApi* | [**splitDocumentPptx**](docs/Api/SplitDocumentApi.md#splitdocumentpptx) | **POST** /convert/split/pptx | Split a single PowerPoint Presentation PPTX into Separate Slides *SplitDocumentApi* | [**splitDocumentPptxAdvanced**](docs/Api/SplitDocumentApi.md#splitdocumentpptxadvanced) | **POST** /convert/split/pptx/advanced | Split a single PowerPoint Presentation PPTX into Separate Presentations @@ -356,6 +368,7 @@ Class | Method | HTTP request | Description *ValidateDocumentApi* | [**validateDocumentAutodetectValidation**](docs/Api/ValidateDocumentApi.md#validatedocumentautodetectvalidation) | **POST** /convert/validate/autodetect | Autodetect content type and validate *ValidateDocumentApi* | [**validateDocumentCsvValidation**](docs/Api/ValidateDocumentApi.md#validatedocumentcsvvalidation) | **POST** /convert/validate/csv | Validate a CSV file document (CSV) *ValidateDocumentApi* | [**validateDocumentDocValidation**](docs/Api/ValidateDocumentApi.md#validatedocumentdocvalidation) | **POST** /convert/validate/doc | Validate a Word 97-2003 Legacy document (DOC) +*ValidateDocumentApi* | [**validateDocumentDocxRepair**](docs/Api/ValidateDocumentApi.md#validatedocumentdocxrepair) | **POST** /convert/validate/docx/repair | Repair a Word document (DOCX) that contains errors *ValidateDocumentApi* | [**validateDocumentDocxValidation**](docs/Api/ValidateDocumentApi.md#validatedocumentdocxvalidation) | **POST** /convert/validate/docx | Validate a Word document (DOCX) *ValidateDocumentApi* | [**validateDocumentEmlValidation**](docs/Api/ValidateDocumentApi.md#validatedocumentemlvalidation) | **POST** /convert/validate/eml | Validate if input file is a valid EML file *ValidateDocumentApi* | [**validateDocumentExecutableValidation**](docs/Api/ValidateDocumentApi.md#validatedocumentexecutablevalidation) | **POST** /convert/validate/executable | Validate if a file is executable @@ -369,12 +382,14 @@ Class | Method | HTTP request | Description *ValidateDocumentApi* | [**validateDocumentPdfValidation**](docs/Api/ValidateDocumentApi.md#validatedocumentpdfvalidation) | **POST** /convert/validate/pdf | Validate a PDF document file *ValidateDocumentApi* | [**validateDocumentPngValidation**](docs/Api/ValidateDocumentApi.md#validatedocumentpngvalidation) | **POST** /convert/validate/png | Validate a PNG File *ValidateDocumentApi* | [**validateDocumentPptValidation**](docs/Api/ValidateDocumentApi.md#validatedocumentpptvalidation) | **POST** /convert/validate/ppt | Validate a PowerPoint 97-2003 Legacy presentation (PPT) +*ValidateDocumentApi* | [**validateDocumentPptxRepair**](docs/Api/ValidateDocumentApi.md#validatedocumentpptxrepair) | **POST** /convert/validate/pptx/repair | Repair a PowerPoint presentation (PPTX) that contains errors *ValidateDocumentApi* | [**validateDocumentPptxValidation**](docs/Api/ValidateDocumentApi.md#validatedocumentpptxvalidation) | **POST** /convert/validate/pptx | Validate a PowerPoint presentation (PPTX) *ValidateDocumentApi* | [**validateDocumentRarValidation**](docs/Api/ValidateDocumentApi.md#validatedocumentrarvalidation) | **POST** /convert/validate/rar | Validate a RAR Archive file (RAR) *ValidateDocumentApi* | [**validateDocumentRtfValidation**](docs/Api/ValidateDocumentApi.md#validatedocumentrtfvalidation) | **POST** /convert/validate/rtf | Validate a Rich Text Format document (RTF) *ValidateDocumentApi* | [**validateDocumentTarValidation**](docs/Api/ValidateDocumentApi.md#validatedocumenttarvalidation) | **POST** /convert/validate/tar | Validate a TAR Tarball Archive file (TAR) *ValidateDocumentApi* | [**validateDocumentTxtValidation**](docs/Api/ValidateDocumentApi.md#validatedocumenttxtvalidation) | **POST** /convert/validate/txt | Validate an TXT file *ValidateDocumentApi* | [**validateDocumentXlsValidation**](docs/Api/ValidateDocumentApi.md#validatedocumentxlsvalidation) | **POST** /convert/validate/xls | Validate a Excel 97-2003 Legacy spreadsheet (XLS) +*ValidateDocumentApi* | [**validateDocumentXlsxRepair**](docs/Api/ValidateDocumentApi.md#validatedocumentxlsxrepair) | **POST** /convert/validate/xlsx/repair | Repair an Excel spreadsheet (XLSX) that contains errors *ValidateDocumentApi* | [**validateDocumentXlsxValidation**](docs/Api/ValidateDocumentApi.md#validatedocumentxlsxvalidation) | **POST** /convert/validate/xlsx | Validate a Excel document (XLSX) *ValidateDocumentApi* | [**validateDocumentXmlValidation**](docs/Api/ValidateDocumentApi.md#validatedocumentxmlvalidation) | **POST** /convert/validate/xml | Validate an XML file *ValidateDocumentApi* | [**validateDocumentXmlXxeThreatValidation**](docs/Api/ValidateDocumentApi.md#validatedocumentxmlxxethreatvalidation) | **POST** /convert/validate/xml/xxe-threats | Validate an XML file for XML External Entity (XXE) threats @@ -411,6 +426,8 @@ Class | Method | HTTP request | Description - [ClearXlsxCellResponse](docs/Model/ClearXlsxCellResponse.md) - [ClearXlsxRowRequest](docs/Model/ClearXlsxRowRequest.md) - [ClearXlsxRowResponse](docs/Model/ClearXlsxRowResponse.md) + - [ConvertDocumentBatchJobCreateResult](docs/Model/ConvertDocumentBatchJobCreateResult.md) + - [ConvertDocumentJobStatusResult](docs/Model/ConvertDocumentJobStatusResult.md) - [ConvertedJpgPage](docs/Model/ConvertedJpgPage.md) - [ConvertedPngDirectPage](docs/Model/ConvertedPngDirectPage.md) - [ConvertedPngPage](docs/Model/ConvertedPngPage.md) @@ -475,6 +492,8 @@ Class | Method | HTTP request | Description - [DocxToJpgResult](docs/Model/DocxToJpgResult.md) - [DocxToPngResult](docs/Model/DocxToPngResult.md) - [DocxTopLevelComment](docs/Model/DocxTopLevelComment.md) + - [EditPdfBatchJobCreateResult](docs/Model/EditPdfBatchJobCreateResult.md) + - [EditPdfJobStatusResult](docs/Model/EditPdfJobStatusResult.md) - [EmlAttachment](docs/Model/EmlAttachment.md) - [EmlToHtmlResult](docs/Model/EmlToHtmlResult.md) - [EmlToJpgResult](docs/Model/EmlToJpgResult.md) @@ -566,6 +585,8 @@ Class | Method | HTTP request | Description - [JobStatusResult](docs/Model/JobStatusResult.md) - [KeynoteToJpgResult](docs/Model/KeynoteToJpgResult.md) - [KeynoteToPngResult](docs/Model/KeynoteToPngResult.md) + - [MergeBatchJobCreateResult](docs/Model/MergeBatchJobCreateResult.md) + - [MergeJobStatusResult](docs/Model/MergeJobStatusResult.md) - [MsgAttachment](docs/Model/MsgAttachment.md) - [MsgToHtmlResult](docs/Model/MsgToHtmlResult.md) - [MsgToJpgResult](docs/Model/MsgToJpgResult.md) @@ -589,6 +610,7 @@ Class | Method | HTTP request | Description - [PdfToJpgResult](docs/Model/PdfToJpgResult.md) - [PdfToPngDirectResult](docs/Model/PdfToPngDirectResult.md) - [PdfToPngResult](docs/Model/PdfToPngResult.md) + - [PptxPageLayoutInformation](docs/Model/PptxPageLayoutInformation.md) - [PptxSplitAdvancedRequest](docs/Model/PptxSplitAdvancedRequest.md) - [PptxSplitAdvancedResponse](docs/Model/PptxSplitAdvancedResponse.md) - [PptxToPngResult](docs/Model/PptxToPngResult.md) diff --git a/build.ps1 b/build.ps1 index 137498c..0b8a48b 100644 --- a/build.ps1 +++ b/build.ps1 @@ -37,4 +37,4 @@ Get-ChildItem ./lib -Recurse -Filter *.php | ForEach-Object { } } -& php C:\Users\adm101\composer.phar install \ No newline at end of file +& php C:\ProgramData\ComposerSetup\bin\composer.phar install \ No newline at end of file diff --git a/composer.json b/composer.json index 6f500b5..4abb46a 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "cloudmersive/cloudmersive_document_convert_api_client", - "version": "3.1.1", + "version": "3.2.0", "description": "", "keywords": [ "swagger", diff --git a/docs/Api/CompareDocumentApi.md b/docs/Api/CompareDocumentApi.md index fd362b3..e8138e5 100644 --- a/docs/Api/CompareDocumentApi.md +++ b/docs/Api/CompareDocumentApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **compareDocumentDocx** -> string compareDocumentDocx($input_file1, $input_file2) +> string compareDocumentDocx($input_file1, $input_file2, $autorepair) Compare Two Word DOCX @@ -32,9 +32,10 @@ $apiInstance = new Swagger\Client\Api\CompareDocumentApi( ); $input_file1 = "/path/to/file.txt"; // \SplFileObject | First input file to perform the operation on. $input_file2 = "/path/to/file.txt"; // \SplFileObject | Second input file to perform the operation on (more than 2 can be supplied). +$autorepair = true; // bool | Optional; automatically repair input documents that have errors (default is true) try { - $result = $apiInstance->compareDocumentDocx($input_file1, $input_file2); + $result = $apiInstance->compareDocumentDocx($input_file1, $input_file2, $autorepair); print_r($result); } catch (Exception $e) { echo 'Exception when calling CompareDocumentApi->compareDocumentDocx: ', $e->getMessage(), PHP_EOL; @@ -48,6 +49,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **input_file1** | **\SplFileObject**| First input file to perform the operation on. | **input_file2** | **\SplFileObject**| Second input file to perform the operation on (more than 2 can be supplied). | + **autorepair** | **bool**| Optional; automatically repair input documents that have errors (default is true) | [optional] ### Return type diff --git a/docs/Api/ConvertDocumentApi.md b/docs/Api/ConvertDocumentApi.md index 6a96d54..13d218d 100644 --- a/docs/Api/ConvertDocumentApi.md +++ b/docs/Api/ConvertDocumentApi.md @@ -7,6 +7,7 @@ Method | HTTP request | Description [**convertDocumentAutodetectGetInfo**](ConvertDocumentApi.md#convertDocumentAutodetectGetInfo) | **POST** /convert/autodetect/get-info | Get document type information [**convertDocumentAutodetectToJpg**](ConvertDocumentApi.md#convertDocumentAutodetectToJpg) | **POST** /convert/autodetect/to/jpg | Convert Document to JPG/JPEG image array [**convertDocumentAutodetectToPdf**](ConvertDocumentApi.md#convertDocumentAutodetectToPdf) | **POST** /convert/autodetect/to/pdf | Convert Document to PDF +[**convertDocumentAutodetectToPdfBatchJob**](ConvertDocumentApi.md#convertDocumentAutodetectToPdfBatchJob) | **POST** /convert/autodetect/to/pdf/batch-job | Convert Document to PDF as Batch Job [**convertDocumentAutodetectToPngArray**](ConvertDocumentApi.md#convertDocumentAutodetectToPngArray) | **POST** /convert/autodetect/to/png | Convert Document to PNG array [**convertDocumentAutodetectToThumbnail**](ConvertDocumentApi.md#convertDocumentAutodetectToThumbnail) | **POST** /convert/autodetect/to/thumbnail | Convert File to Thumbnail Image [**convertDocumentAutodetectToThumbnailsAdvanced**](ConvertDocumentApi.md#convertDocumentAutodetectToThumbnailsAdvanced) | **POST** /convert/autodetect/to/thumbnail/advanced | Convert File to Thumbnail Image Object @@ -29,6 +30,7 @@ Method | HTTP request | Description [**convertDocumentEmlToJpg**](ConvertDocumentApi.md#convertDocumentEmlToJpg) | **POST** /convert/eml/to/jpg | Convert Email EML file to JPG/JPEG image array [**convertDocumentEmlToPdf**](ConvertDocumentApi.md#convertDocumentEmlToPdf) | **POST** /convert/eml/to/pdf | Convert Email EML file to PDF document [**convertDocumentEmlToPng**](ConvertDocumentApi.md#convertDocumentEmlToPng) | **POST** /convert/eml/to/png | Convert Email EML file to PNG image array +[**convertDocumentGetAsyncJobStatus**](ConvertDocumentApi.md#convertDocumentGetAsyncJobStatus) | **GET** /convert/batch-job/status | Get the status and result of a Convert Document Batch Job [**convertDocumentGetFileTypeIcon**](ConvertDocumentApi.md#convertDocumentGetFileTypeIcon) | **POST** /convert/autodetect/get-icon | Get PNG icon file for the file extension [**convertDocumentGetFileTypeIconAdvanced**](ConvertDocumentApi.md#convertDocumentGetFileTypeIconAdvanced) | **POST** /convert/autodetect/get-icon/advanced | Get PNG icon byte array for the file extension [**convertDocumentHtmlToPdf**](ConvertDocumentApi.md#convertDocumentHtmlToPdf) | **POST** /convert/html/to/pdf | Convert HTML document file to PDF Document @@ -61,6 +63,7 @@ Method | HTTP request | Description [**convertDocumentPdfToPngArrayDirect**](ConvertDocumentApi.md#convertDocumentPdfToPngArrayDirect) | **POST** /convert/pdf/to/png/direct | Convert PDF to PNG Image Array (Direct) [**convertDocumentPdfToPngSingle**](ConvertDocumentApi.md#convertDocumentPdfToPngSingle) | **POST** /convert/pdf/to/png/merge-single | Convert PDF to Single PNG image [**convertDocumentPdfToPptx**](ConvertDocumentApi.md#convertDocumentPdfToPptx) | **POST** /convert/pdf/to/pptx | Convert PDF to PowerPoint PPTX Presentation +[**convertDocumentPdfToTiff**](ConvertDocumentApi.md#convertDocumentPdfToTiff) | **POST** /convert/pdf/to/tiff | Convert PDF to TIFF image [**convertDocumentPdfToTxt**](ConvertDocumentApi.md#convertDocumentPdfToTxt) | **POST** /convert/pdf/to/txt | Convert PDF Document to Text (txt) [**convertDocumentPngArrayToPdf**](ConvertDocumentApi.md#convertDocumentPngArrayToPdf) | **POST** /convert/png/to/pdf | Convert PNG Array to PDF [**convertDocumentPngArrayToPdfFlattenTransparency**](ConvertDocumentApi.md#convertDocumentPngArrayToPdfFlattenTransparency) | **POST** /convert/png/to/pdf/remove-transparency | Convert PNG Array to PDF and remove transparency @@ -255,6 +258,61 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) +# **convertDocumentAutodetectToPdfBatchJob** +> \Swagger\Client\Model\ConvertDocumentBatchJobCreateResult convertDocumentAutodetectToPdfBatchJob($input_file) + +Convert Document to PDF as Batch Job + +Automatically detect file type and convert it to PDF. Supports all of the major Office document file formats including Word (DOCX, DOC), Excel (XLSX, XLS), PowerPoint (PPTX, PPT), over 100 image formats, HTML files, text files, and even multi-page TIFF files. This API is designed for large jobs that could take a long time to create and so runs as a batch job that returns a Job ID that you can use with the GetAsyncJobStatus API to check on the status of the Job and ultimately get the output result. This API is only available for Cloudmersive Managed Instance and Private Cloud deployments. + +### Example +```php +setApiKey('Apikey', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer'); + +$apiInstance = new Swagger\Client\Api\ConvertDocumentApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$input_file = "/path/to/file.txt"; // \SplFileObject | Input file to perform the operation on. + +try { + $result = $apiInstance->convertDocumentAutodetectToPdfBatchJob($input_file); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ConvertDocumentApi->convertDocumentAutodetectToPdfBatchJob: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **input_file** | **\SplFileObject**| Input file to perform the operation on. | + +### Return type + +[**\Swagger\Client\Model\ConvertDocumentBatchJobCreateResult**](../Model/ConvertDocumentBatchJobCreateResult.md) + +### Authorization + +[Apikey](../../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/octet-stream + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + # **convertDocumentAutodetectToPngArray** > \Swagger\Client\Model\AutodetectToPngResult convertDocumentAutodetectToPngArray($input_file) @@ -1513,6 +1571,61 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) +# **convertDocumentGetAsyncJobStatus** +> \Swagger\Client\Model\ConvertDocumentJobStatusResult convertDocumentGetAsyncJobStatus($async_job_id) + +Get the status and result of a Convert Document Batch Job + +Returns the result of the Async Job - possible states can be STARTED or COMPLETED. This API is only available for Cloudmersive Managed Instance and Private Cloud deployments. + +### Example +```php +setApiKey('Apikey', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer'); + +$apiInstance = new Swagger\Client\Api\ConvertDocumentApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$async_job_id = "async_job_id_example"; // string | + +try { + $result = $apiInstance->convertDocumentGetAsyncJobStatus($async_job_id); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ConvertDocumentApi->convertDocumentGetAsyncJobStatus: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **async_job_id** | **string**| | + +### Return type + +[**\Swagger\Client\Model\ConvertDocumentJobStatusResult**](../Model/ConvertDocumentJobStatusResult.md) + +### Authorization + +[Apikey](../../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + # **convertDocumentGetFileTypeIcon** > string convertDocumentGetFileTypeIcon($file_extension, $icon_size) @@ -3080,7 +3193,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **convertDocumentPdfToPngArray** -> \Swagger\Client\Model\PdfToPngResult convertDocumentPdfToPngArray($input_file) +> \Swagger\Client\Model\PdfToPngResult convertDocumentPdfToPngArray($input_file, $dpi) Convert PDF to PNG Image Array @@ -3103,9 +3216,10 @@ $apiInstance = new Swagger\Client\Api\ConvertDocumentApi( $config ); $input_file = "/path/to/file.txt"; // \SplFileObject | Input file to perform the operation on. +$dpi = 56; // int | Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. try { - $result = $apiInstance->convertDocumentPdfToPngArray($input_file); + $result = $apiInstance->convertDocumentPdfToPngArray($input_file, $dpi); print_r($result); } catch (Exception $e) { echo 'Exception when calling ConvertDocumentApi->convertDocumentPdfToPngArray: ', $e->getMessage(), PHP_EOL; @@ -3118,6 +3232,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **input_file** | **\SplFileObject**| Input file to perform the operation on. | + **dpi** | **int**| Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. | [optional] ### Return type @@ -3135,7 +3250,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **convertDocumentPdfToPngArrayDirect** -> \Swagger\Client\Model\PdfToPngDirectResult convertDocumentPdfToPngArrayDirect($input_file) +> \Swagger\Client\Model\PdfToPngDirectResult convertDocumentPdfToPngArrayDirect($input_file, $dpi) Convert PDF to PNG Image Array (Direct) @@ -3158,9 +3273,10 @@ $apiInstance = new Swagger\Client\Api\ConvertDocumentApi( $config ); $input_file = "/path/to/file.txt"; // \SplFileObject | Input file to perform the operation on. +$dpi = 56; // int | Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. try { - $result = $apiInstance->convertDocumentPdfToPngArrayDirect($input_file); + $result = $apiInstance->convertDocumentPdfToPngArrayDirect($input_file, $dpi); print_r($result); } catch (Exception $e) { echo 'Exception when calling ConvertDocumentApi->convertDocumentPdfToPngArrayDirect: ', $e->getMessage(), PHP_EOL; @@ -3173,6 +3289,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **input_file** | **\SplFileObject**| Input file to perform the operation on. | + **dpi** | **int**| Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. | [optional] ### Return type @@ -3299,6 +3416,65 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) +# **convertDocumentPdfToTiff** +> string convertDocumentPdfToTiff($input_file, $dpi, $lzw_compression) + +Convert PDF to TIFF image + +Converts a PDF Document to a TIFF image. If the PDF contains multiple pages, these pages will be represented as separate pages within the output TIFF image. + +### Example +```php +setApiKey('Apikey', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer'); + +$apiInstance = new Swagger\Client\Api\ConvertDocumentApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$input_file = "/path/to/file.txt"; // \SplFileObject | Input file to perform the operation on. +$dpi = 56; // int | Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. +$lzw_compression = true; // bool | Optional; Enables LZW compression to reduce the size of the output image. + +try { + $result = $apiInstance->convertDocumentPdfToTiff($input_file, $dpi, $lzw_compression); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ConvertDocumentApi->convertDocumentPdfToTiff: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **input_file** | **\SplFileObject**| Input file to perform the operation on. | + **dpi** | **int**| Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. | [optional] + **lzw_compression** | **bool**| Optional; Enables LZW compression to reduce the size of the output image. | [optional] + +### Return type + +**string** + +### Authorization + +[Apikey](../../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + # **convertDocumentPdfToTxt** > \Swagger\Client\Model\TextConversionResult convertDocumentPdfToTxt($input_file, $text_formatting_mode) @@ -3701,7 +3877,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **convertDocumentPptxToPpt** -> object convertDocumentPptxToPpt() +> string convertDocumentPptxToPpt($input_file) Convert PowerPoint PPTX presentation to Legacy PowerPoint PPT (97-03) @@ -3723,9 +3899,10 @@ $apiInstance = new Swagger\Client\Api\ConvertDocumentApi( new GuzzleHttp\Client(), $config ); +$input_file = "/path/to/file.txt"; // \SplFileObject | Input file to perform the operation on. try { - $result = $apiInstance->convertDocumentPptxToPpt(); + $result = $apiInstance->convertDocumentPptxToPpt($input_file); print_r($result); } catch (Exception $e) { echo 'Exception when calling ConvertDocumentApi->convertDocumentPptxToPpt: ', $e->getMessage(), PHP_EOL; @@ -3734,11 +3911,14 @@ try { ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **input_file** | **\SplFileObject**| Input file to perform the operation on. | ### Return type -**object** +**string** ### Authorization @@ -3746,7 +3926,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: multipart/form-data - **Accept**: application/octet-stream [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) @@ -4358,7 +4538,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: multipart/form-data - - **Accept**: application/octet-stream + - **Accept**: application/json, text/json, application/xml, text/xml [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) diff --git a/docs/Api/ConvertImageApi.md b/docs/Api/ConvertImageApi.md index 1b78fe2..dbba9a9 100644 --- a/docs/Api/ConvertImageApi.md +++ b/docs/Api/ConvertImageApi.md @@ -182,7 +182,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **convertImageMultipageImageFormatConvert** -> \Swagger\Client\Model\MultipageImageFormatConversionResult convertImageMultipageImageFormatConvert($format1, $format2, $input_file) +> \Swagger\Client\Model\MultipageImageFormatConversionResult convertImageMultipageImageFormatConvert($format1, $format2, $input_file, $dpi) Multi-page image format conversion @@ -207,9 +207,10 @@ $apiInstance = new Swagger\Client\Api\ConvertImageApi( $format1 = "format1_example"; // string | Input file format as a 3+ letter file extension. You can also provide UNKNOWN for unknown file formats. Supported formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV $format2 = "format2_example"; // string | Output (convert to this format) file format as a 3+ letter file extension. Supported formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV $input_file = "/path/to/file.txt"; // \SplFileObject | Input file to perform the operation on. +$dpi = 56; // int | Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. try { - $result = $apiInstance->convertImageMultipageImageFormatConvert($format1, $format2, $input_file); + $result = $apiInstance->convertImageMultipageImageFormatConvert($format1, $format2, $input_file, $dpi); print_r($result); } catch (Exception $e) { echo 'Exception when calling ConvertImageApi->convertImageMultipageImageFormatConvert: ', $e->getMessage(), PHP_EOL; @@ -224,6 +225,7 @@ Name | Type | Description | Notes **format1** | **string**| Input file format as a 3+ letter file extension. You can also provide UNKNOWN for unknown file formats. Supported formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV | **format2** | **string**| Output (convert to this format) file format as a 3+ letter file extension. Supported formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV | **input_file** | **\SplFileObject**| Input file to perform the operation on. | + **dpi** | **int**| Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. | [optional] ### Return type diff --git a/docs/Api/EditDocumentApi.md b/docs/Api/EditDocumentApi.md index 4bfbf91..bb3787d 100644 --- a/docs/Api/EditDocumentApi.md +++ b/docs/Api/EditDocumentApi.md @@ -49,7 +49,9 @@ Method | HTTP request | Description [**editDocumentDocxUpdateTableRow**](EditDocumentApi.md#editDocumentDocxUpdateTableRow) | **POST** /convert/edit/docx/update-table-row | Update, set contents of a table row in an existing table in a Word DOCX document [**editDocumentFinishEditing**](EditDocumentApi.md#editDocumentFinishEditing) | **POST** /convert/edit/finish-editing | Finish editing document, and download result from document editing [**editDocumentPptxDeleteSlides**](EditDocumentApi.md#editDocumentPptxDeleteSlides) | **POST** /convert/edit/pptx/delete-slides | Delete, remove slides from a PowerPoint PPTX presentation document +[**editDocumentPptxEditSizeAndOrientation**](EditDocumentApi.md#editDocumentPptxEditSizeAndOrientation) | **POST** /convert/edit/pptx/set-size-and-orientation | Set the size and/or orientation of a PowerPoint PPTX presentation document [**editDocumentPptxGetMacroInformation**](EditDocumentApi.md#editDocumentPptxGetMacroInformation) | **POST** /convert/edit/pptx/get-macros | Get macro information from a PowerPoint PPTX/PPTM presentation document +[**editDocumentPptxGetSizeAndOrientation**](EditDocumentApi.md#editDocumentPptxGetSizeAndOrientation) | **POST** /convert/edit/pptx/get-size-and-orientation | Get the page layout information, including size and orientation of a PowerPoint PPTX presentation document [**editDocumentPptxReplace**](EditDocumentApi.md#editDocumentPptxReplace) | **POST** /convert/edit/pptx/replace-all | Replace string in PowerPoint PPTX presentation [**editDocumentXlsxAppendRow**](EditDocumentApi.md#editDocumentXlsxAppendRow) | **POST** /convert/edit/xlsx/append-row | Append row to a Excel XLSX spreadsheet, worksheet [**editDocumentXlsxClearCellByIndex**](EditDocumentApi.md#editDocumentXlsxClearCellByIndex) | **POST** /convert/edit/xlsx/clear-cell/by-index | Clear cell contents in an Excel XLSX spreadsheet, worksheet by index @@ -130,7 +132,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **editDocumentDocxAcceptAllTrackChanges** -> string editDocumentDocxAcceptAllTrackChanges($input_file) +> string editDocumentDocxAcceptAllTrackChanges($input_file, $autorepair) Accept all tracked changes, revisions in a Word DOCX document @@ -153,9 +155,10 @@ $apiInstance = new Swagger\Client\Api\EditDocumentApi( $config ); $input_file = "/path/to/file.txt"; // \SplFileObject | Input file to perform the operation on. +$autorepair = true; // bool | Optional; automatically repair input documents that have errors (default is true) try { - $result = $apiInstance->editDocumentDocxAcceptAllTrackChanges($input_file); + $result = $apiInstance->editDocumentDocxAcceptAllTrackChanges($input_file, $autorepair); print_r($result); } catch (Exception $e) { echo 'Exception when calling EditDocumentApi->editDocumentDocxAcceptAllTrackChanges: ', $e->getMessage(), PHP_EOL; @@ -168,6 +171,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **input_file** | **\SplFileObject**| Input file to perform the operation on. | + **autorepair** | **bool**| Optional; automatically repair input documents that have errors (default is true) | [optional] ### Return type @@ -2549,6 +2553,67 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) +# **editDocumentPptxEditSizeAndOrientation** +> string editDocumentPptxEditSizeAndOrientation($input_file, $orientation, $width, $height) + +Set the size and/or orientation of a PowerPoint PPTX presentation document + +Edits the input PowerPoint PPTX presentation document to be a different orientation and/or size + +### Example +```php +setApiKey('Apikey', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer'); + +$apiInstance = new Swagger\Client\Api\EditDocumentApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$input_file = "/path/to/file.txt"; // \SplFileObject | Input file to perform the operation on. +$orientation = "orientation_example"; // string | Optional: The desired slide orientation; can be landscape or portrait. +$width = 56; // int | Optional: The desired slide width in Emu, where 1 inch equals 914400 emu. +$height = 56; // int | Optional: The desired slide height in Emu, where 1 inch equals 914400 emu + +try { + $result = $apiInstance->editDocumentPptxEditSizeAndOrientation($input_file, $orientation, $width, $height); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling EditDocumentApi->editDocumentPptxEditSizeAndOrientation: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **input_file** | **\SplFileObject**| Input file to perform the operation on. | + **orientation** | **string**| Optional: The desired slide orientation; can be landscape or portrait. | [optional] + **width** | **int**| Optional: The desired slide width in Emu, where 1 inch equals 914400 emu. | [optional] + **height** | **int**| Optional: The desired slide height in Emu, where 1 inch equals 914400 emu | [optional] + +### Return type + +**string** + +### Authorization + +[Apikey](../../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + # **editDocumentPptxGetMacroInformation** > \Swagger\Client\Model\GetMacrosResponse editDocumentPptxGetMacroInformation($input_file) @@ -2604,6 +2669,61 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) +# **editDocumentPptxGetSizeAndOrientation** +> \Swagger\Client\Model\PptxPageLayoutInformation editDocumentPptxGetSizeAndOrientation($input_file) + +Get the page layout information, including size and orientation of a PowerPoint PPTX presentation document + +Gets size and orientation of an input PowerPoint PPTX presentation + +### Example +```php +setApiKey('Apikey', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer'); + +$apiInstance = new Swagger\Client\Api\EditDocumentApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$input_file = "/path/to/file.txt"; // \SplFileObject | Input file to perform the operation on. + +try { + $result = $apiInstance->editDocumentPptxGetSizeAndOrientation($input_file); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling EditDocumentApi->editDocumentPptxGetSizeAndOrientation: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **input_file** | **\SplFileObject**| Input file to perform the operation on. | + +### Return type + +[**\Swagger\Client\Model\PptxPageLayoutInformation**](../Model/PptxPageLayoutInformation.md) + +### Authorization + +[Apikey](../../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + # **editDocumentPptxReplace** > string editDocumentPptxReplace($req_config) diff --git a/docs/Api/EditPdfApi.md b/docs/Api/EditPdfApi.md index 2b86918..efe8ef3 100644 --- a/docs/Api/EditPdfApi.md +++ b/docs/Api/EditPdfApi.md @@ -8,14 +8,18 @@ Method | HTTP request | Description [**editPdfConvertToPdfA**](EditPdfApi.md#editPdfConvertToPdfA) | **POST** /convert/edit/pdf/optimize/pdf-a | Convert a PDF file to PDF/A [**editPdfDecrypt**](EditPdfApi.md#editPdfDecrypt) | **POST** /convert/edit/pdf/decrypt | Decrypt and password-protect a PDF [**editPdfDeletePages**](EditPdfApi.md#editPdfDeletePages) | **POST** /convert/edit/pdf/pages/delete | Remove, delete pages from a PDF document +[**editPdfDeletePagesBatchJob**](EditPdfApi.md#editPdfDeletePagesBatchJob) | **POST** /convert/edit/pdf/pages/delete/batch-job | Remove, delete pages from a PDF document as Batch Job [**editPdfEncrypt**](EditPdfApi.md#editPdfEncrypt) | **POST** /convert/edit/pdf/encrypt | Encrypt and password-protect a PDF [**editPdfGetAnnotations**](EditPdfApi.md#editPdfGetAnnotations) | **POST** /convert/edit/pdf/annotations/list | Get PDF annotations, including comments in the document +[**editPdfGetAsyncJobStatus**](EditPdfApi.md#editPdfGetAsyncJobStatus) | **GET** /convert/edit/pdf/batch-job/status | Get the status and result of a PDF Batch Job [**editPdfGetFormFields**](EditPdfApi.md#editPdfGetFormFields) | **POST** /convert/edit/pdf/form/get-fields | Gets PDF Form fields and values [**editPdfGetMetadata**](EditPdfApi.md#editPdfGetMetadata) | **POST** /convert/edit/pdf/get-metadata | Get PDF document metadata [**editPdfGetPdfTextByPages**](EditPdfApi.md#editPdfGetPdfTextByPages) | **POST** /convert/edit/pdf/pages/get-text | Get text in a PDF document by page [**editPdfInsertPages**](EditPdfApi.md#editPdfInsertPages) | **POST** /convert/edit/pdf/pages/insert | Insert, copy pages from one PDF document into another +[**editPdfInsertPagesBatchJob**](EditPdfApi.md#editPdfInsertPagesBatchJob) | **POST** /convert/edit/pdf/pages/insert/batch-job | Insert, copy pages from one PDF document into another as a batch job [**editPdfLinearize**](EditPdfApi.md#editPdfLinearize) | **POST** /convert/edit/pdf/optimize/linearize | Linearize and optimize a PDF for streaming download [**editPdfRasterize**](EditPdfApi.md#editPdfRasterize) | **POST** /convert/edit/pdf/rasterize | Rasterize a PDF to an image-based PDF +[**editPdfRasterizeBatchJob**](EditPdfApi.md#editPdfRasterizeBatchJob) | **POST** /convert/edit/pdf/rasterize/batch-job | Rasterize a PDF to an image-based PDF as Batch Job [**editPdfReduceFileSize**](EditPdfApi.md#editPdfReduceFileSize) | **POST** /convert/edit/pdf/optimize/reduce-file-size | Reduce the file size and optimize a PDF [**editPdfRemoveAllAnnotations**](EditPdfApi.md#editPdfRemoveAllAnnotations) | **POST** /convert/edit/pdf/annotations/remove-all | Remove all PDF annotations, including comments in the document [**editPdfRemoveAnnotationItem**](EditPdfApi.md#editPdfRemoveAnnotationItem) | **POST** /convert/edit/pdf/annotations/remove-item | Remove a specific PDF annotation, comment in the document @@ -256,6 +260,65 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) +# **editPdfDeletePagesBatchJob** +> \Swagger\Client\Model\EditPdfBatchJobCreateResult editPdfDeletePagesBatchJob($input_file, $page_start, $page_end) + +Remove, delete pages from a PDF document as Batch Job + +Remove one or more pages from a PDF document. Runs as a batch job async and returns a batch job ID that you can check the status of to get the result. Requires Cloudmersive Private Cloud or Managed Instance. + +### Example +```php +setApiKey('Apikey', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer'); + +$apiInstance = new Swagger\Client\Api\EditPdfApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$input_file = "/path/to/file.txt"; // \SplFileObject | Input file to perform the operation on. +$page_start = 56; // int | Page number (1 based) to start deleting pages from (inclusive). +$page_end = 56; // int | Page number (1 based) to stop deleting pages from (inclusive). + +try { + $result = $apiInstance->editPdfDeletePagesBatchJob($input_file, $page_start, $page_end); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling EditPdfApi->editPdfDeletePagesBatchJob: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **input_file** | **\SplFileObject**| Input file to perform the operation on. | + **page_start** | **int**| Page number (1 based) to start deleting pages from (inclusive). | + **page_end** | **int**| Page number (1 based) to stop deleting pages from (inclusive). | + +### Return type + +[**\Swagger\Client\Model\EditPdfBatchJobCreateResult**](../Model/EditPdfBatchJobCreateResult.md) + +### Authorization + +[Apikey](../../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/octet-stream + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + # **editPdfEncrypt** > string editPdfEncrypt($input_file, $user_password, $owner_password, $encryption_key_length) @@ -372,6 +435,61 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) +# **editPdfGetAsyncJobStatus** +> \Swagger\Client\Model\EditPdfJobStatusResult editPdfGetAsyncJobStatus($async_job_id) + +Get the status and result of a PDF Batch Job + +Returns the result of the Async Job - possible states can be STARTED or COMPLETED. This API is only available for Cloudmersive Managed Instance and Private Cloud deployments. + +### Example +```php +setApiKey('Apikey', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer'); + +$apiInstance = new Swagger\Client\Api\EditPdfApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$async_job_id = "async_job_id_example"; // string | + +try { + $result = $apiInstance->editPdfGetAsyncJobStatus($async_job_id); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling EditPdfApi->editPdfGetAsyncJobStatus: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **async_job_id** | **string**| | + +### Return type + +[**\Swagger\Client\Model\EditPdfJobStatusResult**](../Model/EditPdfJobStatusResult.md) + +### Authorization + +[Apikey](../../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + # **editPdfGetFormFields** > \Swagger\Client\Model\PdfFormFields editPdfGetFormFields($input_file) @@ -602,6 +720,69 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) +# **editPdfInsertPagesBatchJob** +> \Swagger\Client\Model\EditPdfBatchJobCreateResult editPdfInsertPagesBatchJob($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation) + +Insert, copy pages from one PDF document into another as a batch job + +Copy one or more pages from one PDF document (source document) and insert them into a second PDF document (destination document). Runs as a batch job async and returns a batch job ID that you can check the status of to get the result. Requires Cloudmersive Private Cloud or Managed Instance. + +### Example +```php +setApiKey('Apikey', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer'); + +$apiInstance = new Swagger\Client\Api\EditPdfApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$source_file = "/path/to/file.txt"; // \SplFileObject | Source PDF file to copy pages from. +$destination_file = "/path/to/file.txt"; // \SplFileObject | Destination PDF file to copy pages into. +$page_start_source = 56; // int | Page number (1 based) to start copying pages from (inclusive) in the Source file. +$page_end_source = 56; // int | Page number (1 based) to stop copying pages pages from (inclusive) in the Source file. +$page_insert_before_desitnation = 56; // int | Page number (1 based) to insert the pages before in the Destination file. + +try { + $result = $apiInstance->editPdfInsertPagesBatchJob($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling EditPdfApi->editPdfInsertPagesBatchJob: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **source_file** | **\SplFileObject**| Source PDF file to copy pages from. | + **destination_file** | **\SplFileObject**| Destination PDF file to copy pages into. | + **page_start_source** | **int**| Page number (1 based) to start copying pages from (inclusive) in the Source file. | + **page_end_source** | **int**| Page number (1 based) to stop copying pages pages from (inclusive) in the Source file. | + **page_insert_before_desitnation** | **int**| Page number (1 based) to insert the pages before in the Destination file. | + +### Return type + +[**\Swagger\Client\Model\EditPdfBatchJobCreateResult**](../Model/EditPdfBatchJobCreateResult.md) + +### Authorization + +[Apikey](../../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/octet-stream + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + # **editPdfLinearize** > string editPdfLinearize($input_file) @@ -658,7 +839,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **editPdfRasterize** -> string editPdfRasterize($input_file) +> string editPdfRasterize($input_file, $dpi) Rasterize a PDF to an image-based PDF @@ -681,9 +862,10 @@ $apiInstance = new Swagger\Client\Api\EditPdfApi( $config ); $input_file = "/path/to/file.txt"; // \SplFileObject | Input file to perform the operation on. +$dpi = 56; // int | Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. try { - $result = $apiInstance->editPdfRasterize($input_file); + $result = $apiInstance->editPdfRasterize($input_file, $dpi); print_r($result); } catch (Exception $e) { echo 'Exception when calling EditPdfApi->editPdfRasterize: ', $e->getMessage(), PHP_EOL; @@ -696,6 +878,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **input_file** | **\SplFileObject**| Input file to perform the operation on. | + **dpi** | **int**| Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. | [optional] ### Return type @@ -712,6 +895,61 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) +# **editPdfRasterizeBatchJob** +> \Swagger\Client\Model\EditPdfBatchJobCreateResult editPdfRasterizeBatchJob($input_file) + +Rasterize a PDF to an image-based PDF as Batch Job + +Rasterize a PDF into an image-based PDF. The output is a PDF where each page is comprised of a high-resolution image, with all text, figures and other components removed. + +### Example +```php +setApiKey('Apikey', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer'); + +$apiInstance = new Swagger\Client\Api\EditPdfApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$input_file = "/path/to/file.txt"; // \SplFileObject | Input file to perform the operation on. + +try { + $result = $apiInstance->editPdfRasterizeBatchJob($input_file); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling EditPdfApi->editPdfRasterizeBatchJob: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **input_file** | **\SplFileObject**| Input file to perform the operation on. | + +### Return type + +[**\Swagger\Client\Model\EditPdfBatchJobCreateResult**](../Model/EditPdfBatchJobCreateResult.md) + +### Authorization + +[Apikey](../../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/octet-stream + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + # **editPdfReduceFileSize** > string editPdfReduceFileSize($input_file, $quality) diff --git a/docs/Api/MergeDocumentApi.md b/docs/Api/MergeDocumentApi.md index 54e1e19..7fb88b2 100644 --- a/docs/Api/MergeDocumentApi.md +++ b/docs/Api/MergeDocumentApi.md @@ -4,9 +4,11 @@ All URIs are relative to *https://api.cloudmersive.com* Method | HTTP request | Description ------------- | ------------- | ------------- +[**mergeDocumentBatchJobCreate**](MergeDocumentApi.md#mergeDocumentBatchJobCreate) | **POST** /convert/merge/batch-job/create | Merge an array of Documents into a Single Document by Page as a Batch Job [**mergeDocumentDocx**](MergeDocumentApi.md#mergeDocumentDocx) | **POST** /convert/merge/docx | Merge Two Word DOCX Together [**mergeDocumentDocxMulti**](MergeDocumentApi.md#mergeDocumentDocxMulti) | **POST** /convert/merge/docx/multi | Merge Multple Word DOCX Together [**mergeDocumentDocxMultiArray**](MergeDocumentApi.md#mergeDocumentDocxMultiArray) | **POST** /convert/merge/docx/multi/array | Merge Multple Word DOCX Together from an array +[**mergeDocumentGetAsyncJobStatus**](MergeDocumentApi.md#mergeDocumentGetAsyncJobStatus) | **GET** /convert/merge/batch-job/status | Get the status and result of a Merge Document Batch Job [**mergeDocumentHtml**](MergeDocumentApi.md#mergeDocumentHtml) | **POST** /convert/merge/html | Merge Two HTML (HTM) Files Together [**mergeDocumentHtmlMulti**](MergeDocumentApi.md#mergeDocumentHtmlMulti) | **POST** /convert/merge/html/multi | Merge Multple HTML (HTM) Files Together [**mergeDocumentHtmlMultiArray**](MergeDocumentApi.md#mergeDocumentHtmlMultiArray) | **POST** /convert/merge/html/multi/array | Merge Multple HTML (HTM) Files Together from an array @@ -26,6 +28,61 @@ Method | HTTP request | Description [**mergeDocumentXlsxMultiArray**](MergeDocumentApi.md#mergeDocumentXlsxMultiArray) | **POST** /convert/merge/xlsx/multi/array | Merge Multple Excel XLSX Together from an Array +# **mergeDocumentBatchJobCreate** +> \Swagger\Client\Model\MergeBatchJobCreateResult mergeDocumentBatchJobCreate($input) + +Merge an array of Documents into a Single Document by Page as a Batch Job + +Merge an array of Documents (PDF supported), into a single document. This API is designed for large jobs that could take a long time to create and so runs as a batch job that returns a Job ID that you can use with the GetAsyncJobStatus API to check on the status of the Job and ultimately get the output result. This API automatically detects the document type and then performs the split by using the document type-specific API needed to perform the split. This API is only available for Cloudmersive Managed Instance and Private Cloud deployments. + +### Example +```php +setApiKey('Apikey', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer'); + +$apiInstance = new Swagger\Client\Api\MergeDocumentApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$input = new \Swagger\Client\Model\DocumentArrayInput(); // \Swagger\Client\Model\DocumentArrayInput | + +try { + $result = $apiInstance->mergeDocumentBatchJobCreate($input); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling MergeDocumentApi->mergeDocumentBatchJobCreate: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **input** | [**\Swagger\Client\Model\DocumentArrayInput**](../Model/DocumentArrayInput.md)| | + +### Return type + +[**\Swagger\Client\Model\MergeBatchJobCreateResult**](../Model/MergeBatchJobCreateResult.md) + +### Authorization + +[Apikey](../../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + # **mergeDocumentDocx** > string mergeDocumentDocx($input_file1, $input_file2) @@ -211,6 +268,61 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) +# **mergeDocumentGetAsyncJobStatus** +> \Swagger\Client\Model\MergeJobStatusResult mergeDocumentGetAsyncJobStatus($async_job_id) + +Get the status and result of a Merge Document Batch Job + +Returns the result of the Async Job - possible states can be STARTED or COMPLETED. This API is only available for Cloudmersive Managed Instance and Private Cloud deployments. + +### Example +```php +setApiKey('Apikey', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer'); + +$apiInstance = new Swagger\Client\Api\MergeDocumentApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$async_job_id = "async_job_id_example"; // string | + +try { + $result = $apiInstance->mergeDocumentGetAsyncJobStatus($async_job_id); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling MergeDocumentApi->mergeDocumentGetAsyncJobStatus: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **async_job_id** | **string**| | + +### Return type + +[**\Swagger\Client\Model\MergeJobStatusResult**](../Model/MergeJobStatusResult.md) + +### Authorization + +[Apikey](../../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + # **mergeDocumentHtml** > string mergeDocumentHtml($input_file1, $input_file2) diff --git a/docs/Api/SplitDocumentApi.md b/docs/Api/SplitDocumentApi.md index 9b22b04..aaa0689 100644 --- a/docs/Api/SplitDocumentApi.md +++ b/docs/Api/SplitDocumentApi.md @@ -6,7 +6,7 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**splitDocumentBatchJobCreate**](SplitDocumentApi.md#splitDocumentBatchJobCreate) | **POST** /convert/split/batch-job/create | Split a single Document into Separate Documents by Page as a Batch Job [**splitDocumentDocx**](SplitDocumentApi.md#splitDocumentDocx) | **POST** /convert/split/docx | Split a single Word Document DOCX into Separate Documents by Page -[**splitDocumentGetAsyncJobStatus**](SplitDocumentApi.md#splitDocumentGetAsyncJobStatus) | **GET** /convert/split/batch-job/status | Get the status and result of a Batch Job +[**splitDocumentGetAsyncJobStatus**](SplitDocumentApi.md#splitDocumentGetAsyncJobStatus) | **GET** /convert/split/batch-job/status | Get the status and result of a Split Document Batch Job [**splitDocumentPdfByPage**](SplitDocumentApi.md#splitDocumentPdfByPage) | **POST** /convert/split/pdf | Split a PDF file into separate PDF files, one per page [**splitDocumentPptx**](SplitDocumentApi.md#splitDocumentPptx) | **POST** /convert/split/pptx | Split a single PowerPoint Presentation PPTX into Separate Slides [**splitDocumentPptxAdvanced**](SplitDocumentApi.md#splitDocumentPptxAdvanced) | **POST** /convert/split/pptx/advanced | Split a single PowerPoint Presentation PPTX into Separate Presentations @@ -20,7 +20,7 @@ Method | HTTP request | Description Split a single Document into Separate Documents by Page as a Batch Job -Split a Document (PPTX supported), comprised of multiple pages into separate files, with each containing exactly one page. This API is designed for large jobs that could take a long time to create and so runs as a batch job that returns a Job ID that you can use with the GetAsyncJobStatus API to check on the status of the Job and ultimately get the output result. This API automatically detects the document type and then performs the split by using the document type-specific API needed to perform the split. This API is only available for Cloudmersive Managed Instance and Private Cloud deployments. +Split a Document (PPTX supported), comprised of multiple pages into separate files, with each containing exactly one page. This API is designed for large jobs that could take a long time to create and so runs as a batch job that returns a Job ID that you can use with the GetAsyncJobStatus API to check on the status of the Job and ultimately get the output result. This API automatically detects the document type and then performs the split by using the document type-specific API needed to perform the split. This API is only available for Cloudmersive Managed Instance and Private Cloud deployments. ### Example ```php @@ -132,7 +132,7 @@ Name | Type | Description | Notes # **splitDocumentGetAsyncJobStatus** > \Swagger\Client\Model\JobStatusResult splitDocumentGetAsyncJobStatus($async_job_id) -Get the status and result of a Batch Job +Get the status and result of a Split Document Batch Job Returns the result of the Async Job - possible states can be STARTED or COMPLETED. This API is only available for Cloudmersive Managed Instance and Private Cloud deployments. diff --git a/docs/Api/ValidateDocumentApi.md b/docs/Api/ValidateDocumentApi.md index 86dee41..ca59365 100644 --- a/docs/Api/ValidateDocumentApi.md +++ b/docs/Api/ValidateDocumentApi.md @@ -7,6 +7,7 @@ Method | HTTP request | Description [**validateDocumentAutodetectValidation**](ValidateDocumentApi.md#validateDocumentAutodetectValidation) | **POST** /convert/validate/autodetect | Autodetect content type and validate [**validateDocumentCsvValidation**](ValidateDocumentApi.md#validateDocumentCsvValidation) | **POST** /convert/validate/csv | Validate a CSV file document (CSV) [**validateDocumentDocValidation**](ValidateDocumentApi.md#validateDocumentDocValidation) | **POST** /convert/validate/doc | Validate a Word 97-2003 Legacy document (DOC) +[**validateDocumentDocxRepair**](ValidateDocumentApi.md#validateDocumentDocxRepair) | **POST** /convert/validate/docx/repair | Repair a Word document (DOCX) that contains errors [**validateDocumentDocxValidation**](ValidateDocumentApi.md#validateDocumentDocxValidation) | **POST** /convert/validate/docx | Validate a Word document (DOCX) [**validateDocumentEmlValidation**](ValidateDocumentApi.md#validateDocumentEmlValidation) | **POST** /convert/validate/eml | Validate if input file is a valid EML file [**validateDocumentExecutableValidation**](ValidateDocumentApi.md#validateDocumentExecutableValidation) | **POST** /convert/validate/executable | Validate if a file is executable @@ -20,12 +21,14 @@ Method | HTTP request | Description [**validateDocumentPdfValidation**](ValidateDocumentApi.md#validateDocumentPdfValidation) | **POST** /convert/validate/pdf | Validate a PDF document file [**validateDocumentPngValidation**](ValidateDocumentApi.md#validateDocumentPngValidation) | **POST** /convert/validate/png | Validate a PNG File [**validateDocumentPptValidation**](ValidateDocumentApi.md#validateDocumentPptValidation) | **POST** /convert/validate/ppt | Validate a PowerPoint 97-2003 Legacy presentation (PPT) +[**validateDocumentPptxRepair**](ValidateDocumentApi.md#validateDocumentPptxRepair) | **POST** /convert/validate/pptx/repair | Repair a PowerPoint presentation (PPTX) that contains errors [**validateDocumentPptxValidation**](ValidateDocumentApi.md#validateDocumentPptxValidation) | **POST** /convert/validate/pptx | Validate a PowerPoint presentation (PPTX) [**validateDocumentRarValidation**](ValidateDocumentApi.md#validateDocumentRarValidation) | **POST** /convert/validate/rar | Validate a RAR Archive file (RAR) [**validateDocumentRtfValidation**](ValidateDocumentApi.md#validateDocumentRtfValidation) | **POST** /convert/validate/rtf | Validate a Rich Text Format document (RTF) [**validateDocumentTarValidation**](ValidateDocumentApi.md#validateDocumentTarValidation) | **POST** /convert/validate/tar | Validate a TAR Tarball Archive file (TAR) [**validateDocumentTxtValidation**](ValidateDocumentApi.md#validateDocumentTxtValidation) | **POST** /convert/validate/txt | Validate an TXT file [**validateDocumentXlsValidation**](ValidateDocumentApi.md#validateDocumentXlsValidation) | **POST** /convert/validate/xls | Validate a Excel 97-2003 Legacy spreadsheet (XLS) +[**validateDocumentXlsxRepair**](ValidateDocumentApi.md#validateDocumentXlsxRepair) | **POST** /convert/validate/xlsx/repair | Repair an Excel spreadsheet (XLSX) that contains errors [**validateDocumentXlsxValidation**](ValidateDocumentApi.md#validateDocumentXlsxValidation) | **POST** /convert/validate/xlsx | Validate a Excel document (XLSX) [**validateDocumentXmlValidation**](ValidateDocumentApi.md#validateDocumentXmlValidation) | **POST** /convert/validate/xml | Validate an XML file [**validateDocumentXmlXxeThreatValidation**](ValidateDocumentApi.md#validateDocumentXmlXxeThreatValidation) | **POST** /convert/validate/xml/xxe-threats | Validate an XML file for XML External Entity (XXE) threats @@ -197,6 +200,63 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) +# **validateDocumentDocxRepair** +> string validateDocumentDocxRepair($input_file, $repair_mode) + +Repair a Word document (DOCX) that contains errors + +Repair a Word document (DOCX) that contains errors or corruption, if possible. + +### Example +```php +setApiKey('Apikey', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer'); + +$apiInstance = new Swagger\Client\Api\ValidateDocumentApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$input_file = "/path/to/file.txt"; // \SplFileObject | Input file to perform the operation on. +$repair_mode = "repair_mode_example"; // string | Optional; Set to advanced to apply the most advanced repair mode, basic for basic repair mode. Default is advanced. + +try { + $result = $apiInstance->validateDocumentDocxRepair($input_file, $repair_mode); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ValidateDocumentApi->validateDocumentDocxRepair: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **input_file** | **\SplFileObject**| Input file to perform the operation on. | + **repair_mode** | **string**| Optional; Set to advanced to apply the most advanced repair mode, basic for basic repair mode. Default is advanced. | [optional] + +### Return type + +**string** + +### Authorization + +[Apikey](../../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + # **validateDocumentDocxValidation** > \Swagger\Client\Model\DocumentValidationResult validateDocumentDocxValidation($input_file) @@ -912,6 +972,61 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) +# **validateDocumentPptxRepair** +> string validateDocumentPptxRepair($input_file) + +Repair a PowerPoint presentation (PPTX) that contains errors + +Repair a PowerPoint presentation document (PPTX) that contains errors or corruption, if possible. + +### Example +```php +setApiKey('Apikey', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer'); + +$apiInstance = new Swagger\Client\Api\ValidateDocumentApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$input_file = "/path/to/file.txt"; // \SplFileObject | Input file to perform the operation on. + +try { + $result = $apiInstance->validateDocumentPptxRepair($input_file); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ValidateDocumentApi->validateDocumentPptxRepair: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **input_file** | **\SplFileObject**| Input file to perform the operation on. | + +### Return type + +**string** + +### Authorization + +[Apikey](../../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + # **validateDocumentPptxValidation** > \Swagger\Client\Model\DocumentValidationResult validateDocumentPptxValidation($input_file) @@ -1242,6 +1357,61 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) +# **validateDocumentXlsxRepair** +> string validateDocumentXlsxRepair($input_file) + +Repair an Excel spreadsheet (XLSX) that contains errors + +Repair an Excel spreadsheet document (XLSX) that contains errors or corruption, if possible. + +### Example +```php +setApiKey('Apikey', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer'); + +$apiInstance = new Swagger\Client\Api\ValidateDocumentApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$input_file = "/path/to/file.txt"; // \SplFileObject | Input file to perform the operation on. + +try { + $result = $apiInstance->validateDocumentXlsxRepair($input_file); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ValidateDocumentApi->validateDocumentXlsxRepair: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **input_file** | **\SplFileObject**| Input file to perform the operation on. | + +### Return type + +**string** + +### Authorization + +[Apikey](../../README.md#Apikey) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + # **validateDocumentXlsxValidation** > \Swagger\Client\Model\DocumentValidationResult validateDocumentXlsxValidation($input_file) diff --git a/docs/Model/ConvertDocumentBatchJobCreateResult.md b/docs/Model/ConvertDocumentBatchJobCreateResult.md new file mode 100644 index 0000000..ee2c1b1 --- /dev/null +++ b/docs/Model/ConvertDocumentBatchJobCreateResult.md @@ -0,0 +1,11 @@ +# ConvertDocumentBatchJobCreateResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**successful** | **bool** | True if successful, false otherwise | [optional] +**async_job_id** | **string** | When creating a job, an Async Job ID is returned. Use the GetAsyncJobStatus API to check on the status of this job using the AsyncJobID and get the result when it finishes | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/ConvertDocumentJobStatusResult.md b/docs/Model/ConvertDocumentJobStatusResult.md new file mode 100644 index 0000000..12bcbac --- /dev/null +++ b/docs/Model/ConvertDocumentJobStatusResult.md @@ -0,0 +1,14 @@ +# ConvertDocumentJobStatusResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**successful** | **bool** | Tru eif the operation to check the status of the job was successful, false otherwise | [optional] +**async_job_status** | **string** | Returns the job status of the Async Job, if applicable. Possible states are STARTED and COMPLETED | [optional] +**async_job_id** | **string** | When the job exceeds 25 pages, an Async Job ID is returned. Use the CheckPdfOcrJobStatus API to check on the status of this job using the AsyncJobID and get the result when it finishes | [optional] +**output_file_result** | **string** | Output file result (if applicable) | [optional] +**error_message** | **string** | Error message (if any) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/EditPdfBatchJobCreateResult.md b/docs/Model/EditPdfBatchJobCreateResult.md new file mode 100644 index 0000000..616247e --- /dev/null +++ b/docs/Model/EditPdfBatchJobCreateResult.md @@ -0,0 +1,11 @@ +# EditPdfBatchJobCreateResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**successful** | **bool** | True if successful, false otherwise | [optional] +**async_job_id** | **string** | When creating a job, an Async Job ID is returned. Use the GetAsyncJobStatus API to check on the status of this job using the AsyncJobID and get the result when it finishes | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/EditPdfJobStatusResult.md b/docs/Model/EditPdfJobStatusResult.md new file mode 100644 index 0000000..dfe6334 --- /dev/null +++ b/docs/Model/EditPdfJobStatusResult.md @@ -0,0 +1,14 @@ +# EditPdfJobStatusResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**successful** | **bool** | Tru eif the operation to check the status of the job was successful, false otherwise | [optional] +**async_job_status** | **string** | Returns the job status of the Async Job, if applicable. Possible states are STARTED and COMPLETED | [optional] +**async_job_id** | **string** | When the job exceeds 25 pages, an Async Job ID is returned. Use the CheckPdfOcrJobStatus API to check on the status of this job using the AsyncJobID and get the result when it finishes | [optional] +**output_file_result** | **string** | Output file result (if applicable) | [optional] +**error_message** | **string** | Error message (if any) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/JobStatusResult.md b/docs/Model/JobStatusResult.md index 50b6e36..ba34de4 100644 --- a/docs/Model/JobStatusResult.md +++ b/docs/Model/JobStatusResult.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**successful** | **bool** | Tru eif the operation to check the status of the job was successful, false otherwise | [optional] +**successful** | **bool** | True if the operation to check the status of the job was successful, false otherwise | [optional] **async_job_status** | **string** | Returns the job status of the Async Job, if applicable. Possible states are STARTED and COMPLETED | [optional] **async_job_id** | **string** | When the job exceeds 25 pages, an Async Job ID is returned. Use the CheckPdfOcrJobStatus API to check on the status of this job using the AsyncJobID and get the result when it finishes | [optional] **pptx_result** | [**\Swagger\Client\Model\SplitPptxPresentationResult**](SplitPptxPresentationResult.md) | PowerPoint split result (if applicable) | [optional] diff --git a/docs/Model/MergeBatchJobCreateResult.md b/docs/Model/MergeBatchJobCreateResult.md new file mode 100644 index 0000000..ff66009 --- /dev/null +++ b/docs/Model/MergeBatchJobCreateResult.md @@ -0,0 +1,11 @@ +# MergeBatchJobCreateResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**successful** | **bool** | True if successful, false otherwise | [optional] +**async_job_id** | **string** | When creating a job, an Async Job ID is returned. Use the GetAsyncJobStatus API to check on the status of this job using the AsyncJobID and get the result when it finishes | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/MergeJobStatusResult.md b/docs/Model/MergeJobStatusResult.md new file mode 100644 index 0000000..70b3dba --- /dev/null +++ b/docs/Model/MergeJobStatusResult.md @@ -0,0 +1,14 @@ +# MergeJobStatusResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**successful** | **bool** | True if the operation to check the status of the job was successful, false otherwise | [optional] +**async_job_status** | **string** | Returns the job status of the Async Job, if applicable. Possible states are STARTED and COMPLETED | [optional] +**async_job_id** | **string** | When the job exceeds 25 pages, an Async Job ID is returned. Use the CheckPdfOcrJobStatus API to check on the status of this job using the AsyncJobID and get the result when it finishes | [optional] +**file_output_result** | **string** | Resulting file output (if applicable) | [optional] +**error_message** | **string** | Error message (if any) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Model/PptxPageLayoutInformation.md b/docs/Model/PptxPageLayoutInformation.md new file mode 100644 index 0000000..4aa347f --- /dev/null +++ b/docs/Model/PptxPageLayoutInformation.md @@ -0,0 +1,13 @@ +# PptxPageLayoutInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**successful** | **bool** | True if successful, false otherwise | [optional] +**orientation** | **string** | Orientation of the presentation, either portrait or landscape | [optional] +**width** | **int** | Width of the presentation in Emu, where 1 inch equals 914400 emu. | [optional] +**height** | **int** | Height of the presentation in Emu, where 1 inch equals 914400 emu. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/Api/CompareDocumentApi.php b/lib/Api/CompareDocumentApi.php index 69aa6fd..fbafd5e 100644 --- a/lib/Api/CompareDocumentApi.php +++ b/lib/Api/CompareDocumentApi.php @@ -94,14 +94,15 @@ public function getConfig() * * @param \SplFileObject $input_file1 First input file to perform the operation on. (required) * @param \SplFileObject $input_file2 Second input file to perform the operation on (more than 2 can be supplied). (required) + * @param bool $autorepair Optional; automatically repair input documents that have errors (default is true) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return string */ - public function compareDocumentDocx($input_file1, $input_file2) + public function compareDocumentDocx($input_file1, $input_file2, $autorepair = null) { - list($response) = $this->compareDocumentDocxWithHttpInfo($input_file1, $input_file2); + list($response) = $this->compareDocumentDocxWithHttpInfo($input_file1, $input_file2, $autorepair); return $response; } @@ -112,15 +113,16 @@ public function compareDocumentDocx($input_file1, $input_file2) * * @param \SplFileObject $input_file1 First input file to perform the operation on. (required) * @param \SplFileObject $input_file2 Second input file to perform the operation on (more than 2 can be supplied). (required) + * @param bool $autorepair Optional; automatically repair input documents that have errors (default is true) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of string, HTTP status code, HTTP response headers (array of strings) */ - public function compareDocumentDocxWithHttpInfo($input_file1, $input_file2) + public function compareDocumentDocxWithHttpInfo($input_file1, $input_file2, $autorepair = null) { $returnType = 'string'; - $request = $this->compareDocumentDocxRequest($input_file1, $input_file2); + $request = $this->compareDocumentDocxRequest($input_file1, $input_file2, $autorepair); try { $options = $this->createHttpClientOption(); @@ -188,13 +190,14 @@ public function compareDocumentDocxWithHttpInfo($input_file1, $input_file2) * * @param \SplFileObject $input_file1 First input file to perform the operation on. (required) * @param \SplFileObject $input_file2 Second input file to perform the operation on (more than 2 can be supplied). (required) + * @param bool $autorepair Optional; automatically repair input documents that have errors (default is true) (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function compareDocumentDocxAsync($input_file1, $input_file2) + public function compareDocumentDocxAsync($input_file1, $input_file2, $autorepair = null) { - return $this->compareDocumentDocxAsyncWithHttpInfo($input_file1, $input_file2) + return $this->compareDocumentDocxAsyncWithHttpInfo($input_file1, $input_file2, $autorepair) ->then( function ($response) { return $response[0]; @@ -209,14 +212,15 @@ function ($response) { * * @param \SplFileObject $input_file1 First input file to perform the operation on. (required) * @param \SplFileObject $input_file2 Second input file to perform the operation on (more than 2 can be supplied). (required) + * @param bool $autorepair Optional; automatically repair input documents that have errors (default is true) (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function compareDocumentDocxAsyncWithHttpInfo($input_file1, $input_file2) + public function compareDocumentDocxAsyncWithHttpInfo($input_file1, $input_file2, $autorepair = null) { $returnType = 'string'; - $request = $this->compareDocumentDocxRequest($input_file1, $input_file2); + $request = $this->compareDocumentDocxRequest($input_file1, $input_file2, $autorepair); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -260,11 +264,12 @@ function ($exception) { * * @param \SplFileObject $input_file1 First input file to perform the operation on. (required) * @param \SplFileObject $input_file2 Second input file to perform the operation on (more than 2 can be supplied). (required) + * @param bool $autorepair Optional; automatically repair input documents that have errors (default is true) (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function compareDocumentDocxRequest($input_file1, $input_file2) + protected function compareDocumentDocxRequest($input_file1, $input_file2, $autorepair = null) { // verify the required parameter 'input_file1' is set if ($input_file1 === null || (is_array($input_file1) && count($input_file1) === 0)) { @@ -286,6 +291,10 @@ protected function compareDocumentDocxRequest($input_file1, $input_file2) $httpBody = ''; $multipart = false; + // header params + if ($autorepair !== null) { + $headerParams['autorepair'] = ObjectSerializer::toHeaderValue($autorepair); + } // form params diff --git a/lib/Api/ConvertDocumentApi.php b/lib/Api/ConvertDocumentApi.php index 1244daf..8585d4f 100644 --- a/lib/Api/ConvertDocumentApi.php +++ b/lib/Api/ConvertDocumentApi.php @@ -828,6 +828,277 @@ protected function convertDocumentAutodetectToPdfRequest($input_file) + // form params + if ($input_file !== null) { + $multipart = true; + $formParams['inputFile'] = \GuzzleHttp\Psr7\Utils::tryFopen(ObjectSerializer::toFormValue($input_file), 'rb'); + } + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/octet-stream'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/octet-stream'], + ['multipart/form-data'] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); + } + } + + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('Apikey'); + if ($apiKey !== null) { + $headers['Apikey'] = $apiKey; + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\Query::build($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation convertDocumentAutodetectToPdfBatchJob + * + * Convert Document to PDF as Batch Job + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Swagger\Client\Model\ConvertDocumentBatchJobCreateResult + */ + public function convertDocumentAutodetectToPdfBatchJob($input_file) + { + list($response) = $this->convertDocumentAutodetectToPdfBatchJobWithHttpInfo($input_file); + return $response; + } + + /** + * Operation convertDocumentAutodetectToPdfBatchJobWithHttpInfo + * + * Convert Document to PDF as Batch Job + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Swagger\Client\Model\ConvertDocumentBatchJobCreateResult, HTTP status code, HTTP response headers (array of strings) + */ + public function convertDocumentAutodetectToPdfBatchJobWithHttpInfo($input_file) + { + $returnType = '\Swagger\Client\Model\ConvertDocumentBatchJobCreateResult'; + $request = $this->convertDocumentAutodetectToPdfBatchJobRequest($input_file); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Swagger\Client\Model\ConvertDocumentBatchJobCreateResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation convertDocumentAutodetectToPdfBatchJobAsync + * + * Convert Document to PDF as Batch Job + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function convertDocumentAutodetectToPdfBatchJobAsync($input_file) + { + return $this->convertDocumentAutodetectToPdfBatchJobAsyncWithHttpInfo($input_file) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation convertDocumentAutodetectToPdfBatchJobAsyncWithHttpInfo + * + * Convert Document to PDF as Batch Job + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function convertDocumentAutodetectToPdfBatchJobAsyncWithHttpInfo($input_file) + { + $returnType = '\Swagger\Client\Model\ConvertDocumentBatchJobCreateResult'; + $request = $this->convertDocumentAutodetectToPdfBatchJobRequest($input_file); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'convertDocumentAutodetectToPdfBatchJob' + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function convertDocumentAutodetectToPdfBatchJobRequest($input_file) + { + // verify the required parameter 'input_file' is set + if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $input_file when calling convertDocumentAutodetectToPdfBatchJob' + ); + } + + $resourcePath = '/convert/autodetect/to/pdf/batch-job'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + // form params if ($input_file !== null) { $multipart = true; @@ -7103,29 +7374,299 @@ protected function convertDocumentEmlToPngRequest($input_file) } /** - * Operation convertDocumentGetFileTypeIcon + * Operation convertDocumentGetAsyncJobStatus * - * Get PNG icon file for the file extension + * Get the status and result of a Convert Document Batch Job * - * @param string $file_extension Required; The file extension to be used for the icon. Limited to 4 AlphaNumeric characters. (required) - * @param int $icon_size Optional; The desired width of the icon, preserving its aspect ratio. (optional) + * @param string $async_job_id async_job_id (required) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return string + * @return \Swagger\Client\Model\ConvertDocumentJobStatusResult */ - public function convertDocumentGetFileTypeIcon($file_extension, $icon_size = null) + public function convertDocumentGetAsyncJobStatus($async_job_id) { - list($response) = $this->convertDocumentGetFileTypeIconWithHttpInfo($file_extension, $icon_size); + list($response) = $this->convertDocumentGetAsyncJobStatusWithHttpInfo($async_job_id); return $response; } /** - * Operation convertDocumentGetFileTypeIconWithHttpInfo + * Operation convertDocumentGetAsyncJobStatusWithHttpInfo * - * Get PNG icon file for the file extension + * Get the status and result of a Convert Document Batch Job * - * @param string $file_extension Required; The file extension to be used for the icon. Limited to 4 AlphaNumeric characters. (required) + * @param string $async_job_id (required) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Swagger\Client\Model\ConvertDocumentJobStatusResult, HTTP status code, HTTP response headers (array of strings) + */ + public function convertDocumentGetAsyncJobStatusWithHttpInfo($async_job_id) + { + $returnType = '\Swagger\Client\Model\ConvertDocumentJobStatusResult'; + $request = $this->convertDocumentGetAsyncJobStatusRequest($async_job_id); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Swagger\Client\Model\ConvertDocumentJobStatusResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation convertDocumentGetAsyncJobStatusAsync + * + * Get the status and result of a Convert Document Batch Job + * + * @param string $async_job_id (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function convertDocumentGetAsyncJobStatusAsync($async_job_id) + { + return $this->convertDocumentGetAsyncJobStatusAsyncWithHttpInfo($async_job_id) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation convertDocumentGetAsyncJobStatusAsyncWithHttpInfo + * + * Get the status and result of a Convert Document Batch Job + * + * @param string $async_job_id (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function convertDocumentGetAsyncJobStatusAsyncWithHttpInfo($async_job_id) + { + $returnType = '\Swagger\Client\Model\ConvertDocumentJobStatusResult'; + $request = $this->convertDocumentGetAsyncJobStatusRequest($async_job_id); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'convertDocumentGetAsyncJobStatus' + * + * @param string $async_job_id (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function convertDocumentGetAsyncJobStatusRequest($async_job_id) + { + // verify the required parameter 'async_job_id' is set + if ($async_job_id === null || (is_array($async_job_id) && count($async_job_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $async_job_id when calling convertDocumentGetAsyncJobStatus' + ); + } + + $resourcePath = '/convert/batch-job/status'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($async_job_id !== null) { + $queryParams['AsyncJobID'] = ObjectSerializer::toQueryValue($async_job_id); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json', 'text/json', 'application/xml', 'text/xml'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json', 'text/json', 'application/xml', 'text/xml'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); + } + } + + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('Apikey'); + if ($apiKey !== null) { + $headers['Apikey'] = $apiKey; + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\Query::build($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation convertDocumentGetFileTypeIcon + * + * Get PNG icon file for the file extension + * + * @param string $file_extension Required; The file extension to be used for the icon. Limited to 4 AlphaNumeric characters. (required) + * @param int $icon_size Optional; The desired width of the icon, preserving its aspect ratio. (optional) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return string + */ + public function convertDocumentGetFileTypeIcon($file_extension, $icon_size = null) + { + list($response) = $this->convertDocumentGetFileTypeIconWithHttpInfo($file_extension, $icon_size); + return $response; + } + + /** + * Operation convertDocumentGetFileTypeIconWithHttpInfo + * + * Get PNG icon file for the file extension + * + * @param string $file_extension Required; The file extension to be used for the icon. Limited to 4 AlphaNumeric characters. (required) * @param int $icon_size Optional; The desired width of the icon, preserving its aspect ratio. (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -14358,7 +14899,281 @@ public function convertDocumentPdfToDocxRasterizeWithHttpInfo($input_file) */ public function convertDocumentPdfToDocxRasterizeAsync($input_file) { - return $this->convertDocumentPdfToDocxRasterizeAsyncWithHttpInfo($input_file) + return $this->convertDocumentPdfToDocxRasterizeAsyncWithHttpInfo($input_file) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation convertDocumentPdfToDocxRasterizeAsyncWithHttpInfo + * + * Convert PDF to Word DOCX Document based on rasterized version of the PDF + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function convertDocumentPdfToDocxRasterizeAsyncWithHttpInfo($input_file) + { + $returnType = 'string'; + $request = $this->convertDocumentPdfToDocxRasterizeRequest($input_file); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'convertDocumentPdfToDocxRasterize' + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function convertDocumentPdfToDocxRasterizeRequest($input_file) + { + // verify the required parameter 'input_file' is set + if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $input_file when calling convertDocumentPdfToDocxRasterize' + ); + } + + $resourcePath = '/convert/pdf/to/docx/rasterize'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // form params + if ($input_file !== null) { + $multipart = true; + $formParams['inputFile'] = \GuzzleHttp\Psr7\Utils::tryFopen(ObjectSerializer::toFormValue($input_file), 'rb'); + } + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/octet-stream'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/octet-stream'], + ['multipart/form-data'] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); + } + } + + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('Apikey'); + if ($apiKey !== null) { + $headers['Apikey'] = $apiKey; + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\Query::build($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation convertDocumentPdfToJpg + * + * Convert PDF to JPG/JPEG image array + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param int $quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75. (optional) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Swagger\Client\Model\PdfToJpgResult + */ + public function convertDocumentPdfToJpg($input_file, $quality = null) + { + list($response) = $this->convertDocumentPdfToJpgWithHttpInfo($input_file, $quality); + return $response; + } + + /** + * Operation convertDocumentPdfToJpgWithHttpInfo + * + * Convert PDF to JPG/JPEG image array + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param int $quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75. (optional) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Swagger\Client\Model\PdfToJpgResult, HTTP status code, HTTP response headers (array of strings) + */ + public function convertDocumentPdfToJpgWithHttpInfo($input_file, $quality = null) + { + $returnType = '\Swagger\Client\Model\PdfToJpgResult'; + $request = $this->convertDocumentPdfToJpgRequest($input_file, $quality); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Swagger\Client\Model\PdfToJpgResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation convertDocumentPdfToJpgAsync + * + * Convert PDF to JPG/JPEG image array + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param int $quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75. (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function convertDocumentPdfToJpgAsync($input_file, $quality = null) + { + return $this->convertDocumentPdfToJpgAsyncWithHttpInfo($input_file, $quality) ->then( function ($response) { return $response[0]; @@ -14367,19 +15182,20 @@ function ($response) { } /** - * Operation convertDocumentPdfToDocxRasterizeAsyncWithHttpInfo + * Operation convertDocumentPdfToJpgAsyncWithHttpInfo * - * Convert PDF to Word DOCX Document based on rasterized version of the PDF + * Convert PDF to JPG/JPEG image array * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param int $quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function convertDocumentPdfToDocxRasterizeAsyncWithHttpInfo($input_file) + public function convertDocumentPdfToJpgAsyncWithHttpInfo($input_file, $quality = null) { - $returnType = 'string'; - $request = $this->convertDocumentPdfToDocxRasterizeRequest($input_file); + $returnType = '\Swagger\Client\Model\PdfToJpgResult'; + $request = $this->convertDocumentPdfToJpgRequest($input_file, $quality); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -14419,29 +15235,34 @@ function ($exception) { } /** - * Create request for operation 'convertDocumentPdfToDocxRasterize' + * Create request for operation 'convertDocumentPdfToJpg' * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param int $quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function convertDocumentPdfToDocxRasterizeRequest($input_file) + protected function convertDocumentPdfToJpgRequest($input_file, $quality = null) { // verify the required parameter 'input_file' is set if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $input_file when calling convertDocumentPdfToDocxRasterize' + 'Missing the required parameter $input_file when calling convertDocumentPdfToJpg' ); } - $resourcePath = '/convert/pdf/to/docx/rasterize'; + $resourcePath = '/convert/pdf/to/jpg'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; + // header params + if ($quality !== null) { + $headerParams['quality'] = ObjectSerializer::toHeaderValue($quality); + } // form params @@ -14454,11 +15275,11 @@ protected function convertDocumentPdfToDocxRasterizeRequest($input_file) if ($multipart) { $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/octet-stream'] + ['application/json', 'text/json', 'application/xml', 'text/xml'] ); } else { $headers = $this->headerSelector->selectHeaders( - ['application/octet-stream'], + ['application/json', 'text/json', 'application/xml', 'text/xml'], ['multipart/form-data'] ); } @@ -14526,39 +15347,39 @@ protected function convertDocumentPdfToDocxRasterizeRequest($input_file) } /** - * Operation convertDocumentPdfToJpg + * Operation convertDocumentPdfToPngArray * - * Convert PDF to JPG/JPEG image array + * Convert PDF to PNG Image Array * * @param \SplFileObject $input_file Input file to perform the operation on. (required) - * @param int $quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75. (optional) + * @param int $dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Swagger\Client\Model\PdfToJpgResult + * @return \Swagger\Client\Model\PdfToPngResult */ - public function convertDocumentPdfToJpg($input_file, $quality = null) + public function convertDocumentPdfToPngArray($input_file, $dpi = null) { - list($response) = $this->convertDocumentPdfToJpgWithHttpInfo($input_file, $quality); + list($response) = $this->convertDocumentPdfToPngArrayWithHttpInfo($input_file, $dpi); return $response; } /** - * Operation convertDocumentPdfToJpgWithHttpInfo + * Operation convertDocumentPdfToPngArrayWithHttpInfo * - * Convert PDF to JPG/JPEG image array + * Convert PDF to PNG Image Array * * @param \SplFileObject $input_file Input file to perform the operation on. (required) - * @param int $quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75. (optional) + * @param int $dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Swagger\Client\Model\PdfToJpgResult, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\PdfToPngResult, HTTP status code, HTTP response headers (array of strings) */ - public function convertDocumentPdfToJpgWithHttpInfo($input_file, $quality = null) + public function convertDocumentPdfToPngArrayWithHttpInfo($input_file, $dpi = null) { - $returnType = '\Swagger\Client\Model\PdfToJpgResult'; - $request = $this->convertDocumentPdfToJpgRequest($input_file, $quality); + $returnType = '\Swagger\Client\Model\PdfToPngResult'; + $request = $this->convertDocumentPdfToPngArrayRequest($input_file, $dpi); try { $options = $this->createHttpClientOption(); @@ -14609,7 +15430,7 @@ public function convertDocumentPdfToJpgWithHttpInfo($input_file, $quality = null case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Swagger\Client\Model\PdfToJpgResult', + '\Swagger\Client\Model\PdfToPngResult', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -14620,19 +15441,19 @@ public function convertDocumentPdfToJpgWithHttpInfo($input_file, $quality = null } /** - * Operation convertDocumentPdfToJpgAsync + * Operation convertDocumentPdfToPngArrayAsync * - * Convert PDF to JPG/JPEG image array + * Convert PDF to PNG Image Array * * @param \SplFileObject $input_file Input file to perform the operation on. (required) - * @param int $quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75. (optional) + * @param int $dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function convertDocumentPdfToJpgAsync($input_file, $quality = null) + public function convertDocumentPdfToPngArrayAsync($input_file, $dpi = null) { - return $this->convertDocumentPdfToJpgAsyncWithHttpInfo($input_file, $quality) + return $this->convertDocumentPdfToPngArrayAsyncWithHttpInfo($input_file, $dpi) ->then( function ($response) { return $response[0]; @@ -14641,20 +15462,20 @@ function ($response) { } /** - * Operation convertDocumentPdfToJpgAsyncWithHttpInfo + * Operation convertDocumentPdfToPngArrayAsyncWithHttpInfo * - * Convert PDF to JPG/JPEG image array + * Convert PDF to PNG Image Array * * @param \SplFileObject $input_file Input file to perform the operation on. (required) - * @param int $quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75. (optional) + * @param int $dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function convertDocumentPdfToJpgAsyncWithHttpInfo($input_file, $quality = null) + public function convertDocumentPdfToPngArrayAsyncWithHttpInfo($input_file, $dpi = null) { - $returnType = '\Swagger\Client\Model\PdfToJpgResult'; - $request = $this->convertDocumentPdfToJpgRequest($input_file, $quality); + $returnType = '\Swagger\Client\Model\PdfToPngResult'; + $request = $this->convertDocumentPdfToPngArrayRequest($input_file, $dpi); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -14694,24 +15515,24 @@ function ($exception) { } /** - * Create request for operation 'convertDocumentPdfToJpg' + * Create request for operation 'convertDocumentPdfToPngArray' * * @param \SplFileObject $input_file Input file to perform the operation on. (required) - * @param int $quality Optional; Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75. Default value is 75. (optional) + * @param int $dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function convertDocumentPdfToJpgRequest($input_file, $quality = null) + protected function convertDocumentPdfToPngArrayRequest($input_file, $dpi = null) { // verify the required parameter 'input_file' is set if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $input_file when calling convertDocumentPdfToJpg' + 'Missing the required parameter $input_file when calling convertDocumentPdfToPngArray' ); } - $resourcePath = '/convert/pdf/to/jpg'; + $resourcePath = '/convert/pdf/to/png'; $formParams = []; $queryParams = []; $headerParams = []; @@ -14719,8 +15540,8 @@ protected function convertDocumentPdfToJpgRequest($input_file, $quality = null) $multipart = false; // header params - if ($quality !== null) { - $headerParams['quality'] = ObjectSerializer::toHeaderValue($quality); + if ($dpi !== null) { + $headerParams['dpi'] = ObjectSerializer::toHeaderValue($dpi); } @@ -14806,37 +15627,39 @@ protected function convertDocumentPdfToJpgRequest($input_file, $quality = null) } /** - * Operation convertDocumentPdfToPngArray + * Operation convertDocumentPdfToPngArrayDirect * - * Convert PDF to PNG Image Array + * Convert PDF to PNG Image Array (Direct) * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param int $dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Swagger\Client\Model\PdfToPngResult + * @return \Swagger\Client\Model\PdfToPngDirectResult */ - public function convertDocumentPdfToPngArray($input_file) + public function convertDocumentPdfToPngArrayDirect($input_file, $dpi = null) { - list($response) = $this->convertDocumentPdfToPngArrayWithHttpInfo($input_file); + list($response) = $this->convertDocumentPdfToPngArrayDirectWithHttpInfo($input_file, $dpi); return $response; } /** - * Operation convertDocumentPdfToPngArrayWithHttpInfo + * Operation convertDocumentPdfToPngArrayDirectWithHttpInfo * - * Convert PDF to PNG Image Array + * Convert PDF to PNG Image Array (Direct) * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param int $dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Swagger\Client\Model\PdfToPngResult, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\PdfToPngDirectResult, HTTP status code, HTTP response headers (array of strings) */ - public function convertDocumentPdfToPngArrayWithHttpInfo($input_file) + public function convertDocumentPdfToPngArrayDirectWithHttpInfo($input_file, $dpi = null) { - $returnType = '\Swagger\Client\Model\PdfToPngResult'; - $request = $this->convertDocumentPdfToPngArrayRequest($input_file); + $returnType = '\Swagger\Client\Model\PdfToPngDirectResult'; + $request = $this->convertDocumentPdfToPngArrayDirectRequest($input_file, $dpi); try { $options = $this->createHttpClientOption(); @@ -14887,7 +15710,7 @@ public function convertDocumentPdfToPngArrayWithHttpInfo($input_file) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Swagger\Client\Model\PdfToPngResult', + '\Swagger\Client\Model\PdfToPngDirectResult', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -14898,18 +15721,19 @@ public function convertDocumentPdfToPngArrayWithHttpInfo($input_file) } /** - * Operation convertDocumentPdfToPngArrayAsync + * Operation convertDocumentPdfToPngArrayDirectAsync * - * Convert PDF to PNG Image Array + * Convert PDF to PNG Image Array (Direct) * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param int $dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function convertDocumentPdfToPngArrayAsync($input_file) + public function convertDocumentPdfToPngArrayDirectAsync($input_file, $dpi = null) { - return $this->convertDocumentPdfToPngArrayAsyncWithHttpInfo($input_file) + return $this->convertDocumentPdfToPngArrayDirectAsyncWithHttpInfo($input_file, $dpi) ->then( function ($response) { return $response[0]; @@ -14918,19 +15742,20 @@ function ($response) { } /** - * Operation convertDocumentPdfToPngArrayAsyncWithHttpInfo + * Operation convertDocumentPdfToPngArrayDirectAsyncWithHttpInfo * - * Convert PDF to PNG Image Array + * Convert PDF to PNG Image Array (Direct) * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param int $dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function convertDocumentPdfToPngArrayAsyncWithHttpInfo($input_file) + public function convertDocumentPdfToPngArrayDirectAsyncWithHttpInfo($input_file, $dpi = null) { - $returnType = '\Swagger\Client\Model\PdfToPngResult'; - $request = $this->convertDocumentPdfToPngArrayRequest($input_file); + $returnType = '\Swagger\Client\Model\PdfToPngDirectResult'; + $request = $this->convertDocumentPdfToPngArrayDirectRequest($input_file, $dpi); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -14970,29 +15795,34 @@ function ($exception) { } /** - * Create request for operation 'convertDocumentPdfToPngArray' + * Create request for operation 'convertDocumentPdfToPngArrayDirect' * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param int $dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function convertDocumentPdfToPngArrayRequest($input_file) + protected function convertDocumentPdfToPngArrayDirectRequest($input_file, $dpi = null) { // verify the required parameter 'input_file' is set if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $input_file when calling convertDocumentPdfToPngArray' + 'Missing the required parameter $input_file when calling convertDocumentPdfToPngArrayDirect' ); } - $resourcePath = '/convert/pdf/to/png'; + $resourcePath = '/convert/pdf/to/png/direct'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; + // header params + if ($dpi !== null) { + $headerParams['dpi'] = ObjectSerializer::toHeaderValue($dpi); + } // form params @@ -15077,37 +15907,37 @@ protected function convertDocumentPdfToPngArrayRequest($input_file) } /** - * Operation convertDocumentPdfToPngArrayDirect + * Operation convertDocumentPdfToPngSingle * - * Convert PDF to PNG Image Array (Direct) + * Convert PDF to Single PNG image * * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Swagger\Client\Model\PdfToPngDirectResult + * @return string */ - public function convertDocumentPdfToPngArrayDirect($input_file) + public function convertDocumentPdfToPngSingle($input_file) { - list($response) = $this->convertDocumentPdfToPngArrayDirectWithHttpInfo($input_file); + list($response) = $this->convertDocumentPdfToPngSingleWithHttpInfo($input_file); return $response; } /** - * Operation convertDocumentPdfToPngArrayDirectWithHttpInfo + * Operation convertDocumentPdfToPngSingleWithHttpInfo * - * Convert PDF to PNG Image Array (Direct) + * Convert PDF to Single PNG image * * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Swagger\Client\Model\PdfToPngDirectResult, HTTP status code, HTTP response headers (array of strings) + * @return array of string, HTTP status code, HTTP response headers (array of strings) */ - public function convertDocumentPdfToPngArrayDirectWithHttpInfo($input_file) + public function convertDocumentPdfToPngSingleWithHttpInfo($input_file) { - $returnType = '\Swagger\Client\Model\PdfToPngDirectResult'; - $request = $this->convertDocumentPdfToPngArrayDirectRequest($input_file); + $returnType = 'string'; + $request = $this->convertDocumentPdfToPngSingleRequest($input_file); try { $options = $this->createHttpClientOption(); @@ -15158,7 +15988,7 @@ public function convertDocumentPdfToPngArrayDirectWithHttpInfo($input_file) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Swagger\Client\Model\PdfToPngDirectResult', + 'string', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -15169,18 +15999,18 @@ public function convertDocumentPdfToPngArrayDirectWithHttpInfo($input_file) } /** - * Operation convertDocumentPdfToPngArrayDirectAsync + * Operation convertDocumentPdfToPngSingleAsync * - * Convert PDF to PNG Image Array (Direct) + * Convert PDF to Single PNG image * * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function convertDocumentPdfToPngArrayDirectAsync($input_file) + public function convertDocumentPdfToPngSingleAsync($input_file) { - return $this->convertDocumentPdfToPngArrayDirectAsyncWithHttpInfo($input_file) + return $this->convertDocumentPdfToPngSingleAsyncWithHttpInfo($input_file) ->then( function ($response) { return $response[0]; @@ -15189,19 +16019,19 @@ function ($response) { } /** - * Operation convertDocumentPdfToPngArrayDirectAsyncWithHttpInfo + * Operation convertDocumentPdfToPngSingleAsyncWithHttpInfo * - * Convert PDF to PNG Image Array (Direct) + * Convert PDF to Single PNG image * * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function convertDocumentPdfToPngArrayDirectAsyncWithHttpInfo($input_file) + public function convertDocumentPdfToPngSingleAsyncWithHttpInfo($input_file) { - $returnType = '\Swagger\Client\Model\PdfToPngDirectResult'; - $request = $this->convertDocumentPdfToPngArrayDirectRequest($input_file); + $returnType = 'string'; + $request = $this->convertDocumentPdfToPngSingleRequest($input_file); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -15241,23 +16071,23 @@ function ($exception) { } /** - * Create request for operation 'convertDocumentPdfToPngArrayDirect' + * Create request for operation 'convertDocumentPdfToPngSingle' * * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function convertDocumentPdfToPngArrayDirectRequest($input_file) + protected function convertDocumentPdfToPngSingleRequest($input_file) { // verify the required parameter 'input_file' is set if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $input_file when calling convertDocumentPdfToPngArrayDirect' + 'Missing the required parameter $input_file when calling convertDocumentPdfToPngSingle' ); } - $resourcePath = '/convert/pdf/to/png/direct'; + $resourcePath = '/convert/pdf/to/png/merge-single'; $formParams = []; $queryParams = []; $headerParams = []; @@ -15276,11 +16106,11 @@ protected function convertDocumentPdfToPngArrayDirectRequest($input_file) if ($multipart) { $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'text/json', 'application/xml', 'text/xml'] + ['application/octet-stream'] ); } else { $headers = $this->headerSelector->selectHeaders( - ['application/json', 'text/json', 'application/xml', 'text/xml'], + ['application/octet-stream'], ['multipart/form-data'] ); } @@ -15348,9 +16178,9 @@ protected function convertDocumentPdfToPngArrayDirectRequest($input_file) } /** - * Operation convertDocumentPdfToPngSingle + * Operation convertDocumentPdfToPptx * - * Convert PDF to Single PNG image + * Convert PDF to PowerPoint PPTX Presentation * * @param \SplFileObject $input_file Input file to perform the operation on. (required) * @@ -15358,16 +16188,16 @@ protected function convertDocumentPdfToPngArrayDirectRequest($input_file) * @throws \InvalidArgumentException * @return string */ - public function convertDocumentPdfToPngSingle($input_file) + public function convertDocumentPdfToPptx($input_file) { - list($response) = $this->convertDocumentPdfToPngSingleWithHttpInfo($input_file); + list($response) = $this->convertDocumentPdfToPptxWithHttpInfo($input_file); return $response; } /** - * Operation convertDocumentPdfToPngSingleWithHttpInfo + * Operation convertDocumentPdfToPptxWithHttpInfo * - * Convert PDF to Single PNG image + * Convert PDF to PowerPoint PPTX Presentation * * @param \SplFileObject $input_file Input file to perform the operation on. (required) * @@ -15375,10 +16205,10 @@ public function convertDocumentPdfToPngSingle($input_file) * @throws \InvalidArgumentException * @return array of string, HTTP status code, HTTP response headers (array of strings) */ - public function convertDocumentPdfToPngSingleWithHttpInfo($input_file) + public function convertDocumentPdfToPptxWithHttpInfo($input_file) { $returnType = 'string'; - $request = $this->convertDocumentPdfToPngSingleRequest($input_file); + $request = $this->convertDocumentPdfToPptxRequest($input_file); try { $options = $this->createHttpClientOption(); @@ -15440,18 +16270,18 @@ public function convertDocumentPdfToPngSingleWithHttpInfo($input_file) } /** - * Operation convertDocumentPdfToPngSingleAsync + * Operation convertDocumentPdfToPptxAsync * - * Convert PDF to Single PNG image + * Convert PDF to PowerPoint PPTX Presentation * * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function convertDocumentPdfToPngSingleAsync($input_file) + public function convertDocumentPdfToPptxAsync($input_file) { - return $this->convertDocumentPdfToPngSingleAsyncWithHttpInfo($input_file) + return $this->convertDocumentPdfToPptxAsyncWithHttpInfo($input_file) ->then( function ($response) { return $response[0]; @@ -15460,19 +16290,19 @@ function ($response) { } /** - * Operation convertDocumentPdfToPngSingleAsyncWithHttpInfo + * Operation convertDocumentPdfToPptxAsyncWithHttpInfo * - * Convert PDF to Single PNG image + * Convert PDF to PowerPoint PPTX Presentation * * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function convertDocumentPdfToPngSingleAsyncWithHttpInfo($input_file) + public function convertDocumentPdfToPptxAsyncWithHttpInfo($input_file) { $returnType = 'string'; - $request = $this->convertDocumentPdfToPngSingleRequest($input_file); + $request = $this->convertDocumentPdfToPptxRequest($input_file); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -15512,23 +16342,23 @@ function ($exception) { } /** - * Create request for operation 'convertDocumentPdfToPngSingle' + * Create request for operation 'convertDocumentPdfToPptx' * * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function convertDocumentPdfToPngSingleRequest($input_file) + protected function convertDocumentPdfToPptxRequest($input_file) { // verify the required parameter 'input_file' is set if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $input_file when calling convertDocumentPdfToPngSingle' + 'Missing the required parameter $input_file when calling convertDocumentPdfToPptx' ); } - $resourcePath = '/convert/pdf/to/png/merge-single'; + $resourcePath = '/convert/pdf/to/pptx'; $formParams = []; $queryParams = []; $headerParams = []; @@ -15619,37 +16449,41 @@ protected function convertDocumentPdfToPngSingleRequest($input_file) } /** - * Operation convertDocumentPdfToPptx + * Operation convertDocumentPdfToTiff * - * Convert PDF to PowerPoint PPTX Presentation + * Convert PDF to TIFF image * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param int $dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. (optional) + * @param bool $lzw_compression Optional; Enables LZW compression to reduce the size of the output image. (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return string */ - public function convertDocumentPdfToPptx($input_file) + public function convertDocumentPdfToTiff($input_file, $dpi = null, $lzw_compression = null) { - list($response) = $this->convertDocumentPdfToPptxWithHttpInfo($input_file); + list($response) = $this->convertDocumentPdfToTiffWithHttpInfo($input_file, $dpi, $lzw_compression); return $response; } /** - * Operation convertDocumentPdfToPptxWithHttpInfo + * Operation convertDocumentPdfToTiffWithHttpInfo * - * Convert PDF to PowerPoint PPTX Presentation + * Convert PDF to TIFF image * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param int $dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. (optional) + * @param bool $lzw_compression Optional; Enables LZW compression to reduce the size of the output image. (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of string, HTTP status code, HTTP response headers (array of strings) */ - public function convertDocumentPdfToPptxWithHttpInfo($input_file) + public function convertDocumentPdfToTiffWithHttpInfo($input_file, $dpi = null, $lzw_compression = null) { $returnType = 'string'; - $request = $this->convertDocumentPdfToPptxRequest($input_file); + $request = $this->convertDocumentPdfToTiffRequest($input_file, $dpi, $lzw_compression); try { $options = $this->createHttpClientOption(); @@ -15711,18 +16545,20 @@ public function convertDocumentPdfToPptxWithHttpInfo($input_file) } /** - * Operation convertDocumentPdfToPptxAsync + * Operation convertDocumentPdfToTiffAsync * - * Convert PDF to PowerPoint PPTX Presentation + * Convert PDF to TIFF image * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param int $dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. (optional) + * @param bool $lzw_compression Optional; Enables LZW compression to reduce the size of the output image. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function convertDocumentPdfToPptxAsync($input_file) + public function convertDocumentPdfToTiffAsync($input_file, $dpi = null, $lzw_compression = null) { - return $this->convertDocumentPdfToPptxAsyncWithHttpInfo($input_file) + return $this->convertDocumentPdfToTiffAsyncWithHttpInfo($input_file, $dpi, $lzw_compression) ->then( function ($response) { return $response[0]; @@ -15731,19 +16567,21 @@ function ($response) { } /** - * Operation convertDocumentPdfToPptxAsyncWithHttpInfo + * Operation convertDocumentPdfToTiffAsyncWithHttpInfo * - * Convert PDF to PowerPoint PPTX Presentation + * Convert PDF to TIFF image * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param int $dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. (optional) + * @param bool $lzw_compression Optional; Enables LZW compression to reduce the size of the output image. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function convertDocumentPdfToPptxAsyncWithHttpInfo($input_file) + public function convertDocumentPdfToTiffAsyncWithHttpInfo($input_file, $dpi = null, $lzw_compression = null) { $returnType = 'string'; - $request = $this->convertDocumentPdfToPptxRequest($input_file); + $request = $this->convertDocumentPdfToTiffRequest($input_file, $dpi, $lzw_compression); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -15783,29 +16621,39 @@ function ($exception) { } /** - * Create request for operation 'convertDocumentPdfToPptx' + * Create request for operation 'convertDocumentPdfToTiff' * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param int $dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. (optional) + * @param bool $lzw_compression Optional; Enables LZW compression to reduce the size of the output image. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function convertDocumentPdfToPptxRequest($input_file) + protected function convertDocumentPdfToTiffRequest($input_file, $dpi = null, $lzw_compression = null) { // verify the required parameter 'input_file' is set if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $input_file when calling convertDocumentPdfToPptx' + 'Missing the required parameter $input_file when calling convertDocumentPdfToTiff' ); } - $resourcePath = '/convert/pdf/to/pptx'; + $resourcePath = '/convert/pdf/to/tiff'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; + // header params + if ($dpi !== null) { + $headerParams['dpi'] = ObjectSerializer::toHeaderValue($dpi); + } + // header params + if ($lzw_compression !== null) { + $headerParams['lzwCompression'] = ObjectSerializer::toHeaderValue($lzw_compression); + } // form params @@ -15818,11 +16666,11 @@ protected function convertDocumentPdfToPptxRequest($input_file) if ($multipart) { $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/octet-stream'] + ['application/json', 'text/json', 'application/xml', 'text/xml'] ); } else { $headers = $this->headerSelector->selectHeaders( - ['application/octet-stream'], + ['application/json', 'text/json', 'application/xml', 'text/xml'], ['multipart/form-data'] ); } @@ -17880,14 +18728,15 @@ protected function convertDocumentPptxToPngRequest($input_file) * * Convert PowerPoint PPTX presentation to Legacy PowerPoint PPT (97-03) * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return object + * @return string */ - public function convertDocumentPptxToPpt() + public function convertDocumentPptxToPpt($input_file) { - list($response) = $this->convertDocumentPptxToPptWithHttpInfo(); + list($response) = $this->convertDocumentPptxToPptWithHttpInfo($input_file); return $response; } @@ -17896,15 +18745,16 @@ public function convertDocumentPptxToPpt() * * Convert PowerPoint PPTX presentation to Legacy PowerPoint PPT (97-03) * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of object, HTTP status code, HTTP response headers (array of strings) + * @return array of string, HTTP status code, HTTP response headers (array of strings) */ - public function convertDocumentPptxToPptWithHttpInfo() + public function convertDocumentPptxToPptWithHttpInfo($input_file) { - $returnType = 'object'; - $request = $this->convertDocumentPptxToPptRequest(); + $returnType = 'string'; + $request = $this->convertDocumentPptxToPptRequest($input_file); try { $options = $this->createHttpClientOption(); @@ -17955,7 +18805,7 @@ public function convertDocumentPptxToPptWithHttpInfo() case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - 'object', + 'string', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -17970,13 +18820,14 @@ public function convertDocumentPptxToPptWithHttpInfo() * * Convert PowerPoint PPTX presentation to Legacy PowerPoint PPT (97-03) * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function convertDocumentPptxToPptAsync() + public function convertDocumentPptxToPptAsync($input_file) { - return $this->convertDocumentPptxToPptAsyncWithHttpInfo() + return $this->convertDocumentPptxToPptAsyncWithHttpInfo($input_file) ->then( function ($response) { return $response[0]; @@ -17989,14 +18840,15 @@ function ($response) { * * Convert PowerPoint PPTX presentation to Legacy PowerPoint PPT (97-03) * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function convertDocumentPptxToPptAsyncWithHttpInfo() + public function convertDocumentPptxToPptAsyncWithHttpInfo($input_file) { - $returnType = 'object'; - $request = $this->convertDocumentPptxToPptRequest(); + $returnType = 'string'; + $request = $this->convertDocumentPptxToPptRequest($input_file); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -18038,12 +18890,19 @@ function ($exception) { /** * Create request for operation 'convertDocumentPptxToPpt' * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function convertDocumentPptxToPptRequest() + protected function convertDocumentPptxToPptRequest($input_file) { + // verify the required parameter 'input_file' is set + if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $input_file when calling convertDocumentPptxToPpt' + ); + } $resourcePath = '/convert/pptx/to/ppt'; $formParams = []; @@ -18054,6 +18913,11 @@ protected function convertDocumentPptxToPptRequest() + // form params + if ($input_file !== null) { + $multipart = true; + $formParams['inputFile'] = \GuzzleHttp\Psr7\Utils::tryFopen(ObjectSerializer::toFormValue($input_file), 'rb'); + } // body params $_tempBody = null; @@ -18064,7 +18928,7 @@ protected function convertDocumentPptxToPptRequest() } else { $headers = $this->headerSelector->selectHeaders( ['application/octet-stream'], - [] + ['multipart/form-data'] ); } @@ -21067,11 +21931,11 @@ protected function convertDocumentXlsxToCsvRequest($input_file, $output_encoding if ($multipart) { $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/octet-stream'] + ['application/json', 'text/json', 'application/xml', 'text/xml'] ); } else { $headers = $this->headerSelector->selectHeaders( - ['application/octet-stream'], + ['application/json', 'text/json', 'application/xml', 'text/xml'], ['multipart/form-data'] ); } diff --git a/lib/Api/ConvertImageApi.php b/lib/Api/ConvertImageApi.php index 952db95..553f6e8 100644 --- a/lib/Api/ConvertImageApi.php +++ b/lib/Api/ConvertImageApi.php @@ -965,14 +965,15 @@ protected function convertImageImageSetDPIRequest($dpi, $input_file) * @param string $format1 Input file format as a 3+ letter file extension. You can also provide UNKNOWN for unknown file formats. Supported formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV (required) * @param string $format2 Output (convert to this format) file format as a 3+ letter file extension. Supported formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV (required) * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param int $dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Swagger\Client\Model\MultipageImageFormatConversionResult */ - public function convertImageMultipageImageFormatConvert($format1, $format2, $input_file) + public function convertImageMultipageImageFormatConvert($format1, $format2, $input_file, $dpi = null) { - list($response) = $this->convertImageMultipageImageFormatConvertWithHttpInfo($format1, $format2, $input_file); + list($response) = $this->convertImageMultipageImageFormatConvertWithHttpInfo($format1, $format2, $input_file, $dpi); return $response; } @@ -984,15 +985,16 @@ public function convertImageMultipageImageFormatConvert($format1, $format2, $inp * @param string $format1 Input file format as a 3+ letter file extension. You can also provide UNKNOWN for unknown file formats. Supported formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV (required) * @param string $format2 Output (convert to this format) file format as a 3+ letter file extension. Supported formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV (required) * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param int $dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Swagger\Client\Model\MultipageImageFormatConversionResult, HTTP status code, HTTP response headers (array of strings) */ - public function convertImageMultipageImageFormatConvertWithHttpInfo($format1, $format2, $input_file) + public function convertImageMultipageImageFormatConvertWithHttpInfo($format1, $format2, $input_file, $dpi = null) { $returnType = '\Swagger\Client\Model\MultipageImageFormatConversionResult'; - $request = $this->convertImageMultipageImageFormatConvertRequest($format1, $format2, $input_file); + $request = $this->convertImageMultipageImageFormatConvertRequest($format1, $format2, $input_file, $dpi); try { $options = $this->createHttpClientOption(); @@ -1061,13 +1063,14 @@ public function convertImageMultipageImageFormatConvertWithHttpInfo($format1, $f * @param string $format1 Input file format as a 3+ letter file extension. You can also provide UNKNOWN for unknown file formats. Supported formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV (required) * @param string $format2 Output (convert to this format) file format as a 3+ letter file extension. Supported formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV (required) * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param int $dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function convertImageMultipageImageFormatConvertAsync($format1, $format2, $input_file) + public function convertImageMultipageImageFormatConvertAsync($format1, $format2, $input_file, $dpi = null) { - return $this->convertImageMultipageImageFormatConvertAsyncWithHttpInfo($format1, $format2, $input_file) + return $this->convertImageMultipageImageFormatConvertAsyncWithHttpInfo($format1, $format2, $input_file, $dpi) ->then( function ($response) { return $response[0]; @@ -1083,14 +1086,15 @@ function ($response) { * @param string $format1 Input file format as a 3+ letter file extension. You can also provide UNKNOWN for unknown file formats. Supported formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV (required) * @param string $format2 Output (convert to this format) file format as a 3+ letter file extension. Supported formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV (required) * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param int $dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function convertImageMultipageImageFormatConvertAsyncWithHttpInfo($format1, $format2, $input_file) + public function convertImageMultipageImageFormatConvertAsyncWithHttpInfo($format1, $format2, $input_file, $dpi = null) { $returnType = '\Swagger\Client\Model\MultipageImageFormatConversionResult'; - $request = $this->convertImageMultipageImageFormatConvertRequest($format1, $format2, $input_file); + $request = $this->convertImageMultipageImageFormatConvertRequest($format1, $format2, $input_file, $dpi); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1135,11 +1139,12 @@ function ($exception) { * @param string $format1 Input file format as a 3+ letter file extension. You can also provide UNKNOWN for unknown file formats. Supported formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV (required) * @param string $format2 Output (convert to this format) file format as a 3+ letter file extension. Supported formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV (required) * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param int $dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function convertImageMultipageImageFormatConvertRequest($format1, $format2, $input_file) + protected function convertImageMultipageImageFormatConvertRequest($format1, $format2, $input_file, $dpi = null) { // verify the required parameter 'format1' is set if ($format1 === null || (is_array($format1) && count($format1) === 0)) { @@ -1167,6 +1172,10 @@ protected function convertImageMultipageImageFormatConvertRequest($format1, $for $httpBody = ''; $multipart = false; + // header params + if ($dpi !== null) { + $headerParams['dpi'] = ObjectSerializer::toHeaderValue($dpi); + } // path params if ($format1 !== null) { diff --git a/lib/Api/EditDocumentApi.php b/lib/Api/EditDocumentApi.php index e44f3ee..8a908c0 100644 --- a/lib/Api/EditDocumentApi.php +++ b/lib/Api/EditDocumentApi.php @@ -364,14 +364,15 @@ protected function editDocumentBeginEditingRequest($input_file) * Accept all tracked changes, revisions in a Word DOCX document * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param bool $autorepair Optional; automatically repair input documents that have errors (default is true) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return string */ - public function editDocumentDocxAcceptAllTrackChanges($input_file) + public function editDocumentDocxAcceptAllTrackChanges($input_file, $autorepair = null) { - list($response) = $this->editDocumentDocxAcceptAllTrackChangesWithHttpInfo($input_file); + list($response) = $this->editDocumentDocxAcceptAllTrackChangesWithHttpInfo($input_file, $autorepair); return $response; } @@ -381,15 +382,16 @@ public function editDocumentDocxAcceptAllTrackChanges($input_file) * Accept all tracked changes, revisions in a Word DOCX document * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param bool $autorepair Optional; automatically repair input documents that have errors (default is true) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of string, HTTP status code, HTTP response headers (array of strings) */ - public function editDocumentDocxAcceptAllTrackChangesWithHttpInfo($input_file) + public function editDocumentDocxAcceptAllTrackChangesWithHttpInfo($input_file, $autorepair = null) { $returnType = 'string'; - $request = $this->editDocumentDocxAcceptAllTrackChangesRequest($input_file); + $request = $this->editDocumentDocxAcceptAllTrackChangesRequest($input_file, $autorepair); try { $options = $this->createHttpClientOption(); @@ -456,13 +458,14 @@ public function editDocumentDocxAcceptAllTrackChangesWithHttpInfo($input_file) * Accept all tracked changes, revisions in a Word DOCX document * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param bool $autorepair Optional; automatically repair input documents that have errors (default is true) (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function editDocumentDocxAcceptAllTrackChangesAsync($input_file) + public function editDocumentDocxAcceptAllTrackChangesAsync($input_file, $autorepair = null) { - return $this->editDocumentDocxAcceptAllTrackChangesAsyncWithHttpInfo($input_file) + return $this->editDocumentDocxAcceptAllTrackChangesAsyncWithHttpInfo($input_file, $autorepair) ->then( function ($response) { return $response[0]; @@ -476,14 +479,15 @@ function ($response) { * Accept all tracked changes, revisions in a Word DOCX document * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param bool $autorepair Optional; automatically repair input documents that have errors (default is true) (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function editDocumentDocxAcceptAllTrackChangesAsyncWithHttpInfo($input_file) + public function editDocumentDocxAcceptAllTrackChangesAsyncWithHttpInfo($input_file, $autorepair = null) { $returnType = 'string'; - $request = $this->editDocumentDocxAcceptAllTrackChangesRequest($input_file); + $request = $this->editDocumentDocxAcceptAllTrackChangesRequest($input_file, $autorepair); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -526,11 +530,12 @@ function ($exception) { * Create request for operation 'editDocumentDocxAcceptAllTrackChanges' * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param bool $autorepair Optional; automatically repair input documents that have errors (default is true) (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function editDocumentDocxAcceptAllTrackChangesRequest($input_file) + protected function editDocumentDocxAcceptAllTrackChangesRequest($input_file, $autorepair = null) { // verify the required parameter 'input_file' is set if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { @@ -546,6 +551,10 @@ protected function editDocumentDocxAcceptAllTrackChangesRequest($input_file) $httpBody = ''; $multipart = false; + // header params + if ($autorepair !== null) { + $headerParams['autorepair'] = ObjectSerializer::toHeaderValue($autorepair); + } // form params @@ -12210,6 +12219,304 @@ protected function editDocumentPptxDeleteSlidesRequest($req_config) ); } + /** + * Operation editDocumentPptxEditSizeAndOrientation + * + * Set the size and/or orientation of a PowerPoint PPTX presentation document + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param string $orientation Optional: The desired slide orientation; can be landscape or portrait. (optional) + * @param int $width Optional: The desired slide width in Emu, where 1 inch equals 914400 emu. (optional) + * @param int $height Optional: The desired slide height in Emu, where 1 inch equals 914400 emu (optional) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return string + */ + public function editDocumentPptxEditSizeAndOrientation($input_file, $orientation = null, $width = null, $height = null) + { + list($response) = $this->editDocumentPptxEditSizeAndOrientationWithHttpInfo($input_file, $orientation, $width, $height); + return $response; + } + + /** + * Operation editDocumentPptxEditSizeAndOrientationWithHttpInfo + * + * Set the size and/or orientation of a PowerPoint PPTX presentation document + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param string $orientation Optional: The desired slide orientation; can be landscape or portrait. (optional) + * @param int $width Optional: The desired slide width in Emu, where 1 inch equals 914400 emu. (optional) + * @param int $height Optional: The desired slide height in Emu, where 1 inch equals 914400 emu (optional) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of string, HTTP status code, HTTP response headers (array of strings) + */ + public function editDocumentPptxEditSizeAndOrientationWithHttpInfo($input_file, $orientation = null, $width = null, $height = null) + { + $returnType = 'string'; + $request = $this->editDocumentPptxEditSizeAndOrientationRequest($input_file, $orientation, $width, $height); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'string', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation editDocumentPptxEditSizeAndOrientationAsync + * + * Set the size and/or orientation of a PowerPoint PPTX presentation document + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param string $orientation Optional: The desired slide orientation; can be landscape or portrait. (optional) + * @param int $width Optional: The desired slide width in Emu, where 1 inch equals 914400 emu. (optional) + * @param int $height Optional: The desired slide height in Emu, where 1 inch equals 914400 emu (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function editDocumentPptxEditSizeAndOrientationAsync($input_file, $orientation = null, $width = null, $height = null) + { + return $this->editDocumentPptxEditSizeAndOrientationAsyncWithHttpInfo($input_file, $orientation, $width, $height) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation editDocumentPptxEditSizeAndOrientationAsyncWithHttpInfo + * + * Set the size and/or orientation of a PowerPoint PPTX presentation document + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param string $orientation Optional: The desired slide orientation; can be landscape or portrait. (optional) + * @param int $width Optional: The desired slide width in Emu, where 1 inch equals 914400 emu. (optional) + * @param int $height Optional: The desired slide height in Emu, where 1 inch equals 914400 emu (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function editDocumentPptxEditSizeAndOrientationAsyncWithHttpInfo($input_file, $orientation = null, $width = null, $height = null) + { + $returnType = 'string'; + $request = $this->editDocumentPptxEditSizeAndOrientationRequest($input_file, $orientation, $width, $height); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'editDocumentPptxEditSizeAndOrientation' + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param string $orientation Optional: The desired slide orientation; can be landscape or portrait. (optional) + * @param int $width Optional: The desired slide width in Emu, where 1 inch equals 914400 emu. (optional) + * @param int $height Optional: The desired slide height in Emu, where 1 inch equals 914400 emu (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function editDocumentPptxEditSizeAndOrientationRequest($input_file, $orientation = null, $width = null, $height = null) + { + // verify the required parameter 'input_file' is set + if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $input_file when calling editDocumentPptxEditSizeAndOrientation' + ); + } + + $resourcePath = '/convert/edit/pptx/set-size-and-orientation'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // header params + if ($orientation !== null) { + $headerParams['orientation'] = ObjectSerializer::toHeaderValue($orientation); + } + // header params + if ($width !== null) { + $headerParams['width'] = ObjectSerializer::toHeaderValue($width); + } + // header params + if ($height !== null) { + $headerParams['height'] = ObjectSerializer::toHeaderValue($height); + } + + + // form params + if ($input_file !== null) { + $multipart = true; + $formParams['inputFile'] = \GuzzleHttp\Psr7\Utils::tryFopen(ObjectSerializer::toFormValue($input_file), 'rb'); + } + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json', 'text/json', 'application/xml', 'text/xml'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json', 'text/json', 'application/xml', 'text/xml'], + ['multipart/form-data'] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); + } + } + + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('Apikey'); + if ($apiKey !== null) { + $headers['Apikey'] = $apiKey; + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\Query::build($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + /** * Operation editDocumentPptxGetMacroInformation * @@ -12400,6 +12707,277 @@ protected function editDocumentPptxGetMacroInformationRequest($input_file) + // form params + if ($input_file !== null) { + $multipart = true; + $formParams['inputFile'] = \GuzzleHttp\Psr7\Utils::tryFopen(ObjectSerializer::toFormValue($input_file), 'rb'); + } + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json', 'text/json', 'application/xml', 'text/xml'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json', 'text/json', 'application/xml', 'text/xml'], + ['multipart/form-data'] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); + } + } + + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('Apikey'); + if ($apiKey !== null) { + $headers['Apikey'] = $apiKey; + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\Query::build($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation editDocumentPptxGetSizeAndOrientation + * + * Get the page layout information, including size and orientation of a PowerPoint PPTX presentation document + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Swagger\Client\Model\PptxPageLayoutInformation + */ + public function editDocumentPptxGetSizeAndOrientation($input_file) + { + list($response) = $this->editDocumentPptxGetSizeAndOrientationWithHttpInfo($input_file); + return $response; + } + + /** + * Operation editDocumentPptxGetSizeAndOrientationWithHttpInfo + * + * Get the page layout information, including size and orientation of a PowerPoint PPTX presentation document + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Swagger\Client\Model\PptxPageLayoutInformation, HTTP status code, HTTP response headers (array of strings) + */ + public function editDocumentPptxGetSizeAndOrientationWithHttpInfo($input_file) + { + $returnType = '\Swagger\Client\Model\PptxPageLayoutInformation'; + $request = $this->editDocumentPptxGetSizeAndOrientationRequest($input_file); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Swagger\Client\Model\PptxPageLayoutInformation', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation editDocumentPptxGetSizeAndOrientationAsync + * + * Get the page layout information, including size and orientation of a PowerPoint PPTX presentation document + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function editDocumentPptxGetSizeAndOrientationAsync($input_file) + { + return $this->editDocumentPptxGetSizeAndOrientationAsyncWithHttpInfo($input_file) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation editDocumentPptxGetSizeAndOrientationAsyncWithHttpInfo + * + * Get the page layout information, including size and orientation of a PowerPoint PPTX presentation document + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function editDocumentPptxGetSizeAndOrientationAsyncWithHttpInfo($input_file) + { + $returnType = '\Swagger\Client\Model\PptxPageLayoutInformation'; + $request = $this->editDocumentPptxGetSizeAndOrientationRequest($input_file); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'editDocumentPptxGetSizeAndOrientation' + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function editDocumentPptxGetSizeAndOrientationRequest($input_file) + { + // verify the required parameter 'input_file' is set + if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $input_file when calling editDocumentPptxGetSizeAndOrientation' + ); + } + + $resourcePath = '/convert/edit/pptx/get-size-and-orientation'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + // form params if ($input_file !== null) { $multipart = true; diff --git a/lib/Api/EditPdfApi.php b/lib/Api/EditPdfApi.php index 70f2a4e..60505b1 100644 --- a/lib/Api/EditPdfApi.php +++ b/lib/Api/EditPdfApi.php @@ -1224,43 +1224,41 @@ protected function editPdfDeletePagesRequest($input_file, $page_start, $page_end } /** - * Operation editPdfEncrypt + * Operation editPdfDeletePagesBatchJob * - * Encrypt and password-protect a PDF + * Remove, delete pages from a PDF document as Batch Job * * @param \SplFileObject $input_file Input file to perform the operation on. (required) - * @param string $user_password Password of a user (reader) of the PDF file (optional) - * @param string $owner_password Password of a owner (creator/editor) of the PDF file (optional) - * @param string $encryption_key_length Possible values are \"128\" (128-bit RC4 encryption) and \"256\" (256-bit AES encryption). Default is 256. (optional) + * @param int $page_start Page number (1 based) to start deleting pages from (inclusive). (required) + * @param int $page_end Page number (1 based) to stop deleting pages from (inclusive). (required) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return string + * @return \Swagger\Client\Model\EditPdfBatchJobCreateResult */ - public function editPdfEncrypt($input_file, $user_password = null, $owner_password = null, $encryption_key_length = null) + public function editPdfDeletePagesBatchJob($input_file, $page_start, $page_end) { - list($response) = $this->editPdfEncryptWithHttpInfo($input_file, $user_password, $owner_password, $encryption_key_length); + list($response) = $this->editPdfDeletePagesBatchJobWithHttpInfo($input_file, $page_start, $page_end); return $response; } /** - * Operation editPdfEncryptWithHttpInfo + * Operation editPdfDeletePagesBatchJobWithHttpInfo * - * Encrypt and password-protect a PDF + * Remove, delete pages from a PDF document as Batch Job * * @param \SplFileObject $input_file Input file to perform the operation on. (required) - * @param string $user_password Password of a user (reader) of the PDF file (optional) - * @param string $owner_password Password of a owner (creator/editor) of the PDF file (optional) - * @param string $encryption_key_length Possible values are \"128\" (128-bit RC4 encryption) and \"256\" (256-bit AES encryption). Default is 256. (optional) + * @param int $page_start Page number (1 based) to start deleting pages from (inclusive). (required) + * @param int $page_end Page number (1 based) to stop deleting pages from (inclusive). (required) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of string, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\EditPdfBatchJobCreateResult, HTTP status code, HTTP response headers (array of strings) */ - public function editPdfEncryptWithHttpInfo($input_file, $user_password = null, $owner_password = null, $encryption_key_length = null) + public function editPdfDeletePagesBatchJobWithHttpInfo($input_file, $page_start, $page_end) { - $returnType = 'string'; - $request = $this->editPdfEncryptRequest($input_file, $user_password, $owner_password, $encryption_key_length); + $returnType = '\Swagger\Client\Model\EditPdfBatchJobCreateResult'; + $request = $this->editPdfDeletePagesBatchJobRequest($input_file, $page_start, $page_end); try { $options = $this->createHttpClientOption(); @@ -1311,7 +1309,7 @@ public function editPdfEncryptWithHttpInfo($input_file, $user_password = null, $ case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - 'string', + '\Swagger\Client\Model\EditPdfBatchJobCreateResult', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -1322,21 +1320,20 @@ public function editPdfEncryptWithHttpInfo($input_file, $user_password = null, $ } /** - * Operation editPdfEncryptAsync + * Operation editPdfDeletePagesBatchJobAsync * - * Encrypt and password-protect a PDF + * Remove, delete pages from a PDF document as Batch Job * * @param \SplFileObject $input_file Input file to perform the operation on. (required) - * @param string $user_password Password of a user (reader) of the PDF file (optional) - * @param string $owner_password Password of a owner (creator/editor) of the PDF file (optional) - * @param string $encryption_key_length Possible values are \"128\" (128-bit RC4 encryption) and \"256\" (256-bit AES encryption). Default is 256. (optional) + * @param int $page_start Page number (1 based) to start deleting pages from (inclusive). (required) + * @param int $page_end Page number (1 based) to stop deleting pages from (inclusive). (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function editPdfEncryptAsync($input_file, $user_password = null, $owner_password = null, $encryption_key_length = null) + public function editPdfDeletePagesBatchJobAsync($input_file, $page_start, $page_end) { - return $this->editPdfEncryptAsyncWithHttpInfo($input_file, $user_password, $owner_password, $encryption_key_length) + return $this->editPdfDeletePagesBatchJobAsyncWithHttpInfo($input_file, $page_start, $page_end) ->then( function ($response) { return $response[0]; @@ -1345,22 +1342,21 @@ function ($response) { } /** - * Operation editPdfEncryptAsyncWithHttpInfo + * Operation editPdfDeletePagesBatchJobAsyncWithHttpInfo * - * Encrypt and password-protect a PDF + * Remove, delete pages from a PDF document as Batch Job * * @param \SplFileObject $input_file Input file to perform the operation on. (required) - * @param string $user_password Password of a user (reader) of the PDF file (optional) - * @param string $owner_password Password of a owner (creator/editor) of the PDF file (optional) - * @param string $encryption_key_length Possible values are \"128\" (128-bit RC4 encryption) and \"256\" (256-bit AES encryption). Default is 256. (optional) + * @param int $page_start Page number (1 based) to start deleting pages from (inclusive). (required) + * @param int $page_end Page number (1 based) to stop deleting pages from (inclusive). (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function editPdfEncryptAsyncWithHttpInfo($input_file, $user_password = null, $owner_password = null, $encryption_key_length = null) + public function editPdfDeletePagesBatchJobAsyncWithHttpInfo($input_file, $page_start, $page_end) { - $returnType = 'string'; - $request = $this->editPdfEncryptRequest($input_file, $user_password, $owner_password, $encryption_key_length); + $returnType = '\Swagger\Client\Model\EditPdfBatchJobCreateResult'; + $request = $this->editPdfDeletePagesBatchJobRequest($input_file, $page_start, $page_end); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1400,26 +1396,37 @@ function ($exception) { } /** - * Create request for operation 'editPdfEncrypt' + * Create request for operation 'editPdfDeletePagesBatchJob' * * @param \SplFileObject $input_file Input file to perform the operation on. (required) - * @param string $user_password Password of a user (reader) of the PDF file (optional) - * @param string $owner_password Password of a owner (creator/editor) of the PDF file (optional) - * @param string $encryption_key_length Possible values are \"128\" (128-bit RC4 encryption) and \"256\" (256-bit AES encryption). Default is 256. (optional) + * @param int $page_start Page number (1 based) to start deleting pages from (inclusive). (required) + * @param int $page_end Page number (1 based) to stop deleting pages from (inclusive). (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function editPdfEncryptRequest($input_file, $user_password = null, $owner_password = null, $encryption_key_length = null) + protected function editPdfDeletePagesBatchJobRequest($input_file, $page_start, $page_end) { // verify the required parameter 'input_file' is set if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $input_file when calling editPdfEncrypt' + 'Missing the required parameter $input_file when calling editPdfDeletePagesBatchJob' + ); + } + // verify the required parameter 'page_start' is set + if ($page_start === null || (is_array($page_start) && count($page_start) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $page_start when calling editPdfDeletePagesBatchJob' + ); + } + // verify the required parameter 'page_end' is set + if ($page_end === null || (is_array($page_end) && count($page_end) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $page_end when calling editPdfDeletePagesBatchJob' ); } - $resourcePath = '/convert/edit/pdf/encrypt'; + $resourcePath = '/convert/edit/pdf/pages/delete/batch-job'; $formParams = []; $queryParams = []; $headerParams = []; @@ -1427,16 +1434,12 @@ protected function editPdfEncryptRequest($input_file, $user_password = null, $ow $multipart = false; // header params - if ($user_password !== null) { - $headerParams['userPassword'] = ObjectSerializer::toHeaderValue($user_password); - } - // header params - if ($owner_password !== null) { - $headerParams['ownerPassword'] = ObjectSerializer::toHeaderValue($owner_password); + if ($page_start !== null) { + $headerParams['pageStart'] = ObjectSerializer::toHeaderValue($page_start); } // header params - if ($encryption_key_length !== null) { - $headerParams['encryptionKeyLength'] = ObjectSerializer::toHeaderValue($encryption_key_length); + if ($page_end !== null) { + $headerParams['pageEnd'] = ObjectSerializer::toHeaderValue($page_end); } @@ -1522,37 +1525,43 @@ protected function editPdfEncryptRequest($input_file, $user_password = null, $ow } /** - * Operation editPdfGetAnnotations + * Operation editPdfEncrypt * - * Get PDF annotations, including comments in the document + * Encrypt and password-protect a PDF * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param string $user_password Password of a user (reader) of the PDF file (optional) + * @param string $owner_password Password of a owner (creator/editor) of the PDF file (optional) + * @param string $encryption_key_length Possible values are \"128\" (128-bit RC4 encryption) and \"256\" (256-bit AES encryption). Default is 256. (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Swagger\Client\Model\GetPdfAnnotationsResult + * @return string */ - public function editPdfGetAnnotations($input_file) + public function editPdfEncrypt($input_file, $user_password = null, $owner_password = null, $encryption_key_length = null) { - list($response) = $this->editPdfGetAnnotationsWithHttpInfo($input_file); + list($response) = $this->editPdfEncryptWithHttpInfo($input_file, $user_password, $owner_password, $encryption_key_length); return $response; } /** - * Operation editPdfGetAnnotationsWithHttpInfo + * Operation editPdfEncryptWithHttpInfo * - * Get PDF annotations, including comments in the document + * Encrypt and password-protect a PDF * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param string $user_password Password of a user (reader) of the PDF file (optional) + * @param string $owner_password Password of a owner (creator/editor) of the PDF file (optional) + * @param string $encryption_key_length Possible values are \"128\" (128-bit RC4 encryption) and \"256\" (256-bit AES encryption). Default is 256. (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Swagger\Client\Model\GetPdfAnnotationsResult, HTTP status code, HTTP response headers (array of strings) + * @return array of string, HTTP status code, HTTP response headers (array of strings) */ - public function editPdfGetAnnotationsWithHttpInfo($input_file) + public function editPdfEncryptWithHttpInfo($input_file, $user_password = null, $owner_password = null, $encryption_key_length = null) { - $returnType = '\Swagger\Client\Model\GetPdfAnnotationsResult'; - $request = $this->editPdfGetAnnotationsRequest($input_file); + $returnType = 'string'; + $request = $this->editPdfEncryptRequest($input_file, $user_password, $owner_password, $encryption_key_length); try { $options = $this->createHttpClientOption(); @@ -1603,7 +1612,7 @@ public function editPdfGetAnnotationsWithHttpInfo($input_file) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Swagger\Client\Model\GetPdfAnnotationsResult', + 'string', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -1614,18 +1623,21 @@ public function editPdfGetAnnotationsWithHttpInfo($input_file) } /** - * Operation editPdfGetAnnotationsAsync + * Operation editPdfEncryptAsync * - * Get PDF annotations, including comments in the document + * Encrypt and password-protect a PDF * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param string $user_password Password of a user (reader) of the PDF file (optional) + * @param string $owner_password Password of a owner (creator/editor) of the PDF file (optional) + * @param string $encryption_key_length Possible values are \"128\" (128-bit RC4 encryption) and \"256\" (256-bit AES encryption). Default is 256. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function editPdfGetAnnotationsAsync($input_file) + public function editPdfEncryptAsync($input_file, $user_password = null, $owner_password = null, $encryption_key_length = null) { - return $this->editPdfGetAnnotationsAsyncWithHttpInfo($input_file) + return $this->editPdfEncryptAsyncWithHttpInfo($input_file, $user_password, $owner_password, $encryption_key_length) ->then( function ($response) { return $response[0]; @@ -1634,19 +1646,22 @@ function ($response) { } /** - * Operation editPdfGetAnnotationsAsyncWithHttpInfo + * Operation editPdfEncryptAsyncWithHttpInfo * - * Get PDF annotations, including comments in the document + * Encrypt and password-protect a PDF * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param string $user_password Password of a user (reader) of the PDF file (optional) + * @param string $owner_password Password of a owner (creator/editor) of the PDF file (optional) + * @param string $encryption_key_length Possible values are \"128\" (128-bit RC4 encryption) and \"256\" (256-bit AES encryption). Default is 256. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function editPdfGetAnnotationsAsyncWithHttpInfo($input_file) + public function editPdfEncryptAsyncWithHttpInfo($input_file, $user_password = null, $owner_password = null, $encryption_key_length = null) { - $returnType = '\Swagger\Client\Model\GetPdfAnnotationsResult'; - $request = $this->editPdfGetAnnotationsRequest($input_file); + $returnType = 'string'; + $request = $this->editPdfEncryptRequest($input_file, $user_password, $owner_password, $encryption_key_length); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1686,29 +1701,44 @@ function ($exception) { } /** - * Create request for operation 'editPdfGetAnnotations' + * Create request for operation 'editPdfEncrypt' * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param string $user_password Password of a user (reader) of the PDF file (optional) + * @param string $owner_password Password of a owner (creator/editor) of the PDF file (optional) + * @param string $encryption_key_length Possible values are \"128\" (128-bit RC4 encryption) and \"256\" (256-bit AES encryption). Default is 256. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function editPdfGetAnnotationsRequest($input_file) + protected function editPdfEncryptRequest($input_file, $user_password = null, $owner_password = null, $encryption_key_length = null) { // verify the required parameter 'input_file' is set if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $input_file when calling editPdfGetAnnotations' + 'Missing the required parameter $input_file when calling editPdfEncrypt' ); } - $resourcePath = '/convert/edit/pdf/annotations/list'; + $resourcePath = '/convert/edit/pdf/encrypt'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; + // header params + if ($user_password !== null) { + $headerParams['userPassword'] = ObjectSerializer::toHeaderValue($user_password); + } + // header params + if ($owner_password !== null) { + $headerParams['ownerPassword'] = ObjectSerializer::toHeaderValue($owner_password); + } + // header params + if ($encryption_key_length !== null) { + $headerParams['encryptionKeyLength'] = ObjectSerializer::toHeaderValue($encryption_key_length); + } // form params @@ -1793,37 +1823,37 @@ protected function editPdfGetAnnotationsRequest($input_file) } /** - * Operation editPdfGetFormFields + * Operation editPdfGetAnnotations * - * Gets PDF Form fields and values + * Get PDF annotations, including comments in the document * * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Swagger\Client\Model\PdfFormFields + * @return \Swagger\Client\Model\GetPdfAnnotationsResult */ - public function editPdfGetFormFields($input_file) + public function editPdfGetAnnotations($input_file) { - list($response) = $this->editPdfGetFormFieldsWithHttpInfo($input_file); + list($response) = $this->editPdfGetAnnotationsWithHttpInfo($input_file); return $response; } /** - * Operation editPdfGetFormFieldsWithHttpInfo + * Operation editPdfGetAnnotationsWithHttpInfo * - * Gets PDF Form fields and values + * Get PDF annotations, including comments in the document * * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Swagger\Client\Model\PdfFormFields, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\GetPdfAnnotationsResult, HTTP status code, HTTP response headers (array of strings) */ - public function editPdfGetFormFieldsWithHttpInfo($input_file) + public function editPdfGetAnnotationsWithHttpInfo($input_file) { - $returnType = '\Swagger\Client\Model\PdfFormFields'; - $request = $this->editPdfGetFormFieldsRequest($input_file); + $returnType = '\Swagger\Client\Model\GetPdfAnnotationsResult'; + $request = $this->editPdfGetAnnotationsRequest($input_file); try { $options = $this->createHttpClientOption(); @@ -1874,7 +1904,7 @@ public function editPdfGetFormFieldsWithHttpInfo($input_file) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Swagger\Client\Model\PdfFormFields', + '\Swagger\Client\Model\GetPdfAnnotationsResult', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -1885,18 +1915,18 @@ public function editPdfGetFormFieldsWithHttpInfo($input_file) } /** - * Operation editPdfGetFormFieldsAsync + * Operation editPdfGetAnnotationsAsync * - * Gets PDF Form fields and values + * Get PDF annotations, including comments in the document * * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function editPdfGetFormFieldsAsync($input_file) + public function editPdfGetAnnotationsAsync($input_file) { - return $this->editPdfGetFormFieldsAsyncWithHttpInfo($input_file) + return $this->editPdfGetAnnotationsAsyncWithHttpInfo($input_file) ->then( function ($response) { return $response[0]; @@ -1905,19 +1935,19 @@ function ($response) { } /** - * Operation editPdfGetFormFieldsAsyncWithHttpInfo + * Operation editPdfGetAnnotationsAsyncWithHttpInfo * - * Gets PDF Form fields and values + * Get PDF annotations, including comments in the document * * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function editPdfGetFormFieldsAsyncWithHttpInfo($input_file) + public function editPdfGetAnnotationsAsyncWithHttpInfo($input_file) { - $returnType = '\Swagger\Client\Model\PdfFormFields'; - $request = $this->editPdfGetFormFieldsRequest($input_file); + $returnType = '\Swagger\Client\Model\GetPdfAnnotationsResult'; + $request = $this->editPdfGetAnnotationsRequest($input_file); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1957,23 +1987,23 @@ function ($exception) { } /** - * Create request for operation 'editPdfGetFormFields' + * Create request for operation 'editPdfGetAnnotations' * * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function editPdfGetFormFieldsRequest($input_file) + protected function editPdfGetAnnotationsRequest($input_file) { // verify the required parameter 'input_file' is set if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $input_file when calling editPdfGetFormFields' + 'Missing the required parameter $input_file when calling editPdfGetAnnotations' ); } - $resourcePath = '/convert/edit/pdf/form/get-fields'; + $resourcePath = '/convert/edit/pdf/annotations/list'; $formParams = []; $queryParams = []; $headerParams = []; @@ -2064,37 +2094,37 @@ protected function editPdfGetFormFieldsRequest($input_file) } /** - * Operation editPdfGetMetadata + * Operation editPdfGetAsyncJobStatus * - * Get PDF document metadata + * Get the status and result of a PDF Batch Job * - * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param string $async_job_id async_job_id (required) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Swagger\Client\Model\PdfMetadata + * @return \Swagger\Client\Model\EditPdfJobStatusResult */ - public function editPdfGetMetadata($input_file) + public function editPdfGetAsyncJobStatus($async_job_id) { - list($response) = $this->editPdfGetMetadataWithHttpInfo($input_file); + list($response) = $this->editPdfGetAsyncJobStatusWithHttpInfo($async_job_id); return $response; } /** - * Operation editPdfGetMetadataWithHttpInfo + * Operation editPdfGetAsyncJobStatusWithHttpInfo * - * Get PDF document metadata + * Get the status and result of a PDF Batch Job * - * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param string $async_job_id (required) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Swagger\Client\Model\PdfMetadata, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\EditPdfJobStatusResult, HTTP status code, HTTP response headers (array of strings) */ - public function editPdfGetMetadataWithHttpInfo($input_file) + public function editPdfGetAsyncJobStatusWithHttpInfo($async_job_id) { - $returnType = '\Swagger\Client\Model\PdfMetadata'; - $request = $this->editPdfGetMetadataRequest($input_file); + $returnType = '\Swagger\Client\Model\EditPdfJobStatusResult'; + $request = $this->editPdfGetAsyncJobStatusRequest($async_job_id); try { $options = $this->createHttpClientOption(); @@ -2145,7 +2175,7 @@ public function editPdfGetMetadataWithHttpInfo($input_file) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Swagger\Client\Model\PdfMetadata', + '\Swagger\Client\Model\EditPdfJobStatusResult', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -2156,18 +2186,18 @@ public function editPdfGetMetadataWithHttpInfo($input_file) } /** - * Operation editPdfGetMetadataAsync + * Operation editPdfGetAsyncJobStatusAsync * - * Get PDF document metadata + * Get the status and result of a PDF Batch Job * - * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param string $async_job_id (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function editPdfGetMetadataAsync($input_file) + public function editPdfGetAsyncJobStatusAsync($async_job_id) { - return $this->editPdfGetMetadataAsyncWithHttpInfo($input_file) + return $this->editPdfGetAsyncJobStatusAsyncWithHttpInfo($async_job_id) ->then( function ($response) { return $response[0]; @@ -2176,19 +2206,19 @@ function ($response) { } /** - * Operation editPdfGetMetadataAsyncWithHttpInfo + * Operation editPdfGetAsyncJobStatusAsyncWithHttpInfo * - * Get PDF document metadata + * Get the status and result of a PDF Batch Job * - * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param string $async_job_id (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function editPdfGetMetadataAsyncWithHttpInfo($input_file) + public function editPdfGetAsyncJobStatusAsyncWithHttpInfo($async_job_id) { - $returnType = '\Swagger\Client\Model\PdfMetadata'; - $request = $this->editPdfGetMetadataRequest($input_file); + $returnType = '\Swagger\Client\Model\EditPdfJobStatusResult'; + $request = $this->editPdfGetAsyncJobStatusRequest($async_job_id); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2228,36 +2258,35 @@ function ($exception) { } /** - * Create request for operation 'editPdfGetMetadata' + * Create request for operation 'editPdfGetAsyncJobStatus' * - * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param string $async_job_id (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function editPdfGetMetadataRequest($input_file) + protected function editPdfGetAsyncJobStatusRequest($async_job_id) { - // verify the required parameter 'input_file' is set - if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { + // verify the required parameter 'async_job_id' is set + if ($async_job_id === null || (is_array($async_job_id) && count($async_job_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $input_file when calling editPdfGetMetadata' + 'Missing the required parameter $async_job_id when calling editPdfGetAsyncJobStatus' ); } - $resourcePath = '/convert/edit/pdf/get-metadata'; + $resourcePath = '/convert/edit/pdf/batch-job/status'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; + // query params + if ($async_job_id !== null) { + $queryParams['AsyncJobID'] = ObjectSerializer::toQueryValue($async_job_id); + } - // form params - if ($input_file !== null) { - $multipart = true; - $formParams['inputFile'] = \GuzzleHttp\Psr7\Utils::tryFopen(ObjectSerializer::toFormValue($input_file), 'rb'); - } // body params $_tempBody = null; @@ -2268,7 +2297,7 @@ protected function editPdfGetMetadataRequest($input_file) } else { $headers = $this->headerSelector->selectHeaders( ['application/json', 'text/json', 'application/xml', 'text/xml'], - ['multipart/form-data'] + [] ); } @@ -2327,7 +2356,7 @@ protected function editPdfGetMetadataRequest($input_file) $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( - 'POST', + 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody @@ -2335,39 +2364,1199 @@ protected function editPdfGetMetadataRequest($input_file) } /** - * Operation editPdfGetPdfTextByPages + * Operation editPdfGetFormFields * - * Get text in a PDF document by page + * Gets PDF Form fields and values * * @param \SplFileObject $input_file Input file to perform the operation on. (required) - * @param string $text_formatting_mode Optional; specify how whitespace should be handled when converting the document to text. Possible values are 'preserveWhitespace' which will attempt to preserve whitespace in the document and relative positioning of text within the document, and 'minimizeWhitespace' which will not insert additional spaces into the document in most cases. Default is 'preserveWhitespace'. (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Swagger\Client\Model\PdfTextByPageResult + * @return \Swagger\Client\Model\PdfFormFields */ - public function editPdfGetPdfTextByPages($input_file, $text_formatting_mode = null) + public function editPdfGetFormFields($input_file) { - list($response) = $this->editPdfGetPdfTextByPagesWithHttpInfo($input_file, $text_formatting_mode); + list($response) = $this->editPdfGetFormFieldsWithHttpInfo($input_file); return $response; } /** - * Operation editPdfGetPdfTextByPagesWithHttpInfo + * Operation editPdfGetFormFieldsWithHttpInfo * - * Get text in a PDF document by page + * Gets PDF Form fields and values * * @param \SplFileObject $input_file Input file to perform the operation on. (required) - * @param string $text_formatting_mode Optional; specify how whitespace should be handled when converting the document to text. Possible values are 'preserveWhitespace' which will attempt to preserve whitespace in the document and relative positioning of text within the document, and 'minimizeWhitespace' which will not insert additional spaces into the document in most cases. Default is 'preserveWhitespace'. (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Swagger\Client\Model\PdfTextByPageResult, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\PdfFormFields, HTTP status code, HTTP response headers (array of strings) + */ + public function editPdfGetFormFieldsWithHttpInfo($input_file) + { + $returnType = '\Swagger\Client\Model\PdfFormFields'; + $request = $this->editPdfGetFormFieldsRequest($input_file); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Swagger\Client\Model\PdfFormFields', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation editPdfGetFormFieldsAsync + * + * Gets PDF Form fields and values + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function editPdfGetFormFieldsAsync($input_file) + { + return $this->editPdfGetFormFieldsAsyncWithHttpInfo($input_file) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation editPdfGetFormFieldsAsyncWithHttpInfo + * + * Gets PDF Form fields and values + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function editPdfGetFormFieldsAsyncWithHttpInfo($input_file) + { + $returnType = '\Swagger\Client\Model\PdfFormFields'; + $request = $this->editPdfGetFormFieldsRequest($input_file); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'editPdfGetFormFields' + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function editPdfGetFormFieldsRequest($input_file) + { + // verify the required parameter 'input_file' is set + if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $input_file when calling editPdfGetFormFields' + ); + } + + $resourcePath = '/convert/edit/pdf/form/get-fields'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // form params + if ($input_file !== null) { + $multipart = true; + $formParams['inputFile'] = \GuzzleHttp\Psr7\Utils::tryFopen(ObjectSerializer::toFormValue($input_file), 'rb'); + } + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/octet-stream'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/octet-stream'], + ['multipart/form-data'] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); + } + } + + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('Apikey'); + if ($apiKey !== null) { + $headers['Apikey'] = $apiKey; + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\Query::build($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation editPdfGetMetadata + * + * Get PDF document metadata + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Swagger\Client\Model\PdfMetadata + */ + public function editPdfGetMetadata($input_file) + { + list($response) = $this->editPdfGetMetadataWithHttpInfo($input_file); + return $response; + } + + /** + * Operation editPdfGetMetadataWithHttpInfo + * + * Get PDF document metadata + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Swagger\Client\Model\PdfMetadata, HTTP status code, HTTP response headers (array of strings) + */ + public function editPdfGetMetadataWithHttpInfo($input_file) + { + $returnType = '\Swagger\Client\Model\PdfMetadata'; + $request = $this->editPdfGetMetadataRequest($input_file); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Swagger\Client\Model\PdfMetadata', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation editPdfGetMetadataAsync + * + * Get PDF document metadata + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function editPdfGetMetadataAsync($input_file) + { + return $this->editPdfGetMetadataAsyncWithHttpInfo($input_file) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation editPdfGetMetadataAsyncWithHttpInfo + * + * Get PDF document metadata + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function editPdfGetMetadataAsyncWithHttpInfo($input_file) + { + $returnType = '\Swagger\Client\Model\PdfMetadata'; + $request = $this->editPdfGetMetadataRequest($input_file); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'editPdfGetMetadata' + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function editPdfGetMetadataRequest($input_file) + { + // verify the required parameter 'input_file' is set + if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $input_file when calling editPdfGetMetadata' + ); + } + + $resourcePath = '/convert/edit/pdf/get-metadata'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // form params + if ($input_file !== null) { + $multipart = true; + $formParams['inputFile'] = \GuzzleHttp\Psr7\Utils::tryFopen(ObjectSerializer::toFormValue($input_file), 'rb'); + } + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json', 'text/json', 'application/xml', 'text/xml'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json', 'text/json', 'application/xml', 'text/xml'], + ['multipart/form-data'] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); + } + } + + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('Apikey'); + if ($apiKey !== null) { + $headers['Apikey'] = $apiKey; + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\Query::build($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation editPdfGetPdfTextByPages + * + * Get text in a PDF document by page + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param string $text_formatting_mode Optional; specify how whitespace should be handled when converting the document to text. Possible values are 'preserveWhitespace' which will attempt to preserve whitespace in the document and relative positioning of text within the document, and 'minimizeWhitespace' which will not insert additional spaces into the document in most cases. Default is 'preserveWhitespace'. (optional) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Swagger\Client\Model\PdfTextByPageResult + */ + public function editPdfGetPdfTextByPages($input_file, $text_formatting_mode = null) + { + list($response) = $this->editPdfGetPdfTextByPagesWithHttpInfo($input_file, $text_formatting_mode); + return $response; + } + + /** + * Operation editPdfGetPdfTextByPagesWithHttpInfo + * + * Get text in a PDF document by page + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param string $text_formatting_mode Optional; specify how whitespace should be handled when converting the document to text. Possible values are 'preserveWhitespace' which will attempt to preserve whitespace in the document and relative positioning of text within the document, and 'minimizeWhitespace' which will not insert additional spaces into the document in most cases. Default is 'preserveWhitespace'. (optional) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Swagger\Client\Model\PdfTextByPageResult, HTTP status code, HTTP response headers (array of strings) + */ + public function editPdfGetPdfTextByPagesWithHttpInfo($input_file, $text_formatting_mode = null) + { + $returnType = '\Swagger\Client\Model\PdfTextByPageResult'; + $request = $this->editPdfGetPdfTextByPagesRequest($input_file, $text_formatting_mode); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Swagger\Client\Model\PdfTextByPageResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation editPdfGetPdfTextByPagesAsync + * + * Get text in a PDF document by page + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param string $text_formatting_mode Optional; specify how whitespace should be handled when converting the document to text. Possible values are 'preserveWhitespace' which will attempt to preserve whitespace in the document and relative positioning of text within the document, and 'minimizeWhitespace' which will not insert additional spaces into the document in most cases. Default is 'preserveWhitespace'. (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function editPdfGetPdfTextByPagesAsync($input_file, $text_formatting_mode = null) + { + return $this->editPdfGetPdfTextByPagesAsyncWithHttpInfo($input_file, $text_formatting_mode) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation editPdfGetPdfTextByPagesAsyncWithHttpInfo + * + * Get text in a PDF document by page + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param string $text_formatting_mode Optional; specify how whitespace should be handled when converting the document to text. Possible values are 'preserveWhitespace' which will attempt to preserve whitespace in the document and relative positioning of text within the document, and 'minimizeWhitespace' which will not insert additional spaces into the document in most cases. Default is 'preserveWhitespace'. (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function editPdfGetPdfTextByPagesAsyncWithHttpInfo($input_file, $text_formatting_mode = null) + { + $returnType = '\Swagger\Client\Model\PdfTextByPageResult'; + $request = $this->editPdfGetPdfTextByPagesRequest($input_file, $text_formatting_mode); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'editPdfGetPdfTextByPages' + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param string $text_formatting_mode Optional; specify how whitespace should be handled when converting the document to text. Possible values are 'preserveWhitespace' which will attempt to preserve whitespace in the document and relative positioning of text within the document, and 'minimizeWhitespace' which will not insert additional spaces into the document in most cases. Default is 'preserveWhitespace'. (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function editPdfGetPdfTextByPagesRequest($input_file, $text_formatting_mode = null) + { + // verify the required parameter 'input_file' is set + if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $input_file when calling editPdfGetPdfTextByPages' + ); + } + + $resourcePath = '/convert/edit/pdf/pages/get-text'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // header params + if ($text_formatting_mode !== null) { + $headerParams['textFormattingMode'] = ObjectSerializer::toHeaderValue($text_formatting_mode); + } + + + // form params + if ($input_file !== null) { + $multipart = true; + $formParams['inputFile'] = \GuzzleHttp\Psr7\Utils::tryFopen(ObjectSerializer::toFormValue($input_file), 'rb'); + } + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json', 'text/json', 'application/xml', 'text/xml'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json', 'text/json', 'application/xml', 'text/xml'], + ['multipart/form-data'] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); + } + } + + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('Apikey'); + if ($apiKey !== null) { + $headers['Apikey'] = $apiKey; + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\Query::build($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation editPdfInsertPages + * + * Insert, copy pages from one PDF document into another + * + * @param \SplFileObject $source_file Source PDF file to copy pages from. (required) + * @param \SplFileObject $destination_file Destination PDF file to copy pages into. (required) + * @param int $page_start_source Page number (1 based) to start copying pages from (inclusive) in the Source file. (required) + * @param int $page_end_source Page number (1 based) to stop copying pages pages from (inclusive) in the Source file. (required) + * @param int $page_insert_before_desitnation Page number (1 based) to insert the pages before in the Destination file. (required) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return string + */ + public function editPdfInsertPages($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation) + { + list($response) = $this->editPdfInsertPagesWithHttpInfo($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation); + return $response; + } + + /** + * Operation editPdfInsertPagesWithHttpInfo + * + * Insert, copy pages from one PDF document into another + * + * @param \SplFileObject $source_file Source PDF file to copy pages from. (required) + * @param \SplFileObject $destination_file Destination PDF file to copy pages into. (required) + * @param int $page_start_source Page number (1 based) to start copying pages from (inclusive) in the Source file. (required) + * @param int $page_end_source Page number (1 based) to stop copying pages pages from (inclusive) in the Source file. (required) + * @param int $page_insert_before_desitnation Page number (1 based) to insert the pages before in the Destination file. (required) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of string, HTTP status code, HTTP response headers (array of strings) + */ + public function editPdfInsertPagesWithHttpInfo($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation) + { + $returnType = 'string'; + $request = $this->editPdfInsertPagesRequest($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'string', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation editPdfInsertPagesAsync + * + * Insert, copy pages from one PDF document into another + * + * @param \SplFileObject $source_file Source PDF file to copy pages from. (required) + * @param \SplFileObject $destination_file Destination PDF file to copy pages into. (required) + * @param int $page_start_source Page number (1 based) to start copying pages from (inclusive) in the Source file. (required) + * @param int $page_end_source Page number (1 based) to stop copying pages pages from (inclusive) in the Source file. (required) + * @param int $page_insert_before_desitnation Page number (1 based) to insert the pages before in the Destination file. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function editPdfInsertPagesAsync($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation) + { + return $this->editPdfInsertPagesAsyncWithHttpInfo($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation editPdfInsertPagesAsyncWithHttpInfo + * + * Insert, copy pages from one PDF document into another + * + * @param \SplFileObject $source_file Source PDF file to copy pages from. (required) + * @param \SplFileObject $destination_file Destination PDF file to copy pages into. (required) + * @param int $page_start_source Page number (1 based) to start copying pages from (inclusive) in the Source file. (required) + * @param int $page_end_source Page number (1 based) to stop copying pages pages from (inclusive) in the Source file. (required) + * @param int $page_insert_before_desitnation Page number (1 based) to insert the pages before in the Destination file. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function editPdfInsertPagesAsyncWithHttpInfo($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation) + { + $returnType = 'string'; + $request = $this->editPdfInsertPagesRequest($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'editPdfInsertPages' + * + * @param \SplFileObject $source_file Source PDF file to copy pages from. (required) + * @param \SplFileObject $destination_file Destination PDF file to copy pages into. (required) + * @param int $page_start_source Page number (1 based) to start copying pages from (inclusive) in the Source file. (required) + * @param int $page_end_source Page number (1 based) to stop copying pages pages from (inclusive) in the Source file. (required) + * @param int $page_insert_before_desitnation Page number (1 based) to insert the pages before in the Destination file. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function editPdfInsertPagesRequest($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation) + { + // verify the required parameter 'source_file' is set + if ($source_file === null || (is_array($source_file) && count($source_file) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $source_file when calling editPdfInsertPages' + ); + } + // verify the required parameter 'destination_file' is set + if ($destination_file === null || (is_array($destination_file) && count($destination_file) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $destination_file when calling editPdfInsertPages' + ); + } + // verify the required parameter 'page_start_source' is set + if ($page_start_source === null || (is_array($page_start_source) && count($page_start_source) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $page_start_source when calling editPdfInsertPages' + ); + } + // verify the required parameter 'page_end_source' is set + if ($page_end_source === null || (is_array($page_end_source) && count($page_end_source) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $page_end_source when calling editPdfInsertPages' + ); + } + // verify the required parameter 'page_insert_before_desitnation' is set + if ($page_insert_before_desitnation === null || (is_array($page_insert_before_desitnation) && count($page_insert_before_desitnation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $page_insert_before_desitnation when calling editPdfInsertPages' + ); + } + + $resourcePath = '/convert/edit/pdf/pages/insert'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // header params + if ($page_start_source !== null) { + $headerParams['pageStartSource'] = ObjectSerializer::toHeaderValue($page_start_source); + } + // header params + if ($page_end_source !== null) { + $headerParams['pageEndSource'] = ObjectSerializer::toHeaderValue($page_end_source); + } + // header params + if ($page_insert_before_desitnation !== null) { + $headerParams['pageInsertBeforeDesitnation'] = ObjectSerializer::toHeaderValue($page_insert_before_desitnation); + } + + + // form params + if ($source_file !== null) { + $multipart = true; + $formParams['sourceFile'] = \GuzzleHttp\Psr7\Utils::tryFopen(ObjectSerializer::toFormValue($source_file), 'rb'); + } + // form params + if ($destination_file !== null) { + $multipart = true; + $formParams['destinationFile'] = \GuzzleHttp\Psr7\Utils::tryFopen(ObjectSerializer::toFormValue($destination_file), 'rb'); + } + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/octet-stream'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/octet-stream'], + ['multipart/form-data'] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); + } + } + + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('Apikey'); + if ($apiKey !== null) { + $headers['Apikey'] = $apiKey; + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\Query::build($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation editPdfInsertPagesBatchJob + * + * Insert, copy pages from one PDF document into another as a batch job + * + * @param \SplFileObject $source_file Source PDF file to copy pages from. (required) + * @param \SplFileObject $destination_file Destination PDF file to copy pages into. (required) + * @param int $page_start_source Page number (1 based) to start copying pages from (inclusive) in the Source file. (required) + * @param int $page_end_source Page number (1 based) to stop copying pages pages from (inclusive) in the Source file. (required) + * @param int $page_insert_before_desitnation Page number (1 based) to insert the pages before in the Destination file. (required) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Swagger\Client\Model\EditPdfBatchJobCreateResult + */ + public function editPdfInsertPagesBatchJob($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation) + { + list($response) = $this->editPdfInsertPagesBatchJobWithHttpInfo($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation); + return $response; + } + + /** + * Operation editPdfInsertPagesBatchJobWithHttpInfo + * + * Insert, copy pages from one PDF document into another as a batch job + * + * @param \SplFileObject $source_file Source PDF file to copy pages from. (required) + * @param \SplFileObject $destination_file Destination PDF file to copy pages into. (required) + * @param int $page_start_source Page number (1 based) to start copying pages from (inclusive) in the Source file. (required) + * @param int $page_end_source Page number (1 based) to stop copying pages pages from (inclusive) in the Source file. (required) + * @param int $page_insert_before_desitnation Page number (1 based) to insert the pages before in the Destination file. (required) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Swagger\Client\Model\EditPdfBatchJobCreateResult, HTTP status code, HTTP response headers (array of strings) */ - public function editPdfGetPdfTextByPagesWithHttpInfo($input_file, $text_formatting_mode = null) + public function editPdfInsertPagesBatchJobWithHttpInfo($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation) { - $returnType = '\Swagger\Client\Model\PdfTextByPageResult'; - $request = $this->editPdfGetPdfTextByPagesRequest($input_file, $text_formatting_mode); + $returnType = '\Swagger\Client\Model\EditPdfBatchJobCreateResult'; + $request = $this->editPdfInsertPagesBatchJobRequest($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation); try { $options = $this->createHttpClientOption(); @@ -2418,7 +3607,7 @@ public function editPdfGetPdfTextByPagesWithHttpInfo($input_file, $text_formatti case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Swagger\Client\Model\PdfTextByPageResult', + '\Swagger\Client\Model\EditPdfBatchJobCreateResult', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -2429,19 +3618,22 @@ public function editPdfGetPdfTextByPagesWithHttpInfo($input_file, $text_formatti } /** - * Operation editPdfGetPdfTextByPagesAsync + * Operation editPdfInsertPagesBatchJobAsync * - * Get text in a PDF document by page + * Insert, copy pages from one PDF document into another as a batch job * - * @param \SplFileObject $input_file Input file to perform the operation on. (required) - * @param string $text_formatting_mode Optional; specify how whitespace should be handled when converting the document to text. Possible values are 'preserveWhitespace' which will attempt to preserve whitespace in the document and relative positioning of text within the document, and 'minimizeWhitespace' which will not insert additional spaces into the document in most cases. Default is 'preserveWhitespace'. (optional) + * @param \SplFileObject $source_file Source PDF file to copy pages from. (required) + * @param \SplFileObject $destination_file Destination PDF file to copy pages into. (required) + * @param int $page_start_source Page number (1 based) to start copying pages from (inclusive) in the Source file. (required) + * @param int $page_end_source Page number (1 based) to stop copying pages pages from (inclusive) in the Source file. (required) + * @param int $page_insert_before_desitnation Page number (1 based) to insert the pages before in the Destination file. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function editPdfGetPdfTextByPagesAsync($input_file, $text_formatting_mode = null) + public function editPdfInsertPagesBatchJobAsync($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation) { - return $this->editPdfGetPdfTextByPagesAsyncWithHttpInfo($input_file, $text_formatting_mode) + return $this->editPdfInsertPagesBatchJobAsyncWithHttpInfo($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation) ->then( function ($response) { return $response[0]; @@ -2450,20 +3642,23 @@ function ($response) { } /** - * Operation editPdfGetPdfTextByPagesAsyncWithHttpInfo + * Operation editPdfInsertPagesBatchJobAsyncWithHttpInfo * - * Get text in a PDF document by page + * Insert, copy pages from one PDF document into another as a batch job * - * @param \SplFileObject $input_file Input file to perform the operation on. (required) - * @param string $text_formatting_mode Optional; specify how whitespace should be handled when converting the document to text. Possible values are 'preserveWhitespace' which will attempt to preserve whitespace in the document and relative positioning of text within the document, and 'minimizeWhitespace' which will not insert additional spaces into the document in most cases. Default is 'preserveWhitespace'. (optional) + * @param \SplFileObject $source_file Source PDF file to copy pages from. (required) + * @param \SplFileObject $destination_file Destination PDF file to copy pages into. (required) + * @param int $page_start_source Page number (1 based) to start copying pages from (inclusive) in the Source file. (required) + * @param int $page_end_source Page number (1 based) to stop copying pages pages from (inclusive) in the Source file. (required) + * @param int $page_insert_before_desitnation Page number (1 based) to insert the pages before in the Destination file. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function editPdfGetPdfTextByPagesAsyncWithHttpInfo($input_file, $text_formatting_mode = null) + public function editPdfInsertPagesBatchJobAsyncWithHttpInfo($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation) { - $returnType = '\Swagger\Client\Model\PdfTextByPageResult'; - $request = $this->editPdfGetPdfTextByPagesRequest($input_file, $text_formatting_mode); + $returnType = '\Swagger\Client\Model\EditPdfBatchJobCreateResult'; + $request = $this->editPdfInsertPagesBatchJobRequest($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2503,24 +3698,51 @@ function ($exception) { } /** - * Create request for operation 'editPdfGetPdfTextByPages' + * Create request for operation 'editPdfInsertPagesBatchJob' * - * @param \SplFileObject $input_file Input file to perform the operation on. (required) - * @param string $text_formatting_mode Optional; specify how whitespace should be handled when converting the document to text. Possible values are 'preserveWhitespace' which will attempt to preserve whitespace in the document and relative positioning of text within the document, and 'minimizeWhitespace' which will not insert additional spaces into the document in most cases. Default is 'preserveWhitespace'. (optional) + * @param \SplFileObject $source_file Source PDF file to copy pages from. (required) + * @param \SplFileObject $destination_file Destination PDF file to copy pages into. (required) + * @param int $page_start_source Page number (1 based) to start copying pages from (inclusive) in the Source file. (required) + * @param int $page_end_source Page number (1 based) to stop copying pages pages from (inclusive) in the Source file. (required) + * @param int $page_insert_before_desitnation Page number (1 based) to insert the pages before in the Destination file. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function editPdfGetPdfTextByPagesRequest($input_file, $text_formatting_mode = null) + protected function editPdfInsertPagesBatchJobRequest($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation) { - // verify the required parameter 'input_file' is set - if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { + // verify the required parameter 'source_file' is set + if ($source_file === null || (is_array($source_file) && count($source_file) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $input_file when calling editPdfGetPdfTextByPages' + 'Missing the required parameter $source_file when calling editPdfInsertPagesBatchJob' + ); + } + // verify the required parameter 'destination_file' is set + if ($destination_file === null || (is_array($destination_file) && count($destination_file) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $destination_file when calling editPdfInsertPagesBatchJob' + ); + } + // verify the required parameter 'page_start_source' is set + if ($page_start_source === null || (is_array($page_start_source) && count($page_start_source) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $page_start_source when calling editPdfInsertPagesBatchJob' + ); + } + // verify the required parameter 'page_end_source' is set + if ($page_end_source === null || (is_array($page_end_source) && count($page_end_source) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $page_end_source when calling editPdfInsertPagesBatchJob' + ); + } + // verify the required parameter 'page_insert_before_desitnation' is set + if ($page_insert_before_desitnation === null || (is_array($page_insert_before_desitnation) && count($page_insert_before_desitnation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $page_insert_before_desitnation when calling editPdfInsertPagesBatchJob' ); } - $resourcePath = '/convert/edit/pdf/pages/get-text'; + $resourcePath = '/convert/edit/pdf/pages/insert/batch-job'; $formParams = []; $queryParams = []; $headerParams = []; @@ -2528,26 +3750,39 @@ protected function editPdfGetPdfTextByPagesRequest($input_file, $text_formatting $multipart = false; // header params - if ($text_formatting_mode !== null) { - $headerParams['textFormattingMode'] = ObjectSerializer::toHeaderValue($text_formatting_mode); + if ($page_start_source !== null) { + $headerParams['pageStartSource'] = ObjectSerializer::toHeaderValue($page_start_source); + } + // header params + if ($page_end_source !== null) { + $headerParams['pageEndSource'] = ObjectSerializer::toHeaderValue($page_end_source); + } + // header params + if ($page_insert_before_desitnation !== null) { + $headerParams['pageInsertBeforeDesitnation'] = ObjectSerializer::toHeaderValue($page_insert_before_desitnation); } // form params - if ($input_file !== null) { + if ($source_file !== null) { $multipart = true; - $formParams['inputFile'] = \GuzzleHttp\Psr7\Utils::tryFopen(ObjectSerializer::toFormValue($input_file), 'rb'); + $formParams['sourceFile'] = \GuzzleHttp\Psr7\Utils::tryFopen(ObjectSerializer::toFormValue($source_file), 'rb'); + } + // form params + if ($destination_file !== null) { + $multipart = true; + $formParams['destinationFile'] = \GuzzleHttp\Psr7\Utils::tryFopen(ObjectSerializer::toFormValue($destination_file), 'rb'); } // body params $_tempBody = null; if ($multipart) { $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'text/json', 'application/xml', 'text/xml'] + ['application/octet-stream'] ); } else { $headers = $this->headerSelector->selectHeaders( - ['application/json', 'text/json', 'application/xml', 'text/xml'], + ['application/octet-stream'], ['multipart/form-data'] ); } @@ -2615,45 +3850,37 @@ protected function editPdfGetPdfTextByPagesRequest($input_file, $text_formatting } /** - * Operation editPdfInsertPages + * Operation editPdfLinearize * - * Insert, copy pages from one PDF document into another + * Linearize and optimize a PDF for streaming download * - * @param \SplFileObject $source_file Source PDF file to copy pages from. (required) - * @param \SplFileObject $destination_file Destination PDF file to copy pages into. (required) - * @param int $page_start_source Page number (1 based) to start copying pages from (inclusive) in the Source file. (required) - * @param int $page_end_source Page number (1 based) to stop copying pages pages from (inclusive) in the Source file. (required) - * @param int $page_insert_before_desitnation Page number (1 based) to insert the pages before in the Destination file. (required) + * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return string */ - public function editPdfInsertPages($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation) + public function editPdfLinearize($input_file) { - list($response) = $this->editPdfInsertPagesWithHttpInfo($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation); + list($response) = $this->editPdfLinearizeWithHttpInfo($input_file); return $response; } /** - * Operation editPdfInsertPagesWithHttpInfo + * Operation editPdfLinearizeWithHttpInfo * - * Insert, copy pages from one PDF document into another + * Linearize and optimize a PDF for streaming download * - * @param \SplFileObject $source_file Source PDF file to copy pages from. (required) - * @param \SplFileObject $destination_file Destination PDF file to copy pages into. (required) - * @param int $page_start_source Page number (1 based) to start copying pages from (inclusive) in the Source file. (required) - * @param int $page_end_source Page number (1 based) to stop copying pages pages from (inclusive) in the Source file. (required) - * @param int $page_insert_before_desitnation Page number (1 based) to insert the pages before in the Destination file. (required) + * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of string, HTTP status code, HTTP response headers (array of strings) */ - public function editPdfInsertPagesWithHttpInfo($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation) + public function editPdfLinearizeWithHttpInfo($input_file) { $returnType = 'string'; - $request = $this->editPdfInsertPagesRequest($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation); + $request = $this->editPdfLinearizeRequest($input_file); try { $options = $this->createHttpClientOption(); @@ -2715,22 +3942,18 @@ public function editPdfInsertPagesWithHttpInfo($source_file, $destination_file, } /** - * Operation editPdfInsertPagesAsync + * Operation editPdfLinearizeAsync * - * Insert, copy pages from one PDF document into another + * Linearize and optimize a PDF for streaming download * - * @param \SplFileObject $source_file Source PDF file to copy pages from. (required) - * @param \SplFileObject $destination_file Destination PDF file to copy pages into. (required) - * @param int $page_start_source Page number (1 based) to start copying pages from (inclusive) in the Source file. (required) - * @param int $page_end_source Page number (1 based) to stop copying pages pages from (inclusive) in the Source file. (required) - * @param int $page_insert_before_desitnation Page number (1 based) to insert the pages before in the Destination file. (required) + * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function editPdfInsertPagesAsync($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation) + public function editPdfLinearizeAsync($input_file) { - return $this->editPdfInsertPagesAsyncWithHttpInfo($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation) + return $this->editPdfLinearizeAsyncWithHttpInfo($input_file) ->then( function ($response) { return $response[0]; @@ -2739,23 +3962,19 @@ function ($response) { } /** - * Operation editPdfInsertPagesAsyncWithHttpInfo + * Operation editPdfLinearizeAsyncWithHttpInfo * - * Insert, copy pages from one PDF document into another + * Linearize and optimize a PDF for streaming download * - * @param \SplFileObject $source_file Source PDF file to copy pages from. (required) - * @param \SplFileObject $destination_file Destination PDF file to copy pages into. (required) - * @param int $page_start_source Page number (1 based) to start copying pages from (inclusive) in the Source file. (required) - * @param int $page_end_source Page number (1 based) to stop copying pages pages from (inclusive) in the Source file. (required) - * @param int $page_insert_before_desitnation Page number (1 based) to insert the pages before in the Destination file. (required) + * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function editPdfInsertPagesAsyncWithHttpInfo($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation) + public function editPdfLinearizeAsyncWithHttpInfo($input_file) { $returnType = 'string'; - $request = $this->editPdfInsertPagesRequest($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation); + $request = $this->editPdfLinearizeRequest($input_file); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2795,80 +4014,35 @@ function ($exception) { } /** - * Create request for operation 'editPdfInsertPages' + * Create request for operation 'editPdfLinearize' * - * @param \SplFileObject $source_file Source PDF file to copy pages from. (required) - * @param \SplFileObject $destination_file Destination PDF file to copy pages into. (required) - * @param int $page_start_source Page number (1 based) to start copying pages from (inclusive) in the Source file. (required) - * @param int $page_end_source Page number (1 based) to stop copying pages pages from (inclusive) in the Source file. (required) - * @param int $page_insert_before_desitnation Page number (1 based) to insert the pages before in the Destination file. (required) + * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function editPdfInsertPagesRequest($source_file, $destination_file, $page_start_source, $page_end_source, $page_insert_before_desitnation) + protected function editPdfLinearizeRequest($input_file) { - // verify the required parameter 'source_file' is set - if ($source_file === null || (is_array($source_file) && count($source_file) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $source_file when calling editPdfInsertPages' - ); - } - // verify the required parameter 'destination_file' is set - if ($destination_file === null || (is_array($destination_file) && count($destination_file) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $destination_file when calling editPdfInsertPages' - ); - } - // verify the required parameter 'page_start_source' is set - if ($page_start_source === null || (is_array($page_start_source) && count($page_start_source) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $page_start_source when calling editPdfInsertPages' - ); - } - // verify the required parameter 'page_end_source' is set - if ($page_end_source === null || (is_array($page_end_source) && count($page_end_source) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $page_end_source when calling editPdfInsertPages' - ); - } - // verify the required parameter 'page_insert_before_desitnation' is set - if ($page_insert_before_desitnation === null || (is_array($page_insert_before_desitnation) && count($page_insert_before_desitnation) === 0)) { + // verify the required parameter 'input_file' is set + if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $page_insert_before_desitnation when calling editPdfInsertPages' + 'Missing the required parameter $input_file when calling editPdfLinearize' ); } - $resourcePath = '/convert/edit/pdf/pages/insert'; + $resourcePath = '/convert/edit/pdf/optimize/linearize'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; - // header params - if ($page_start_source !== null) { - $headerParams['pageStartSource'] = ObjectSerializer::toHeaderValue($page_start_source); - } - // header params - if ($page_end_source !== null) { - $headerParams['pageEndSource'] = ObjectSerializer::toHeaderValue($page_end_source); - } - // header params - if ($page_insert_before_desitnation !== null) { - $headerParams['pageInsertBeforeDesitnation'] = ObjectSerializer::toHeaderValue($page_insert_before_desitnation); - } // form params - if ($source_file !== null) { - $multipart = true; - $formParams['sourceFile'] = \GuzzleHttp\Psr7\Utils::tryFopen(ObjectSerializer::toFormValue($source_file), 'rb'); - } - // form params - if ($destination_file !== null) { + if ($input_file !== null) { $multipart = true; - $formParams['destinationFile'] = \GuzzleHttp\Psr7\Utils::tryFopen(ObjectSerializer::toFormValue($destination_file), 'rb'); + $formParams['inputFile'] = \GuzzleHttp\Psr7\Utils::tryFopen(ObjectSerializer::toFormValue($input_file), 'rb'); } // body params $_tempBody = null; @@ -2947,37 +4121,39 @@ protected function editPdfInsertPagesRequest($source_file, $destination_file, $p } /** - * Operation editPdfLinearize + * Operation editPdfRasterize * - * Linearize and optimize a PDF for streaming download + * Rasterize a PDF to an image-based PDF * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param int $dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return string */ - public function editPdfLinearize($input_file) + public function editPdfRasterize($input_file, $dpi = null) { - list($response) = $this->editPdfLinearizeWithHttpInfo($input_file); + list($response) = $this->editPdfRasterizeWithHttpInfo($input_file, $dpi); return $response; } /** - * Operation editPdfLinearizeWithHttpInfo + * Operation editPdfRasterizeWithHttpInfo * - * Linearize and optimize a PDF for streaming download + * Rasterize a PDF to an image-based PDF * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param int $dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of string, HTTP status code, HTTP response headers (array of strings) */ - public function editPdfLinearizeWithHttpInfo($input_file) + public function editPdfRasterizeWithHttpInfo($input_file, $dpi = null) { $returnType = 'string'; - $request = $this->editPdfLinearizeRequest($input_file); + $request = $this->editPdfRasterizeRequest($input_file, $dpi); try { $options = $this->createHttpClientOption(); @@ -3039,18 +4215,19 @@ public function editPdfLinearizeWithHttpInfo($input_file) } /** - * Operation editPdfLinearizeAsync + * Operation editPdfRasterizeAsync * - * Linearize and optimize a PDF for streaming download + * Rasterize a PDF to an image-based PDF * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param int $dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function editPdfLinearizeAsync($input_file) + public function editPdfRasterizeAsync($input_file, $dpi = null) { - return $this->editPdfLinearizeAsyncWithHttpInfo($input_file) + return $this->editPdfRasterizeAsyncWithHttpInfo($input_file, $dpi) ->then( function ($response) { return $response[0]; @@ -3059,19 +4236,20 @@ function ($response) { } /** - * Operation editPdfLinearizeAsyncWithHttpInfo + * Operation editPdfRasterizeAsyncWithHttpInfo * - * Linearize and optimize a PDF for streaming download + * Rasterize a PDF to an image-based PDF * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param int $dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function editPdfLinearizeAsyncWithHttpInfo($input_file) + public function editPdfRasterizeAsyncWithHttpInfo($input_file, $dpi = null) { $returnType = 'string'; - $request = $this->editPdfLinearizeRequest($input_file); + $request = $this->editPdfRasterizeRequest($input_file, $dpi); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3111,29 +4289,34 @@ function ($exception) { } /** - * Create request for operation 'editPdfLinearize' + * Create request for operation 'editPdfRasterize' * * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param int $dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function editPdfLinearizeRequest($input_file) + protected function editPdfRasterizeRequest($input_file, $dpi = null) { // verify the required parameter 'input_file' is set if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $input_file when calling editPdfLinearize' + 'Missing the required parameter $input_file when calling editPdfRasterize' ); } - $resourcePath = '/convert/edit/pdf/optimize/linearize'; + $resourcePath = '/convert/edit/pdf/rasterize'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; + // header params + if ($dpi !== null) { + $headerParams['dpi'] = ObjectSerializer::toHeaderValue($dpi); + } // form params @@ -3218,37 +4401,37 @@ protected function editPdfLinearizeRequest($input_file) } /** - * Operation editPdfRasterize + * Operation editPdfRasterizeBatchJob * - * Rasterize a PDF to an image-based PDF + * Rasterize a PDF to an image-based PDF as Batch Job * * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return string + * @return \Swagger\Client\Model\EditPdfBatchJobCreateResult */ - public function editPdfRasterize($input_file) + public function editPdfRasterizeBatchJob($input_file) { - list($response) = $this->editPdfRasterizeWithHttpInfo($input_file); + list($response) = $this->editPdfRasterizeBatchJobWithHttpInfo($input_file); return $response; } /** - * Operation editPdfRasterizeWithHttpInfo + * Operation editPdfRasterizeBatchJobWithHttpInfo * - * Rasterize a PDF to an image-based PDF + * Rasterize a PDF to an image-based PDF as Batch Job * * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of string, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\EditPdfBatchJobCreateResult, HTTP status code, HTTP response headers (array of strings) */ - public function editPdfRasterizeWithHttpInfo($input_file) + public function editPdfRasterizeBatchJobWithHttpInfo($input_file) { - $returnType = 'string'; - $request = $this->editPdfRasterizeRequest($input_file); + $returnType = '\Swagger\Client\Model\EditPdfBatchJobCreateResult'; + $request = $this->editPdfRasterizeBatchJobRequest($input_file); try { $options = $this->createHttpClientOption(); @@ -3299,7 +4482,7 @@ public function editPdfRasterizeWithHttpInfo($input_file) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - 'string', + '\Swagger\Client\Model\EditPdfBatchJobCreateResult', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -3310,18 +4493,18 @@ public function editPdfRasterizeWithHttpInfo($input_file) } /** - * Operation editPdfRasterizeAsync + * Operation editPdfRasterizeBatchJobAsync * - * Rasterize a PDF to an image-based PDF + * Rasterize a PDF to an image-based PDF as Batch Job * * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function editPdfRasterizeAsync($input_file) + public function editPdfRasterizeBatchJobAsync($input_file) { - return $this->editPdfRasterizeAsyncWithHttpInfo($input_file) + return $this->editPdfRasterizeBatchJobAsyncWithHttpInfo($input_file) ->then( function ($response) { return $response[0]; @@ -3330,19 +4513,19 @@ function ($response) { } /** - * Operation editPdfRasterizeAsyncWithHttpInfo + * Operation editPdfRasterizeBatchJobAsyncWithHttpInfo * - * Rasterize a PDF to an image-based PDF + * Rasterize a PDF to an image-based PDF as Batch Job * * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function editPdfRasterizeAsyncWithHttpInfo($input_file) + public function editPdfRasterizeBatchJobAsyncWithHttpInfo($input_file) { - $returnType = 'string'; - $request = $this->editPdfRasterizeRequest($input_file); + $returnType = '\Swagger\Client\Model\EditPdfBatchJobCreateResult'; + $request = $this->editPdfRasterizeBatchJobRequest($input_file); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3382,23 +4565,23 @@ function ($exception) { } /** - * Create request for operation 'editPdfRasterize' + * Create request for operation 'editPdfRasterizeBatchJob' * * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function editPdfRasterizeRequest($input_file) + protected function editPdfRasterizeBatchJobRequest($input_file) { // verify the required parameter 'input_file' is set if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $input_file when calling editPdfRasterize' + 'Missing the required parameter $input_file when calling editPdfRasterizeBatchJob' ); } - $resourcePath = '/convert/edit/pdf/rasterize'; + $resourcePath = '/convert/edit/pdf/rasterize/batch-job'; $formParams = []; $queryParams = []; $headerParams = []; diff --git a/lib/Api/MergeDocumentApi.php b/lib/Api/MergeDocumentApi.php index d882adf..ca899f6 100644 --- a/lib/Api/MergeDocumentApi.php +++ b/lib/Api/MergeDocumentApi.php @@ -87,6 +87,275 @@ public function getConfig() return $this->config; } + /** + * Operation mergeDocumentBatchJobCreate + * + * Merge an array of Documents into a Single Document by Page as a Batch Job + * + * @param \Swagger\Client\Model\DocumentArrayInput $input input (required) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Swagger\Client\Model\MergeBatchJobCreateResult + */ + public function mergeDocumentBatchJobCreate($input) + { + list($response) = $this->mergeDocumentBatchJobCreateWithHttpInfo($input); + return $response; + } + + /** + * Operation mergeDocumentBatchJobCreateWithHttpInfo + * + * Merge an array of Documents into a Single Document by Page as a Batch Job + * + * @param \Swagger\Client\Model\DocumentArrayInput $input (required) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Swagger\Client\Model\MergeBatchJobCreateResult, HTTP status code, HTTP response headers (array of strings) + */ + public function mergeDocumentBatchJobCreateWithHttpInfo($input) + { + $returnType = '\Swagger\Client\Model\MergeBatchJobCreateResult'; + $request = $this->mergeDocumentBatchJobCreateRequest($input); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Swagger\Client\Model\MergeBatchJobCreateResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation mergeDocumentBatchJobCreateAsync + * + * Merge an array of Documents into a Single Document by Page as a Batch Job + * + * @param \Swagger\Client\Model\DocumentArrayInput $input (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function mergeDocumentBatchJobCreateAsync($input) + { + return $this->mergeDocumentBatchJobCreateAsyncWithHttpInfo($input) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation mergeDocumentBatchJobCreateAsyncWithHttpInfo + * + * Merge an array of Documents into a Single Document by Page as a Batch Job + * + * @param \Swagger\Client\Model\DocumentArrayInput $input (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function mergeDocumentBatchJobCreateAsyncWithHttpInfo($input) + { + $returnType = '\Swagger\Client\Model\MergeBatchJobCreateResult'; + $request = $this->mergeDocumentBatchJobCreateRequest($input); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'mergeDocumentBatchJobCreate' + * + * @param \Swagger\Client\Model\DocumentArrayInput $input (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function mergeDocumentBatchJobCreateRequest($input) + { + // verify the required parameter 'input' is set + if ($input === null || (is_array($input) && count($input) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $input when calling mergeDocumentBatchJobCreate' + ); + } + + $resourcePath = '/convert/merge/batch-job/create'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // body params + $_tempBody = null; + if (isset($input)) { + $_tempBody = $input; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json', 'text/json', 'application/xml', 'text/xml'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json', 'text/json', 'application/xml', 'text/xml'], + ['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); + } + } + + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('Apikey'); + if ($apiKey !== null) { + $headers['Apikey'] = $apiKey; + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\Query::build($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + /** * Operation mergeDocumentDocx * @@ -1010,6 +1279,276 @@ protected function mergeDocumentDocxMultiArrayRequest($input) ); } + /** + * Operation mergeDocumentGetAsyncJobStatus + * + * Get the status and result of a Merge Document Batch Job + * + * @param string $async_job_id async_job_id (required) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Swagger\Client\Model\MergeJobStatusResult + */ + public function mergeDocumentGetAsyncJobStatus($async_job_id) + { + list($response) = $this->mergeDocumentGetAsyncJobStatusWithHttpInfo($async_job_id); + return $response; + } + + /** + * Operation mergeDocumentGetAsyncJobStatusWithHttpInfo + * + * Get the status and result of a Merge Document Batch Job + * + * @param string $async_job_id (required) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Swagger\Client\Model\MergeJobStatusResult, HTTP status code, HTTP response headers (array of strings) + */ + public function mergeDocumentGetAsyncJobStatusWithHttpInfo($async_job_id) + { + $returnType = '\Swagger\Client\Model\MergeJobStatusResult'; + $request = $this->mergeDocumentGetAsyncJobStatusRequest($async_job_id); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Swagger\Client\Model\MergeJobStatusResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation mergeDocumentGetAsyncJobStatusAsync + * + * Get the status and result of a Merge Document Batch Job + * + * @param string $async_job_id (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function mergeDocumentGetAsyncJobStatusAsync($async_job_id) + { + return $this->mergeDocumentGetAsyncJobStatusAsyncWithHttpInfo($async_job_id) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation mergeDocumentGetAsyncJobStatusAsyncWithHttpInfo + * + * Get the status and result of a Merge Document Batch Job + * + * @param string $async_job_id (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function mergeDocumentGetAsyncJobStatusAsyncWithHttpInfo($async_job_id) + { + $returnType = '\Swagger\Client\Model\MergeJobStatusResult'; + $request = $this->mergeDocumentGetAsyncJobStatusRequest($async_job_id); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'mergeDocumentGetAsyncJobStatus' + * + * @param string $async_job_id (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function mergeDocumentGetAsyncJobStatusRequest($async_job_id) + { + // verify the required parameter 'async_job_id' is set + if ($async_job_id === null || (is_array($async_job_id) && count($async_job_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $async_job_id when calling mergeDocumentGetAsyncJobStatus' + ); + } + + $resourcePath = '/convert/merge/batch-job/status'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($async_job_id !== null) { + $queryParams['AsyncJobID'] = ObjectSerializer::toQueryValue($async_job_id); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json', 'text/json', 'application/xml', 'text/xml'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json', 'text/json', 'application/xml', 'text/xml'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); + } + } + + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('Apikey'); + if ($apiKey !== null) { + $headers['Apikey'] = $apiKey; + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\Query::build($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + /** * Operation mergeDocumentHtml * diff --git a/lib/Api/SplitDocumentApi.php b/lib/Api/SplitDocumentApi.php index 8edd46b..9eca9ff 100644 --- a/lib/Api/SplitDocumentApi.php +++ b/lib/Api/SplitDocumentApi.php @@ -650,7 +650,7 @@ protected function splitDocumentDocxRequest($input_file, $return_document_conten /** * Operation splitDocumentGetAsyncJobStatus * - * Get the status and result of a Batch Job + * Get the status and result of a Split Document Batch Job * * @param string $async_job_id async_job_id (required) * @@ -667,7 +667,7 @@ public function splitDocumentGetAsyncJobStatus($async_job_id) /** * Operation splitDocumentGetAsyncJobStatusWithHttpInfo * - * Get the status and result of a Batch Job + * Get the status and result of a Split Document Batch Job * * @param string $async_job_id (required) * @@ -742,7 +742,7 @@ public function splitDocumentGetAsyncJobStatusWithHttpInfo($async_job_id) /** * Operation splitDocumentGetAsyncJobStatusAsync * - * Get the status and result of a Batch Job + * Get the status and result of a Split Document Batch Job * * @param string $async_job_id (required) * @@ -762,7 +762,7 @@ function ($response) { /** * Operation splitDocumentGetAsyncJobStatusAsyncWithHttpInfo * - * Get the status and result of a Batch Job + * Get the status and result of a Split Document Batch Job * * @param string $async_job_id (required) * diff --git a/lib/Api/ValidateDocumentApi.php b/lib/Api/ValidateDocumentApi.php index 262ab44..7bb3801 100644 --- a/lib/Api/ValidateDocumentApi.php +++ b/lib/Api/ValidateDocumentApi.php @@ -819,6 +819,286 @@ protected function validateDocumentDocValidationRequest($input_file) + // form params + if ($input_file !== null) { + $multipart = true; + $formParams['inputFile'] = \GuzzleHttp\Psr7\Utils::tryFopen(ObjectSerializer::toFormValue($input_file), 'rb'); + } + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json', 'text/json', 'application/xml', 'text/xml'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json', 'text/json', 'application/xml', 'text/xml'], + ['multipart/form-data'] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); + } + } + + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('Apikey'); + if ($apiKey !== null) { + $headers['Apikey'] = $apiKey; + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\Query::build($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation validateDocumentDocxRepair + * + * Repair a Word document (DOCX) that contains errors + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param string $repair_mode Optional; Set to advanced to apply the most advanced repair mode, basic for basic repair mode. Default is advanced. (optional) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return string + */ + public function validateDocumentDocxRepair($input_file, $repair_mode = null) + { + list($response) = $this->validateDocumentDocxRepairWithHttpInfo($input_file, $repair_mode); + return $response; + } + + /** + * Operation validateDocumentDocxRepairWithHttpInfo + * + * Repair a Word document (DOCX) that contains errors + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param string $repair_mode Optional; Set to advanced to apply the most advanced repair mode, basic for basic repair mode. Default is advanced. (optional) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of string, HTTP status code, HTTP response headers (array of strings) + */ + public function validateDocumentDocxRepairWithHttpInfo($input_file, $repair_mode = null) + { + $returnType = 'string'; + $request = $this->validateDocumentDocxRepairRequest($input_file, $repair_mode); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'string', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation validateDocumentDocxRepairAsync + * + * Repair a Word document (DOCX) that contains errors + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param string $repair_mode Optional; Set to advanced to apply the most advanced repair mode, basic for basic repair mode. Default is advanced. (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function validateDocumentDocxRepairAsync($input_file, $repair_mode = null) + { + return $this->validateDocumentDocxRepairAsyncWithHttpInfo($input_file, $repair_mode) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation validateDocumentDocxRepairAsyncWithHttpInfo + * + * Repair a Word document (DOCX) that contains errors + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param string $repair_mode Optional; Set to advanced to apply the most advanced repair mode, basic for basic repair mode. Default is advanced. (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function validateDocumentDocxRepairAsyncWithHttpInfo($input_file, $repair_mode = null) + { + $returnType = 'string'; + $request = $this->validateDocumentDocxRepairRequest($input_file, $repair_mode); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'validateDocumentDocxRepair' + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * @param string $repair_mode Optional; Set to advanced to apply the most advanced repair mode, basic for basic repair mode. Default is advanced. (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function validateDocumentDocxRepairRequest($input_file, $repair_mode = null) + { + // verify the required parameter 'input_file' is set + if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $input_file when calling validateDocumentDocxRepair' + ); + } + + $resourcePath = '/convert/validate/docx/repair'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // header params + if ($repair_mode !== null) { + $headerParams['repairMode'] = ObjectSerializer::toHeaderValue($repair_mode); + } + + // form params if ($input_file !== null) { $multipart = true; @@ -4424,34 +4704,305 @@ protected function validateDocumentPptValidationRequest($input_file) } /** - * Operation validateDocumentPptxValidation + * Operation validateDocumentPptxRepair * - * Validate a PowerPoint presentation (PPTX) + * Repair a PowerPoint presentation (PPTX) that contains errors * * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Swagger\Client\Model\DocumentValidationResult + * @return string */ - public function validateDocumentPptxValidation($input_file) + public function validateDocumentPptxRepair($input_file) { - list($response) = $this->validateDocumentPptxValidationWithHttpInfo($input_file); + list($response) = $this->validateDocumentPptxRepairWithHttpInfo($input_file); return $response; } /** - * Operation validateDocumentPptxValidationWithHttpInfo + * Operation validateDocumentPptxRepairWithHttpInfo * - * Validate a PowerPoint presentation (PPTX) + * Repair a PowerPoint presentation (PPTX) that contains errors * * @param \SplFileObject $input_file Input file to perform the operation on. (required) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Swagger\Client\Model\DocumentValidationResult, HTTP status code, HTTP response headers (array of strings) + * @return array of string, HTTP status code, HTTP response headers (array of strings) */ - public function validateDocumentPptxValidationWithHttpInfo($input_file) + public function validateDocumentPptxRepairWithHttpInfo($input_file) + { + $returnType = 'string'; + $request = $this->validateDocumentPptxRepairRequest($input_file); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'string', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation validateDocumentPptxRepairAsync + * + * Repair a PowerPoint presentation (PPTX) that contains errors + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function validateDocumentPptxRepairAsync($input_file) + { + return $this->validateDocumentPptxRepairAsyncWithHttpInfo($input_file) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation validateDocumentPptxRepairAsyncWithHttpInfo + * + * Repair a PowerPoint presentation (PPTX) that contains errors + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function validateDocumentPptxRepairAsyncWithHttpInfo($input_file) + { + $returnType = 'string'; + $request = $this->validateDocumentPptxRepairRequest($input_file); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'validateDocumentPptxRepair' + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function validateDocumentPptxRepairRequest($input_file) + { + // verify the required parameter 'input_file' is set + if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $input_file when calling validateDocumentPptxRepair' + ); + } + + $resourcePath = '/convert/validate/pptx/repair'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // form params + if ($input_file !== null) { + $multipart = true; + $formParams['inputFile'] = \GuzzleHttp\Psr7\Utils::tryFopen(ObjectSerializer::toFormValue($input_file), 'rb'); + } + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json', 'text/json', 'application/xml', 'text/xml'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json', 'text/json', 'application/xml', 'text/xml'], + ['multipart/form-data'] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); + } + } + + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('Apikey'); + if ($apiKey !== null) { + $headers['Apikey'] = $apiKey; + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\Query::build($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation validateDocumentPptxValidation + * + * Validate a PowerPoint presentation (PPTX) + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Swagger\Client\Model\DocumentValidationResult + */ + public function validateDocumentPptxValidation($input_file) + { + list($response) = $this->validateDocumentPptxValidationWithHttpInfo($input_file); + return $response; + } + + /** + * Operation validateDocumentPptxValidationWithHttpInfo + * + * Validate a PowerPoint presentation (PPTX) + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Swagger\Client\Model\DocumentValidationResult, HTTP status code, HTTP response headers (array of strings) + */ + public function validateDocumentPptxValidationWithHttpInfo($input_file) { $returnType = '\Swagger\Client\Model\DocumentValidationResult'; $request = $this->validateDocumentPptxValidationRequest($input_file); @@ -5968,6 +6519,277 @@ protected function validateDocumentXlsValidationRequest($input_file) + // form params + if ($input_file !== null) { + $multipart = true; + $formParams['inputFile'] = \GuzzleHttp\Psr7\Utils::tryFopen(ObjectSerializer::toFormValue($input_file), 'rb'); + } + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json', 'text/json', 'application/xml', 'text/xml'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json', 'text/json', 'application/xml', 'text/xml'], + ['multipart/form-data'] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); + } + } + + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('Apikey'); + if ($apiKey !== null) { + $headers['Apikey'] = $apiKey; + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\Query::build($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation validateDocumentXlsxRepair + * + * Repair an Excel spreadsheet (XLSX) that contains errors + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return string + */ + public function validateDocumentXlsxRepair($input_file) + { + list($response) = $this->validateDocumentXlsxRepairWithHttpInfo($input_file); + return $response; + } + + /** + * Operation validateDocumentXlsxRepairWithHttpInfo + * + * Repair an Excel spreadsheet (XLSX) that contains errors + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of string, HTTP status code, HTTP response headers (array of strings) + */ + public function validateDocumentXlsxRepairWithHttpInfo($input_file) + { + $returnType = 'string'; + $request = $this->validateDocumentXlsxRepairRequest($input_file); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'string', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation validateDocumentXlsxRepairAsync + * + * Repair an Excel spreadsheet (XLSX) that contains errors + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function validateDocumentXlsxRepairAsync($input_file) + { + return $this->validateDocumentXlsxRepairAsyncWithHttpInfo($input_file) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation validateDocumentXlsxRepairAsyncWithHttpInfo + * + * Repair an Excel spreadsheet (XLSX) that contains errors + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function validateDocumentXlsxRepairAsyncWithHttpInfo($input_file) + { + $returnType = 'string'; + $request = $this->validateDocumentXlsxRepairRequest($input_file); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'validateDocumentXlsxRepair' + * + * @param \SplFileObject $input_file Input file to perform the operation on. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function validateDocumentXlsxRepairRequest($input_file) + { + // verify the required parameter 'input_file' is set + if ($input_file === null || (is_array($input_file) && count($input_file) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $input_file when calling validateDocumentXlsxRepair' + ); + } + + $resourcePath = '/convert/validate/xlsx/repair'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + // form params if ($input_file !== null) { $multipart = true; diff --git a/lib/Configuration.php b/lib/Configuration.php index 769fa2e..00e9f64 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -88,7 +88,7 @@ class Configuration * * @var string */ - protected $userAgent = 'Swagger-Codegen/3.1.1/php'; + protected $userAgent = 'Swagger-Codegen/3.2.0/php'; /** * Debug switch (default set to false) @@ -397,7 +397,7 @@ public static function toDebugReport() $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; $report .= ' OpenAPI Spec Version: v1' . PHP_EOL; - $report .= ' SDK Package Version: 3.1.1' . PHP_EOL; + $report .= ' SDK Package Version: 3.2.0' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/lib/Model/ConvertDocumentBatchJobCreateResult.php b/lib/Model/ConvertDocumentBatchJobCreateResult.php new file mode 100644 index 0000000..2187bfd --- /dev/null +++ b/lib/Model/ConvertDocumentBatchJobCreateResult.php @@ -0,0 +1,336 @@ + 'bool', + 'async_job_id' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'successful' => null, + 'async_job_id' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'successful' => 'Successful', + 'async_job_id' => 'AsyncJobID' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'successful' => 'setSuccessful', + 'async_job_id' => 'setAsyncJobId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'successful' => 'getSuccessful', + 'async_job_id' => 'getAsyncJobId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['successful'] = isset($data['successful']) ? $data['successful'] : null; + $this->container['async_job_id'] = isset($data['async_job_id']) ? $data['async_job_id'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets successful + * + * @return bool + */ + public function getSuccessful() + { + return $this->container['successful']; + } + + /** + * Sets successful + * + * @param bool $successful True if successful, false otherwise + * + * @return $this + */ + public function setSuccessful($successful) + { + $this->container['successful'] = $successful; + + return $this; + } + + /** + * Gets async_job_id + * + * @return string + */ + public function getAsyncJobId() + { + return $this->container['async_job_id']; + } + + /** + * Sets async_job_id + * + * @param string $async_job_id When creating a job, an Async Job ID is returned. Use the GetAsyncJobStatus API to check on the status of this job using the AsyncJobID and get the result when it finishes + * + * @return $this + */ + public function setAsyncJobId($async_job_id) + { + $this->container['async_job_id'] = $async_job_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/ConvertDocumentJobStatusResult.php b/lib/Model/ConvertDocumentJobStatusResult.php new file mode 100644 index 0000000..b57a5f2 --- /dev/null +++ b/lib/Model/ConvertDocumentJobStatusResult.php @@ -0,0 +1,435 @@ + 'bool', + 'async_job_status' => 'string', + 'async_job_id' => 'string', + 'output_file_result' => 'string', + 'error_message' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'successful' => null, + 'async_job_status' => null, + 'async_job_id' => null, + 'output_file_result' => 'byte', + 'error_message' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'successful' => 'Successful', + 'async_job_status' => 'AsyncJobStatus', + 'async_job_id' => 'AsyncJobID', + 'output_file_result' => 'OutputFileResult', + 'error_message' => 'ErrorMessage' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'successful' => 'setSuccessful', + 'async_job_status' => 'setAsyncJobStatus', + 'async_job_id' => 'setAsyncJobId', + 'output_file_result' => 'setOutputFileResult', + 'error_message' => 'setErrorMessage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'successful' => 'getSuccessful', + 'async_job_status' => 'getAsyncJobStatus', + 'async_job_id' => 'getAsyncJobId', + 'output_file_result' => 'getOutputFileResult', + 'error_message' => 'getErrorMessage' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['successful'] = isset($data['successful']) ? $data['successful'] : null; + $this->container['async_job_status'] = isset($data['async_job_status']) ? $data['async_job_status'] : null; + $this->container['async_job_id'] = isset($data['async_job_id']) ? $data['async_job_id'] : null; + $this->container['output_file_result'] = isset($data['output_file_result']) ? $data['output_file_result'] : null; + $this->container['error_message'] = isset($data['error_message']) ? $data['error_message'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if (!is_null($this->container['output_file_result']) && !preg_match("/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/", $this->container['output_file_result'])) { + $invalidProperties[] = "invalid value for 'output_file_result', must be conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets successful + * + * @return bool + */ + public function getSuccessful() + { + return $this->container['successful']; + } + + /** + * Sets successful + * + * @param bool $successful Tru eif the operation to check the status of the job was successful, false otherwise + * + * @return $this + */ + public function setSuccessful($successful) + { + $this->container['successful'] = $successful; + + return $this; + } + + /** + * Gets async_job_status + * + * @return string + */ + public function getAsyncJobStatus() + { + return $this->container['async_job_status']; + } + + /** + * Sets async_job_status + * + * @param string $async_job_status Returns the job status of the Async Job, if applicable. Possible states are STARTED and COMPLETED + * + * @return $this + */ + public function setAsyncJobStatus($async_job_status) + { + $this->container['async_job_status'] = $async_job_status; + + return $this; + } + + /** + * Gets async_job_id + * + * @return string + */ + public function getAsyncJobId() + { + return $this->container['async_job_id']; + } + + /** + * Sets async_job_id + * + * @param string $async_job_id When the job exceeds 25 pages, an Async Job ID is returned. Use the CheckPdfOcrJobStatus API to check on the status of this job using the AsyncJobID and get the result when it finishes + * + * @return $this + */ + public function setAsyncJobId($async_job_id) + { + $this->container['async_job_id'] = $async_job_id; + + return $this; + } + + /** + * Gets output_file_result + * + * @return string + */ + public function getOutputFileResult() + { + return $this->container['output_file_result']; + } + + /** + * Sets output_file_result + * + * @param string $output_file_result Output file result (if applicable) + * + * @return $this + */ + public function setOutputFileResult($output_file_result) + { + + if (!is_null($output_file_result) && (!preg_match("/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/", $output_file_result))) { + throw new \InvalidArgumentException("invalid value for $output_file_result when calling ConvertDocumentJobStatusResult., must conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/."); + } + + $this->container['output_file_result'] = $output_file_result; + + return $this; + } + + /** + * Gets error_message + * + * @return string + */ + public function getErrorMessage() + { + return $this->container['error_message']; + } + + /** + * Sets error_message + * + * @param string $error_message Error message (if any) + * + * @return $this + */ + public function setErrorMessage($error_message) + { + $this->container['error_message'] = $error_message; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/EditPdfBatchJobCreateResult.php b/lib/Model/EditPdfBatchJobCreateResult.php new file mode 100644 index 0000000..8a14c0a --- /dev/null +++ b/lib/Model/EditPdfBatchJobCreateResult.php @@ -0,0 +1,336 @@ + 'bool', + 'async_job_id' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'successful' => null, + 'async_job_id' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'successful' => 'Successful', + 'async_job_id' => 'AsyncJobID' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'successful' => 'setSuccessful', + 'async_job_id' => 'setAsyncJobId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'successful' => 'getSuccessful', + 'async_job_id' => 'getAsyncJobId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['successful'] = isset($data['successful']) ? $data['successful'] : null; + $this->container['async_job_id'] = isset($data['async_job_id']) ? $data['async_job_id'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets successful + * + * @return bool + */ + public function getSuccessful() + { + return $this->container['successful']; + } + + /** + * Sets successful + * + * @param bool $successful True if successful, false otherwise + * + * @return $this + */ + public function setSuccessful($successful) + { + $this->container['successful'] = $successful; + + return $this; + } + + /** + * Gets async_job_id + * + * @return string + */ + public function getAsyncJobId() + { + return $this->container['async_job_id']; + } + + /** + * Sets async_job_id + * + * @param string $async_job_id When creating a job, an Async Job ID is returned. Use the GetAsyncJobStatus API to check on the status of this job using the AsyncJobID and get the result when it finishes + * + * @return $this + */ + public function setAsyncJobId($async_job_id) + { + $this->container['async_job_id'] = $async_job_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/EditPdfJobStatusResult.php b/lib/Model/EditPdfJobStatusResult.php new file mode 100644 index 0000000..3750591 --- /dev/null +++ b/lib/Model/EditPdfJobStatusResult.php @@ -0,0 +1,435 @@ + 'bool', + 'async_job_status' => 'string', + 'async_job_id' => 'string', + 'output_file_result' => 'string', + 'error_message' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'successful' => null, + 'async_job_status' => null, + 'async_job_id' => null, + 'output_file_result' => 'byte', + 'error_message' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'successful' => 'Successful', + 'async_job_status' => 'AsyncJobStatus', + 'async_job_id' => 'AsyncJobID', + 'output_file_result' => 'OutputFileResult', + 'error_message' => 'ErrorMessage' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'successful' => 'setSuccessful', + 'async_job_status' => 'setAsyncJobStatus', + 'async_job_id' => 'setAsyncJobId', + 'output_file_result' => 'setOutputFileResult', + 'error_message' => 'setErrorMessage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'successful' => 'getSuccessful', + 'async_job_status' => 'getAsyncJobStatus', + 'async_job_id' => 'getAsyncJobId', + 'output_file_result' => 'getOutputFileResult', + 'error_message' => 'getErrorMessage' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['successful'] = isset($data['successful']) ? $data['successful'] : null; + $this->container['async_job_status'] = isset($data['async_job_status']) ? $data['async_job_status'] : null; + $this->container['async_job_id'] = isset($data['async_job_id']) ? $data['async_job_id'] : null; + $this->container['output_file_result'] = isset($data['output_file_result']) ? $data['output_file_result'] : null; + $this->container['error_message'] = isset($data['error_message']) ? $data['error_message'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if (!is_null($this->container['output_file_result']) && !preg_match("/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/", $this->container['output_file_result'])) { + $invalidProperties[] = "invalid value for 'output_file_result', must be conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets successful + * + * @return bool + */ + public function getSuccessful() + { + return $this->container['successful']; + } + + /** + * Sets successful + * + * @param bool $successful Tru eif the operation to check the status of the job was successful, false otherwise + * + * @return $this + */ + public function setSuccessful($successful) + { + $this->container['successful'] = $successful; + + return $this; + } + + /** + * Gets async_job_status + * + * @return string + */ + public function getAsyncJobStatus() + { + return $this->container['async_job_status']; + } + + /** + * Sets async_job_status + * + * @param string $async_job_status Returns the job status of the Async Job, if applicable. Possible states are STARTED and COMPLETED + * + * @return $this + */ + public function setAsyncJobStatus($async_job_status) + { + $this->container['async_job_status'] = $async_job_status; + + return $this; + } + + /** + * Gets async_job_id + * + * @return string + */ + public function getAsyncJobId() + { + return $this->container['async_job_id']; + } + + /** + * Sets async_job_id + * + * @param string $async_job_id When the job exceeds 25 pages, an Async Job ID is returned. Use the CheckPdfOcrJobStatus API to check on the status of this job using the AsyncJobID and get the result when it finishes + * + * @return $this + */ + public function setAsyncJobId($async_job_id) + { + $this->container['async_job_id'] = $async_job_id; + + return $this; + } + + /** + * Gets output_file_result + * + * @return string + */ + public function getOutputFileResult() + { + return $this->container['output_file_result']; + } + + /** + * Sets output_file_result + * + * @param string $output_file_result Output file result (if applicable) + * + * @return $this + */ + public function setOutputFileResult($output_file_result) + { + + if (!is_null($output_file_result) && (!preg_match("/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/", $output_file_result))) { + throw new \InvalidArgumentException("invalid value for $output_file_result when calling EditPdfJobStatusResult., must conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/."); + } + + $this->container['output_file_result'] = $output_file_result; + + return $this; + } + + /** + * Gets error_message + * + * @return string + */ + public function getErrorMessage() + { + return $this->container['error_message']; + } + + /** + * Sets error_message + * + * @param string $error_message Error message (if any) + * + * @return $this + */ + public function setErrorMessage($error_message) + { + $this->container['error_message'] = $error_message; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/JobStatusResult.php b/lib/Model/JobStatusResult.php index 7c5e787..16ba129 100644 --- a/lib/Model/JobStatusResult.php +++ b/lib/Model/JobStatusResult.php @@ -242,7 +242,7 @@ public function getSuccessful() /** * Sets successful * - * @param bool $successful Tru eif the operation to check the status of the job was successful, false otherwise + * @param bool $successful True if the operation to check the status of the job was successful, false otherwise * * @return $this */ diff --git a/lib/Model/MergeBatchJobCreateResult.php b/lib/Model/MergeBatchJobCreateResult.php new file mode 100644 index 0000000..ffeb684 --- /dev/null +++ b/lib/Model/MergeBatchJobCreateResult.php @@ -0,0 +1,336 @@ + 'bool', + 'async_job_id' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'successful' => null, + 'async_job_id' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'successful' => 'Successful', + 'async_job_id' => 'AsyncJobID' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'successful' => 'setSuccessful', + 'async_job_id' => 'setAsyncJobId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'successful' => 'getSuccessful', + 'async_job_id' => 'getAsyncJobId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['successful'] = isset($data['successful']) ? $data['successful'] : null; + $this->container['async_job_id'] = isset($data['async_job_id']) ? $data['async_job_id'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets successful + * + * @return bool + */ + public function getSuccessful() + { + return $this->container['successful']; + } + + /** + * Sets successful + * + * @param bool $successful True if successful, false otherwise + * + * @return $this + */ + public function setSuccessful($successful) + { + $this->container['successful'] = $successful; + + return $this; + } + + /** + * Gets async_job_id + * + * @return string + */ + public function getAsyncJobId() + { + return $this->container['async_job_id']; + } + + /** + * Sets async_job_id + * + * @param string $async_job_id When creating a job, an Async Job ID is returned. Use the GetAsyncJobStatus API to check on the status of this job using the AsyncJobID and get the result when it finishes + * + * @return $this + */ + public function setAsyncJobId($async_job_id) + { + $this->container['async_job_id'] = $async_job_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MergeJobStatusResult.php b/lib/Model/MergeJobStatusResult.php new file mode 100644 index 0000000..ec6a79f --- /dev/null +++ b/lib/Model/MergeJobStatusResult.php @@ -0,0 +1,435 @@ + 'bool', + 'async_job_status' => 'string', + 'async_job_id' => 'string', + 'file_output_result' => 'string', + 'error_message' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'successful' => null, + 'async_job_status' => null, + 'async_job_id' => null, + 'file_output_result' => 'byte', + 'error_message' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'successful' => 'Successful', + 'async_job_status' => 'AsyncJobStatus', + 'async_job_id' => 'AsyncJobID', + 'file_output_result' => 'FileOutputResult', + 'error_message' => 'ErrorMessage' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'successful' => 'setSuccessful', + 'async_job_status' => 'setAsyncJobStatus', + 'async_job_id' => 'setAsyncJobId', + 'file_output_result' => 'setFileOutputResult', + 'error_message' => 'setErrorMessage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'successful' => 'getSuccessful', + 'async_job_status' => 'getAsyncJobStatus', + 'async_job_id' => 'getAsyncJobId', + 'file_output_result' => 'getFileOutputResult', + 'error_message' => 'getErrorMessage' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['successful'] = isset($data['successful']) ? $data['successful'] : null; + $this->container['async_job_status'] = isset($data['async_job_status']) ? $data['async_job_status'] : null; + $this->container['async_job_id'] = isset($data['async_job_id']) ? $data['async_job_id'] : null; + $this->container['file_output_result'] = isset($data['file_output_result']) ? $data['file_output_result'] : null; + $this->container['error_message'] = isset($data['error_message']) ? $data['error_message'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if (!is_null($this->container['file_output_result']) && !preg_match("/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/", $this->container['file_output_result'])) { + $invalidProperties[] = "invalid value for 'file_output_result', must be conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets successful + * + * @return bool + */ + public function getSuccessful() + { + return $this->container['successful']; + } + + /** + * Sets successful + * + * @param bool $successful True if the operation to check the status of the job was successful, false otherwise + * + * @return $this + */ + public function setSuccessful($successful) + { + $this->container['successful'] = $successful; + + return $this; + } + + /** + * Gets async_job_status + * + * @return string + */ + public function getAsyncJobStatus() + { + return $this->container['async_job_status']; + } + + /** + * Sets async_job_status + * + * @param string $async_job_status Returns the job status of the Async Job, if applicable. Possible states are STARTED and COMPLETED + * + * @return $this + */ + public function setAsyncJobStatus($async_job_status) + { + $this->container['async_job_status'] = $async_job_status; + + return $this; + } + + /** + * Gets async_job_id + * + * @return string + */ + public function getAsyncJobId() + { + return $this->container['async_job_id']; + } + + /** + * Sets async_job_id + * + * @param string $async_job_id When the job exceeds 25 pages, an Async Job ID is returned. Use the CheckPdfOcrJobStatus API to check on the status of this job using the AsyncJobID and get the result when it finishes + * + * @return $this + */ + public function setAsyncJobId($async_job_id) + { + $this->container['async_job_id'] = $async_job_id; + + return $this; + } + + /** + * Gets file_output_result + * + * @return string + */ + public function getFileOutputResult() + { + return $this->container['file_output_result']; + } + + /** + * Sets file_output_result + * + * @param string $file_output_result Resulting file output (if applicable) + * + * @return $this + */ + public function setFileOutputResult($file_output_result) + { + + if (!is_null($file_output_result) && (!preg_match("/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/", $file_output_result))) { + throw new \InvalidArgumentException("invalid value for $file_output_result when calling MergeJobStatusResult., must conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/."); + } + + $this->container['file_output_result'] = $file_output_result; + + return $this; + } + + /** + * Gets error_message + * + * @return string + */ + public function getErrorMessage() + { + return $this->container['error_message']; + } + + /** + * Sets error_message + * + * @param string $error_message Error message (if any) + * + * @return $this + */ + public function setErrorMessage($error_message) + { + $this->container['error_message'] = $error_message; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/PptxPageLayoutInformation.php b/lib/Model/PptxPageLayoutInformation.php new file mode 100644 index 0000000..467127c --- /dev/null +++ b/lib/Model/PptxPageLayoutInformation.php @@ -0,0 +1,396 @@ + 'bool', + 'orientation' => 'string', + 'width' => 'int', + 'height' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'successful' => null, + 'orientation' => null, + 'width' => 'int32', + 'height' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'successful' => 'Successful', + 'orientation' => 'Orientation', + 'width' => 'Width', + 'height' => 'Height' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'successful' => 'setSuccessful', + 'orientation' => 'setOrientation', + 'width' => 'setWidth', + 'height' => 'setHeight' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'successful' => 'getSuccessful', + 'orientation' => 'getOrientation', + 'width' => 'getWidth', + 'height' => 'getHeight' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['successful'] = isset($data['successful']) ? $data['successful'] : null; + $this->container['orientation'] = isset($data['orientation']) ? $data['orientation'] : null; + $this->container['width'] = isset($data['width']) ? $data['width'] : null; + $this->container['height'] = isset($data['height']) ? $data['height'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets successful + * + * @return bool + */ + public function getSuccessful() + { + return $this->container['successful']; + } + + /** + * Sets successful + * + * @param bool $successful True if successful, false otherwise + * + * @return $this + */ + public function setSuccessful($successful) + { + $this->container['successful'] = $successful; + + return $this; + } + + /** + * Gets orientation + * + * @return string + */ + public function getOrientation() + { + return $this->container['orientation']; + } + + /** + * Sets orientation + * + * @param string $orientation Orientation of the presentation, either portrait or landscape + * + * @return $this + */ + public function setOrientation($orientation) + { + $this->container['orientation'] = $orientation; + + return $this; + } + + /** + * Gets width + * + * @return int + */ + public function getWidth() + { + return $this->container['width']; + } + + /** + * Sets width + * + * @param int $width Width of the presentation in Emu, where 1 inch equals 914400 emu. + * + * @return $this + */ + public function setWidth($width) + { + $this->container['width'] = $width; + + return $this; + } + + /** + * Gets height + * + * @return int + */ + public function getHeight() + { + return $this->container['height']; + } + + /** + * Sets height + * + * @param int $height Height of the presentation in Emu, where 1 inch equals 914400 emu. + * + * @return $this + */ + public function setHeight($height) + { + $this->container['height'] = $height; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/packageconfig.json b/packageconfig.json index 3f6f833..e1f1413 100644 --- a/packageconfig.json +++ b/packageconfig.json @@ -1,5 +1,5 @@ { - "artifactVersion": "3.1.1", + "artifactVersion": "3.2.0", "gitUserId": "Cloudmersive", "gitRepoId": "Cloudmersive.APIClient.PHP.DocumentAndDataConvert", "composerVendorName": "cloudmersive", diff --git a/test/Api/ConvertDocumentApiTest.php b/test/Api/ConvertDocumentApiTest.php index a9853b6..29414fa 100644 --- a/test/Api/ConvertDocumentApiTest.php +++ b/test/Api/ConvertDocumentApiTest.php @@ -101,6 +101,16 @@ public function testConvertDocumentAutodetectToPdf() { } + /** + * Test case for convertDocumentAutodetectToPdfBatchJob + * + * Convert Document to PDF as Batch Job. + * + */ + public function testConvertDocumentAutodetectToPdfBatchJob() + { + } + /** * Test case for convertDocumentAutodetectToPngArray * @@ -321,6 +331,16 @@ public function testConvertDocumentEmlToPng() { } + /** + * Test case for convertDocumentGetAsyncJobStatus + * + * Get the status and result of a Convert Document Batch Job. + * + */ + public function testConvertDocumentGetAsyncJobStatus() + { + } + /** * Test case for convertDocumentGetFileTypeIcon * @@ -641,6 +661,16 @@ public function testConvertDocumentPdfToPptx() { } + /** + * Test case for convertDocumentPdfToTiff + * + * Convert PDF to TIFF image. + * + */ + public function testConvertDocumentPdfToTiff() + { + } + /** * Test case for convertDocumentPdfToTxt * diff --git a/test/Api/EditDocumentApiTest.php b/test/Api/EditDocumentApiTest.php index 74276d5..ad94c96 100644 --- a/test/Api/EditDocumentApiTest.php +++ b/test/Api/EditDocumentApiTest.php @@ -521,6 +521,16 @@ public function testEditDocumentPptxDeleteSlides() { } + /** + * Test case for editDocumentPptxEditSizeAndOrientation + * + * Set the size and/or orientation of a PowerPoint PPTX presentation document. + * + */ + public function testEditDocumentPptxEditSizeAndOrientation() + { + } + /** * Test case for editDocumentPptxGetMacroInformation * @@ -531,6 +541,16 @@ public function testEditDocumentPptxGetMacroInformation() { } + /** + * Test case for editDocumentPptxGetSizeAndOrientation + * + * Get the page layout information, including size and orientation of a PowerPoint PPTX presentation document. + * + */ + public function testEditDocumentPptxGetSizeAndOrientation() + { + } + /** * Test case for editDocumentPptxReplace * diff --git a/test/Api/EditPdfApiTest.php b/test/Api/EditPdfApiTest.php index 6cc23c3..6c062e7 100644 --- a/test/Api/EditPdfApiTest.php +++ b/test/Api/EditPdfApiTest.php @@ -111,6 +111,16 @@ public function testEditPdfDeletePages() { } + /** + * Test case for editPdfDeletePagesBatchJob + * + * Remove, delete pages from a PDF document as Batch Job. + * + */ + public function testEditPdfDeletePagesBatchJob() + { + } + /** * Test case for editPdfEncrypt * @@ -131,6 +141,16 @@ public function testEditPdfGetAnnotations() { } + /** + * Test case for editPdfGetAsyncJobStatus + * + * Get the status and result of a PDF Batch Job. + * + */ + public function testEditPdfGetAsyncJobStatus() + { + } + /** * Test case for editPdfGetFormFields * @@ -171,6 +191,16 @@ public function testEditPdfInsertPages() { } + /** + * Test case for editPdfInsertPagesBatchJob + * + * Insert, copy pages from one PDF document into another as a batch job. + * + */ + public function testEditPdfInsertPagesBatchJob() + { + } + /** * Test case for editPdfLinearize * @@ -191,6 +221,16 @@ public function testEditPdfRasterize() { } + /** + * Test case for editPdfRasterizeBatchJob + * + * Rasterize a PDF to an image-based PDF as Batch Job. + * + */ + public function testEditPdfRasterizeBatchJob() + { + } + /** * Test case for editPdfReduceFileSize * diff --git a/test/Api/MergeDocumentApiTest.php b/test/Api/MergeDocumentApiTest.php index 8bb32bb..76d202c 100644 --- a/test/Api/MergeDocumentApiTest.php +++ b/test/Api/MergeDocumentApiTest.php @@ -71,6 +71,16 @@ public static function tearDownAfterClass() { } + /** + * Test case for mergeDocumentBatchJobCreate + * + * Merge an array of Documents into a Single Document by Page as a Batch Job. + * + */ + public function testMergeDocumentBatchJobCreate() + { + } + /** * Test case for mergeDocumentDocx * @@ -101,6 +111,16 @@ public function testMergeDocumentDocxMultiArray() { } + /** + * Test case for mergeDocumentGetAsyncJobStatus + * + * Get the status and result of a Merge Document Batch Job. + * + */ + public function testMergeDocumentGetAsyncJobStatus() + { + } + /** * Test case for mergeDocumentHtml * diff --git a/test/Api/SplitDocumentApiTest.php b/test/Api/SplitDocumentApiTest.php index 1143398..a3d3d64 100644 --- a/test/Api/SplitDocumentApiTest.php +++ b/test/Api/SplitDocumentApiTest.php @@ -94,7 +94,7 @@ public function testSplitDocumentDocx() /** * Test case for splitDocumentGetAsyncJobStatus * - * Get the status and result of a Batch Job. + * Get the status and result of a Split Document Batch Job. * */ public function testSplitDocumentGetAsyncJobStatus() diff --git a/test/Api/ValidateDocumentApiTest.php b/test/Api/ValidateDocumentApiTest.php index d6d57c7..7f1bb75 100644 --- a/test/Api/ValidateDocumentApiTest.php +++ b/test/Api/ValidateDocumentApiTest.php @@ -101,6 +101,16 @@ public function testValidateDocumentDocValidation() { } + /** + * Test case for validateDocumentDocxRepair + * + * Repair a Word document (DOCX) that contains errors. + * + */ + public function testValidateDocumentDocxRepair() + { + } + /** * Test case for validateDocumentDocxValidation * @@ -231,6 +241,16 @@ public function testValidateDocumentPptValidation() { } + /** + * Test case for validateDocumentPptxRepair + * + * Repair a PowerPoint presentation (PPTX) that contains errors. + * + */ + public function testValidateDocumentPptxRepair() + { + } + /** * Test case for validateDocumentPptxValidation * @@ -291,6 +311,16 @@ public function testValidateDocumentXlsValidation() { } + /** + * Test case for validateDocumentXlsxRepair + * + * Repair an Excel spreadsheet (XLSX) that contains errors. + * + */ + public function testValidateDocumentXlsxRepair() + { + } + /** * Test case for validateDocumentXlsxValidation * diff --git a/test/Model/ConvertDocumentBatchJobCreateResultTest.php b/test/Model/ConvertDocumentBatchJobCreateResultTest.php new file mode 100644 index 0000000..be77060 --- /dev/null +++ b/test/Model/ConvertDocumentBatchJobCreateResultTest.php @@ -0,0 +1,92 @@ + * @author Jordi Boggiano - * @see https://www.php-fig.org/psr/psr-0/ - * @see https://www.php-fig.org/psr/psr-4/ + * @see http://www.php-fig.org/psr/psr-0/ + * @see http://www.php-fig.org/psr/psr-4/ */ class ClassLoader { - /** @var \Closure(string):void */ - private static $includeFile; - - /** @var string|null */ - private $vendorDir; - // PSR-4 - /** - * @var array> - */ private $prefixLengthsPsr4 = array(); - /** - * @var array> - */ private $prefixDirsPsr4 = array(); - /** - * @var list - */ private $fallbackDirsPsr4 = array(); // PSR-0 - /** - * List of PSR-0 prefixes - * - * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) - * - * @var array>> - */ private $prefixesPsr0 = array(); - /** - * @var list - */ private $fallbackDirsPsr0 = array(); - /** @var bool */ private $useIncludePath = false; - - /** - * @var array - */ private $classMap = array(); - - /** @var bool */ private $classMapAuthoritative = false; - - /** - * @var array - */ private $missingClasses = array(); - - /** @var string|null */ private $apcuPrefix; - /** - * @var array - */ - private static $registeredLoaders = array(); - - /** - * @param string|null $vendorDir - */ - public function __construct($vendorDir = null) - { - $this->vendorDir = $vendorDir; - self::initializeIncludeClosure(); - } - - /** - * @return array> - */ public function getPrefixes() { if (!empty($this->prefixesPsr0)) { - return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); + return call_user_func_array('array_merge', $this->prefixesPsr0); } return array(); } - /** - * @return array> - */ public function getPrefixesPsr4() { return $this->prefixDirsPsr4; } - /** - * @return list - */ public function getFallbackDirs() { return $this->fallbackDirsPsr0; } - /** - * @return list - */ public function getFallbackDirsPsr4() { return $this->fallbackDirsPsr4; } - /** - * @return array Array of classname => path - */ public function getClassMap() { return $this->classMap; } /** - * @param array $classMap Class to filename map - * - * @return void + * @param array $classMap Class to filename map */ public function addClassMap(array $classMap) { @@ -171,25 +102,22 @@ public function addClassMap(array $classMap) * Registers a set of PSR-0 directories for a given prefix, either * appending or prepending to the ones previously set for this prefix. * - * @param string $prefix The prefix - * @param list|string $paths The PSR-0 root directories - * @param bool $prepend Whether to prepend the directories - * - * @return void + * @param string $prefix The prefix + * @param array|string $paths The PSR-0 root directories + * @param bool $prepend Whether to prepend the directories */ public function add($prefix, $paths, $prepend = false) { - $paths = (array) $paths; if (!$prefix) { if ($prepend) { $this->fallbackDirsPsr0 = array_merge( - $paths, + (array) $paths, $this->fallbackDirsPsr0 ); } else { $this->fallbackDirsPsr0 = array_merge( $this->fallbackDirsPsr0, - $paths + (array) $paths ); } @@ -198,19 +126,19 @@ public function add($prefix, $paths, $prepend = false) $first = $prefix[0]; if (!isset($this->prefixesPsr0[$first][$prefix])) { - $this->prefixesPsr0[$first][$prefix] = $paths; + $this->prefixesPsr0[$first][$prefix] = (array) $paths; return; } if ($prepend) { $this->prefixesPsr0[$first][$prefix] = array_merge( - $paths, + (array) $paths, $this->prefixesPsr0[$first][$prefix] ); } else { $this->prefixesPsr0[$first][$prefix] = array_merge( $this->prefixesPsr0[$first][$prefix], - $paths + (array) $paths ); } } @@ -219,28 +147,25 @@ public function add($prefix, $paths, $prepend = false) * Registers a set of PSR-4 directories for a given namespace, either * appending or prepending to the ones previously set for this namespace. * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param list|string $paths The PSR-4 base directories - * @param bool $prepend Whether to prepend the directories + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param array|string $paths The PSR-4 base directories + * @param bool $prepend Whether to prepend the directories * * @throws \InvalidArgumentException - * - * @return void */ public function addPsr4($prefix, $paths, $prepend = false) { - $paths = (array) $paths; if (!$prefix) { // Register directories for the root namespace. if ($prepend) { $this->fallbackDirsPsr4 = array_merge( - $paths, + (array) $paths, $this->fallbackDirsPsr4 ); } else { $this->fallbackDirsPsr4 = array_merge( $this->fallbackDirsPsr4, - $paths + (array) $paths ); } } elseif (!isset($this->prefixDirsPsr4[$prefix])) { @@ -250,18 +175,18 @@ public function addPsr4($prefix, $paths, $prepend = false) throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); } $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; - $this->prefixDirsPsr4[$prefix] = $paths; + $this->prefixDirsPsr4[$prefix] = (array) $paths; } elseif ($prepend) { // Prepend directories for an already registered namespace. $this->prefixDirsPsr4[$prefix] = array_merge( - $paths, + (array) $paths, $this->prefixDirsPsr4[$prefix] ); } else { // Append directories for an already registered namespace. $this->prefixDirsPsr4[$prefix] = array_merge( $this->prefixDirsPsr4[$prefix], - $paths + (array) $paths ); } } @@ -270,10 +195,8 @@ public function addPsr4($prefix, $paths, $prepend = false) * Registers a set of PSR-0 directories for a given prefix, * replacing any others previously set for this prefix. * - * @param string $prefix The prefix - * @param list|string $paths The PSR-0 base directories - * - * @return void + * @param string $prefix The prefix + * @param array|string $paths The PSR-0 base directories */ public function set($prefix, $paths) { @@ -288,12 +211,10 @@ public function set($prefix, $paths) * Registers a set of PSR-4 directories for a given namespace, * replacing any others previously set for this namespace. * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param list|string $paths The PSR-4 base directories + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param array|string $paths The PSR-4 base directories * * @throws \InvalidArgumentException - * - * @return void */ public function setPsr4($prefix, $paths) { @@ -313,8 +234,6 @@ public function setPsr4($prefix, $paths) * Turns on searching the include path for class files. * * @param bool $useIncludePath - * - * @return void */ public function setUseIncludePath($useIncludePath) { @@ -337,8 +256,6 @@ public function getUseIncludePath() * that have not been registered with the class map. * * @param bool $classMapAuthoritative - * - * @return void */ public function setClassMapAuthoritative($classMapAuthoritative) { @@ -359,8 +276,6 @@ public function isClassMapAuthoritative() * APCu prefix to use to cache found/not-found classes, if the extension is enabled. * * @param string|null $apcuPrefix - * - * @return void */ public function setApcuPrefix($apcuPrefix) { @@ -381,55 +296,33 @@ public function getApcuPrefix() * Registers this instance as an autoloader. * * @param bool $prepend Whether to prepend the autoloader or not - * - * @return void */ public function register($prepend = false) { spl_autoload_register(array($this, 'loadClass'), true, $prepend); - - if (null === $this->vendorDir) { - return; - } - - if ($prepend) { - self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; - } else { - unset(self::$registeredLoaders[$this->vendorDir]); - self::$registeredLoaders[$this->vendorDir] = $this; - } } /** * Unregisters this instance as an autoloader. - * - * @return void */ public function unregister() { spl_autoload_unregister(array($this, 'loadClass')); - - if (null !== $this->vendorDir) { - unset(self::$registeredLoaders[$this->vendorDir]); - } } /** * Loads the given class or interface. * * @param string $class The name of the class - * @return true|null True if loaded, null otherwise + * @return bool|null True if loaded, null otherwise */ public function loadClass($class) { if ($file = $this->findFile($class)) { - $includeFile = self::$includeFile; - $includeFile($file); + includeFile($file); return true; } - - return null; } /** @@ -474,21 +367,6 @@ public function findFile($class) return $file; } - /** - * Returns the currently registered loaders keyed by their corresponding vendor directories. - * - * @return array - */ - public static function getRegisteredLoaders() - { - return self::$registeredLoaders; - } - - /** - * @param string $class - * @param string $ext - * @return string|false - */ private function findFileWithExtension($class, $ext) { // PSR-4 lookup @@ -554,26 +432,14 @@ private function findFileWithExtension($class, $ext) return false; } +} - /** - * @return void - */ - private static function initializeIncludeClosure() - { - if (self::$includeFile !== null) { - return; - } - - /** - * Scope isolated include. - * - * Prevents access to $this/self from included files. - * - * @param string $file - * @return void - */ - self::$includeFile = \Closure::bind(static function($file) { - include $file; - }, null, null); - } +/** + * Scope isolated include. + * + * Prevents access to $this/self from included files. + */ +function includeFile($file) +{ + include $file; } diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php index 9b96cd7..6745948 100644 --- a/vendor/composer/autoload_classmap.php +++ b/vendor/composer/autoload_classmap.php @@ -2,12 +2,11 @@ // autoload_classmap.php @generated by Composer -$vendorDir = dirname(__DIR__); +$vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( 'Attribute' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/Attribute.php', - 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', 'File_Iterator' => $vendorDir . '/phpunit/php-file-iterator/src/Iterator.php', 'File_Iterator_Facade' => $vendorDir . '/phpunit/php-file-iterator/src/Facade.php', 'File_Iterator_Factory' => $vendorDir . '/phpunit/php-file-iterator/src/Factory.php', diff --git a/vendor/composer/autoload_files.php b/vendor/composer/autoload_files.php index d6d2289..a264ebc 100644 --- a/vendor/composer/autoload_files.php +++ b/vendor/composer/autoload_files.php @@ -2,19 +2,19 @@ // autoload_files.php @generated by Composer -$vendorDir = dirname(__DIR__); +$vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( - 'a4a119a56e50fbb293281d9a48007e0e' => $vendorDir . '/symfony/polyfill-php80/bootstrap.php', '6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php', - '320cde22f66dd4f5d3fd621d3e88b98f' => $vendorDir . '/symfony/polyfill-ctype/bootstrap.php', + 'a4a119a56e50fbb293281d9a48007e0e' => $vendorDir . '/symfony/polyfill-php80/bootstrap.php', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php', + '320cde22f66dd4f5d3fd621d3e88b98f' => $vendorDir . '/symfony/polyfill-ctype/bootstrap.php', '0d59ee240a4cd96ddbb4ff164fccea4d' => $vendorDir . '/symfony/polyfill-php73/bootstrap.php', '8825ede83f2f289127722d4e842cf7e8' => $vendorDir . '/symfony/polyfill-intl-grapheme/bootstrap.php', 'e69f7f6ee287b969198c3c9d6777bd38' => $vendorDir . '/symfony/polyfill-intl-normalizer/bootstrap.php', - '7b11c4dc42b3b3023073cb14e519683c' => $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php', 'b6b991a57620e2fb6b2f66f03fe9ddc2' => $vendorDir . '/symfony/string/Resources/functions.php', + '7b11c4dc42b3b3023073cb14e519683c' => $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php', '25072dd6e2470089de65ae7bf11d3109' => $vendorDir . '/symfony/polyfill-php72/bootstrap.php', '37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php', ); diff --git a/vendor/composer/autoload_namespaces.php b/vendor/composer/autoload_namespaces.php index 15a2ff3..b7fc012 100644 --- a/vendor/composer/autoload_namespaces.php +++ b/vendor/composer/autoload_namespaces.php @@ -2,7 +2,7 @@ // autoload_namespaces.php @generated by Composer -$vendorDir = dirname(__DIR__); +$vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( diff --git a/vendor/composer/autoload_psr4.php b/vendor/composer/autoload_psr4.php index 36fcf9f..cfc0968 100644 --- a/vendor/composer/autoload_psr4.php +++ b/vendor/composer/autoload_psr4.php @@ -2,7 +2,7 @@ // autoload_psr4.php @generated by Composer -$vendorDir = dirname(__DIR__); +$vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 04b1c7f..9e0cfa5 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -13,38 +13,58 @@ public static function loadClassLoader($class) } } - /** - * @return \Composer\Autoload\ClassLoader - */ public static function getLoader() { if (null !== self::$loader) { return self::$loader; } - require __DIR__ . '/platform_check.php'; - spl_autoload_register(array('ComposerAutoloaderInit03c8c6a2d30d7b359ef0bb31dffaa378', 'loadClassLoader'), true, true); - self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); + self::$loader = $loader = new \Composer\Autoload\ClassLoader(); spl_autoload_unregister(array('ComposerAutoloaderInit03c8c6a2d30d7b359ef0bb31dffaa378', 'loadClassLoader')); - require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit03c8c6a2d30d7b359ef0bb31dffaa378::getInitializer($loader)); + $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); + if ($useStaticLoader) { + require_once __DIR__ . '/autoload_static.php'; - $loader->register(true); + call_user_func(\Composer\Autoload\ComposerStaticInit03c8c6a2d30d7b359ef0bb31dffaa378::getInitializer($loader)); + } else { + $map = require __DIR__ . '/autoload_namespaces.php'; + foreach ($map as $namespace => $path) { + $loader->set($namespace, $path); + } - $filesToLoad = \Composer\Autoload\ComposerStaticInit03c8c6a2d30d7b359ef0bb31dffaa378::$files; - $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { - if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { - $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; + $map = require __DIR__ . '/autoload_psr4.php'; + foreach ($map as $namespace => $path) { + $loader->setPsr4($namespace, $path); + } - require $file; + $classMap = require __DIR__ . '/autoload_classmap.php'; + if ($classMap) { + $loader->addClassMap($classMap); } - }, null, null); - foreach ($filesToLoad as $fileIdentifier => $file) { - $requireFile($fileIdentifier, $file); + } + + $loader->register(true); + + if ($useStaticLoader) { + $includeFiles = Composer\Autoload\ComposerStaticInit03c8c6a2d30d7b359ef0bb31dffaa378::$files; + } else { + $includeFiles = require __DIR__ . '/autoload_files.php'; + } + foreach ($includeFiles as $fileIdentifier => $file) { + composerRequire03c8c6a2d30d7b359ef0bb31dffaa378($fileIdentifier, $file); } return $loader; } } + +function composerRequire03c8c6a2d30d7b359ef0bb31dffaa378($fileIdentifier, $file) +{ + if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { + require $file; + + $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; + } +} diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 0fa26d9..0525bd1 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -7,15 +7,15 @@ class ComposerStaticInit03c8c6a2d30d7b359ef0bb31dffaa378 { public static $files = array ( - 'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php', '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php', - '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php', + 'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php', + '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php', '0d59ee240a4cd96ddbb4ff164fccea4d' => __DIR__ . '/..' . '/symfony/polyfill-php73/bootstrap.php', '8825ede83f2f289127722d4e842cf7e8' => __DIR__ . '/..' . '/symfony/polyfill-intl-grapheme/bootstrap.php', 'e69f7f6ee287b969198c3c9d6777bd38' => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer/bootstrap.php', - '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php', 'b6b991a57620e2fb6b2f66f03fe9ddc2' => __DIR__ . '/..' . '/symfony/string/Resources/functions.php', + '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php', '25072dd6e2470089de65ae7bf11d3109' => __DIR__ . '/..' . '/symfony/polyfill-php72/bootstrap.php', '37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php', ); @@ -248,7 +248,6 @@ class ComposerStaticInit03c8c6a2d30d7b359ef0bb31dffaa378 public static $classMap = array ( 'Attribute' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/Attribute.php', - 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', 'File_Iterator' => __DIR__ . '/..' . '/phpunit/php-file-iterator/src/Iterator.php', 'File_Iterator_Facade' => __DIR__ . '/..' . '/phpunit/php-file-iterator/src/Facade.php', 'File_Iterator_Factory' => __DIR__ . '/..' . '/phpunit/php-file-iterator/src/Factory.php', diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 9aea264..639b4ba 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -1,4321 +1,3806 @@ -{ - "packages": [ - { - "name": "composer/pcre", - "version": "1.0.1", - "version_normalized": "1.0.1.0", - "source": { - "type": "git", - "url": "https://github.com/composer/pcre.git", - "reference": "67a32d7d6f9f560b726ab25a061b38ff3a80c560" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/composer/pcre/zipball/67a32d7d6f9f560b726ab25a061b38ff3a80c560", - "reference": "67a32d7d6f9f560b726ab25a061b38ff3a80c560", - "shasum": "" - }, - "require": { - "php": "^5.3.2 || ^7.0 || ^8.0" - }, - "require-dev": { - "phpstan/phpstan": "^1.3", - "phpstan/phpstan-strict-rules": "^1.1", - "symfony/phpunit-bridge": "^4.2 || ^5" - }, - "time": "2022-01-21T20:24:37+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Composer\\Pcre\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jordi Boggiano", - "email": "j.boggiano@seld.be", - "homepage": "http://seld.be" - } - ], - "description": "PCRE wrapping library that offers type-safe preg_* replacements.", - "keywords": [ - "PCRE", - "preg", - "regex", - "regular expression" - ], - "support": { - "issues": "https://github.com/composer/pcre/issues", - "source": "https://github.com/composer/pcre/tree/1.0.1" - }, - "funding": [ - { - "url": "https://packagist.com", - "type": "custom" - }, - { - "url": "https://github.com/composer", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" - } - ], - "install-path": "./pcre" - }, - { - "name": "composer/semver", - "version": "3.3.2", - "version_normalized": "3.3.2.0", - "source": { - "type": "git", - "url": "https://github.com/composer/semver.git", - "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/3953f23262f2bff1919fc82183ad9acb13ff62c9", - "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9", - "shasum": "" - }, - "require": { - "php": "^5.3.2 || ^7.0 || ^8.0" - }, - "require-dev": { - "phpstan/phpstan": "^1.4", - "symfony/phpunit-bridge": "^4.2 || ^5" - }, - "time": "2022-04-01T19:23:25+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Composer\\Semver\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nils Adermann", - "email": "naderman@naderman.de", - "homepage": "http://www.naderman.de" - }, - { - "name": "Jordi Boggiano", - "email": "j.boggiano@seld.be", - "homepage": "http://seld.be" - }, - { - "name": "Rob Bast", - "email": "rob.bast@gmail.com", - "homepage": "http://robbast.nl" - } - ], - "description": "Semver library that offers utilities, version constraint parsing and validation.", - "keywords": [ - "semantic", - "semver", - "validation", - "versioning" - ], - "support": { - "irc": "irc://irc.freenode.org/composer", - "issues": "https://github.com/composer/semver/issues", - "source": "https://github.com/composer/semver/tree/3.3.2" - }, - "funding": [ - { - "url": "https://packagist.com", - "type": "custom" - }, - { - "url": "https://github.com/composer", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" - } - ], - "install-path": "./semver" - }, - { - "name": "composer/xdebug-handler", - "version": "2.0.5", - "version_normalized": "2.0.5.0", - "source": { - "type": "git", - "url": "https://github.com/composer/xdebug-handler.git", - "reference": "9e36aeed4616366d2b690bdce11f71e9178c579a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/9e36aeed4616366d2b690bdce11f71e9178c579a", - "reference": "9e36aeed4616366d2b690bdce11f71e9178c579a", - "shasum": "" - }, - "require": { - "composer/pcre": "^1", - "php": "^5.3.2 || ^7.0 || ^8.0", - "psr/log": "^1 || ^2 || ^3" - }, - "require-dev": { - "phpstan/phpstan": "^1.0", - "phpstan/phpstan-strict-rules": "^1.1", - "symfony/phpunit-bridge": "^4.2 || ^5.0 || ^6.0" - }, - "time": "2022-02-24T20:20:32+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "Composer\\XdebugHandler\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "John Stevenson", - "email": "john-stevenson@blueyonder.co.uk" - } - ], - "description": "Restarts a process without Xdebug.", - "keywords": [ - "Xdebug", - "performance" - ], - "support": { - "irc": "irc://irc.freenode.org/composer", - "issues": "https://github.com/composer/xdebug-handler/issues", - "source": "https://github.com/composer/xdebug-handler/tree/2.0.5" - }, - "funding": [ - { - "url": "https://packagist.com", - "type": "custom" - }, - { - "url": "https://github.com/composer", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" - } - ], - "install-path": "./xdebug-handler" - }, - { - "name": "doctrine/annotations", - "version": "1.14.3", - "version_normalized": "1.14.3.0", - "source": { - "type": "git", - "url": "https://github.com/doctrine/annotations.git", - "reference": "fb0d71a7393298a7b232cbf4c8b1f73f3ec3d5af" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/annotations/zipball/fb0d71a7393298a7b232cbf4c8b1f73f3ec3d5af", - "reference": "fb0d71a7393298a7b232cbf4c8b1f73f3ec3d5af", - "shasum": "" - }, - "require": { - "doctrine/lexer": "^1 || ^2", - "ext-tokenizer": "*", - "php": "^7.1 || ^8.0", - "psr/cache": "^1 || ^2 || ^3" - }, - "require-dev": { - "doctrine/cache": "^1.11 || ^2.0", - "doctrine/coding-standard": "^9 || ^10", - "phpstan/phpstan": "~1.4.10 || ^1.8.0", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "symfony/cache": "^4.4 || ^5.4 || ^6", - "vimeo/psalm": "^4.10" - }, - "suggest": { - "php": "PHP 8.0 or higher comes with attributes, a native replacement for annotations" - }, - "time": "2023-02-01T09:20:38+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" - }, - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de" - }, - { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com" - }, - { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com" - } - ], - "description": "Docblock Annotations Parser", - "homepage": "https://www.doctrine-project.org/projects/annotations.html", - "keywords": [ - "annotations", - "docblock", - "parser" - ], - "support": { - "issues": "https://github.com/doctrine/annotations/issues", - "source": "https://github.com/doctrine/annotations/tree/1.14.3" - }, - "install-path": "../doctrine/annotations" - }, - { - "name": "doctrine/deprecations", - "version": "v1.1.1", - "version_normalized": "1.1.1.0", - "source": { - "type": "git", - "url": "https://github.com/doctrine/deprecations.git", - "reference": "612a3ee5ab0d5dd97b7cf3874a6efe24325efac3" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/deprecations/zipball/612a3ee5ab0d5dd97b7cf3874a6efe24325efac3", - "reference": "612a3ee5ab0d5dd97b7cf3874a6efe24325efac3", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0" - }, - "require-dev": { - "doctrine/coding-standard": "^9", - "phpstan/phpstan": "1.4.10 || 1.10.15", - "phpstan/phpstan-phpunit": "^1.0", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "psalm/plugin-phpunit": "0.18.4", - "psr/log": "^1 || ^2 || ^3", - "vimeo/psalm": "4.30.0 || 5.12.0" - }, - "suggest": { - "psr/log": "Allows logging deprecations via PSR-3 logger implementation" - }, - "time": "2023-06-03T09:27:29+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "Doctrine\\Deprecations\\": "lib/Doctrine/Deprecations" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", - "homepage": "https://www.doctrine-project.org/", - "support": { - "issues": "https://github.com/doctrine/deprecations/issues", - "source": "https://github.com/doctrine/deprecations/tree/v1.1.1" - }, - "install-path": "../doctrine/deprecations" - }, - { - "name": "doctrine/instantiator", - "version": "1.5.0", - "version_normalized": "1.5.0.0", - "source": { - "type": "git", - "url": "https://github.com/doctrine/instantiator.git", - "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b", - "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0" - }, - "require-dev": { - "doctrine/coding-standard": "^9 || ^11", - "ext-pdo": "*", - "ext-phar": "*", - "phpbench/phpbench": "^0.16 || ^1", - "phpstan/phpstan": "^1.4", - "phpstan/phpstan-phpunit": "^1", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "vimeo/psalm": "^4.30 || ^5.4" - }, - "time": "2022-12-30T00:15:36+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Marco Pivetta", - "email": "ocramius@gmail.com", - "homepage": "https://ocramius.github.io/" - } - ], - "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", - "homepage": "https://www.doctrine-project.org/projects/instantiator.html", - "keywords": [ - "constructor", - "instantiate" - ], - "support": { - "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/1.5.0" - }, - "funding": [ - { - "url": "https://www.doctrine-project.org/sponsorship.html", - "type": "custom" - }, - { - "url": "https://www.patreon.com/phpdoctrine", - "type": "patreon" - }, - { - "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", - "type": "tidelift" - } - ], - "install-path": "../doctrine/instantiator" - }, - { - "name": "doctrine/lexer", - "version": "2.1.0", - "version_normalized": "2.1.0.0", - "source": { - "type": "git", - "url": "https://github.com/doctrine/lexer.git", - "reference": "39ab8fcf5a51ce4b85ca97c7a7d033eb12831124" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/lexer/zipball/39ab8fcf5a51ce4b85ca97c7a7d033eb12831124", - "reference": "39ab8fcf5a51ce4b85ca97c7a7d033eb12831124", - "shasum": "" - }, - "require": { - "doctrine/deprecations": "^1.0", - "php": "^7.1 || ^8.0" - }, - "require-dev": { - "doctrine/coding-standard": "^9 || ^10", - "phpstan/phpstan": "^1.3", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "psalm/plugin-phpunit": "^0.18.3", - "vimeo/psalm": "^4.11 || ^5.0" - }, - "time": "2022-12-14T08:49:07+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "Doctrine\\Common\\Lexer\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" - }, - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com" - } - ], - "description": "PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.", - "homepage": "https://www.doctrine-project.org/projects/lexer.html", - "keywords": [ - "annotations", - "docblock", - "lexer", - "parser", - "php" - ], - "support": { - "issues": "https://github.com/doctrine/lexer/issues", - "source": "https://github.com/doctrine/lexer/tree/2.1.0" - }, - "funding": [ - { - "url": "https://www.doctrine-project.org/sponsorship.html", - "type": "custom" - }, - { - "url": "https://www.patreon.com/phpdoctrine", - "type": "patreon" - }, - { - "url": "https://tidelift.com/funding/github/packagist/doctrine%2Flexer", - "type": "tidelift" - } - ], - "install-path": "../doctrine/lexer" - }, - { - "name": "friendsofphp/php-cs-fixer", - "version": "v2.19.3", - "version_normalized": "2.19.3.0", - "source": { - "type": "git", - "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git", - "reference": "75ac86f33fab4714ea5a39a396784d83ae3b5ed8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/75ac86f33fab4714ea5a39a396784d83ae3b5ed8", - "reference": "75ac86f33fab4714ea5a39a396784d83ae3b5ed8", - "shasum": "" - }, - "require": { - "composer/semver": "^1.4 || ^2.0 || ^3.0", - "composer/xdebug-handler": "^1.2 || ^2.0", - "doctrine/annotations": "^1.2", - "ext-json": "*", - "ext-tokenizer": "*", - "php": "^5.6 || ^7.0 || ^8.0", - "php-cs-fixer/diff": "^1.3", - "symfony/console": "^3.4.43 || ^4.1.6 || ^5.0", - "symfony/event-dispatcher": "^3.0 || ^4.0 || ^5.0", - "symfony/filesystem": "^3.0 || ^4.0 || ^5.0", - "symfony/finder": "^3.0 || ^4.0 || ^5.0", - "symfony/options-resolver": "^3.0 || ^4.0 || ^5.0", - "symfony/polyfill-php70": "^1.0", - "symfony/polyfill-php72": "^1.4", - "symfony/process": "^3.0 || ^4.0 || ^5.0", - "symfony/stopwatch": "^3.0 || ^4.0 || ^5.0" - }, - "require-dev": { - "justinrainbow/json-schema": "^5.0", - "keradus/cli-executor": "^1.4", - "mikey179/vfsstream": "^1.6", - "php-coveralls/php-coveralls": "^2.4.2", - "php-cs-fixer/accessible-object": "^1.0", - "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.2", - "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.2.1", - "phpspec/prophecy-phpunit": "^1.1 || ^2.0", - "phpunit/phpunit": "^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.13 || ^9.5", - "phpunitgoodpractices/polyfill": "^1.5", - "phpunitgoodpractices/traits": "^1.9.1", - "sanmai/phpunit-legacy-adapter": "^6.4 || ^8.2.1", - "symfony/phpunit-bridge": "^5.2.1", - "symfony/yaml": "^3.0 || ^4.0 || ^5.0" - }, - "suggest": { - "ext-dom": "For handling output formats in XML", - "ext-mbstring": "For handling non-UTF8 characters.", - "php-cs-fixer/phpunit-constraint-isidenticalstring": "For IsIdenticalString constraint.", - "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "For XmlMatchesXsd constraint.", - "symfony/polyfill-mbstring": "When enabling `ext-mbstring` is not possible." - }, - "time": "2021-11-15T17:17:55+00:00", - "bin": [ - "php-cs-fixer" - ], - "type": "application", - "extra": { - "branch-alias": { - "dev-master": "2.19-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "PhpCsFixer\\": "src/" - }, - "classmap": [ - "tests/Test/AbstractFixerTestCase.php", - "tests/Test/AbstractIntegrationCaseFactory.php", - "tests/Test/AbstractIntegrationTestCase.php", - "tests/Test/Assert/AssertTokensTrait.php", - "tests/Test/IntegrationCase.php", - "tests/Test/IntegrationCaseFactory.php", - "tests/Test/IntegrationCaseFactoryInterface.php", - "tests/Test/InternalIntegrationCaseFactory.php", - "tests/Test/IsIdenticalConstraint.php", - "tests/Test/TokensWithObservedTransformers.php", - "tests/TestCase.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Dariusz Rumiński", - "email": "dariusz.ruminski@gmail.com" - } - ], - "description": "A tool to automatically fix PHP code style", - "support": { - "issues": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues", - "source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v2.19.3" - }, - "funding": [ - { - "url": "https://github.com/keradus", - "type": "github" - } - ], - "install-path": "../friendsofphp/php-cs-fixer" - }, - { - "name": "guzzlehttp/guzzle", - "version": "7.7.0", - "version_normalized": "7.7.0.0", - "source": { - "type": "git", - "url": "https://github.com/guzzle/guzzle.git", - "reference": "fb7566caccf22d74d1ab270de3551f72a58399f5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/fb7566caccf22d74d1ab270de3551f72a58399f5", - "reference": "fb7566caccf22d74d1ab270de3551f72a58399f5", - "shasum": "" - }, - "require": { - "ext-json": "*", - "guzzlehttp/promises": "^1.5.3 || ^2.0", - "guzzlehttp/psr7": "^1.9.1 || ^2.4.5", - "php": "^7.2.5 || ^8.0", - "psr/http-client": "^1.0", - "symfony/deprecation-contracts": "^2.2 || ^3.0" - }, - "provide": { - "psr/http-client-implementation": "1.0" - }, - "require-dev": { - "bamarni/composer-bin-plugin": "^1.8.1", - "ext-curl": "*", - "php-http/client-integration-tests": "dev-master#2c025848417c1135031fdf9c728ee53d0a7ceaee as 3.0.999", - "php-http/message-factory": "^1.1", - "phpunit/phpunit": "^8.5.29 || ^9.5.23", - "psr/log": "^1.1 || ^2.0 || ^3.0" - }, - "suggest": { - "ext-curl": "Required for CURL handler support", - "ext-intl": "Required for Internationalized Domain Name (IDN) support", - "psr/log": "Required for using the Log middleware" - }, - "time": "2023-05-21T14:04:53+00:00", - "type": "library", - "extra": { - "bamarni-bin": { - "bin-links": true, - "forward-command": false - } - }, - "installation-source": "dist", - "autoload": { - "files": [ - "src/functions_include.php" - ], - "psr-4": { - "GuzzleHttp\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Graham Campbell", - "email": "hello@gjcampbell.co.uk", - "homepage": "https://github.com/GrahamCampbell" - }, - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - }, - { - "name": "Jeremy Lindblom", - "email": "jeremeamia@gmail.com", - "homepage": "https://github.com/jeremeamia" - }, - { - "name": "George Mponos", - "email": "gmponos@gmail.com", - "homepage": "https://github.com/gmponos" - }, - { - "name": "Tobias Nyholm", - "email": "tobias.nyholm@gmail.com", - "homepage": "https://github.com/Nyholm" - }, - { - "name": "Márk Sági-Kazár", - "email": "mark.sagikazar@gmail.com", - "homepage": "https://github.com/sagikazarmark" - }, - { - "name": "Tobias Schultze", - "email": "webmaster@tubo-world.de", - "homepage": "https://github.com/Tobion" - } - ], - "description": "Guzzle is a PHP HTTP client library", - "keywords": [ - "client", - "curl", - "framework", - "http", - "http client", - "psr-18", - "psr-7", - "rest", - "web service" - ], - "support": { - "issues": "https://github.com/guzzle/guzzle/issues", - "source": "https://github.com/guzzle/guzzle/tree/7.7.0" - }, - "funding": [ - { - "url": "https://github.com/GrahamCampbell", - "type": "github" - }, - { - "url": "https://github.com/Nyholm", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle", - "type": "tidelift" - } - ], - "install-path": "../guzzlehttp/guzzle" - }, - { - "name": "guzzlehttp/promises", - "version": "2.0.0", - "version_normalized": "2.0.0.0", - "source": { - "type": "git", - "url": "https://github.com/guzzle/promises.git", - "reference": "3a494dc7dc1d7d12e511890177ae2d0e6c107da6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/3a494dc7dc1d7d12e511890177ae2d0e6c107da6", - "reference": "3a494dc7dc1d7d12e511890177ae2d0e6c107da6", - "shasum": "" - }, - "require": { - "php": "^7.2.5 || ^8.0" - }, - "require-dev": { - "bamarni/composer-bin-plugin": "^1.8.1", - "phpunit/phpunit": "^8.5.29 || ^9.5.23" - }, - "time": "2023-05-21T13:50:22+00:00", - "type": "library", - "extra": { - "bamarni-bin": { - "bin-links": true, - "forward-command": false - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "GuzzleHttp\\Promise\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Graham Campbell", - "email": "hello@gjcampbell.co.uk", - "homepage": "https://github.com/GrahamCampbell" - }, - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - }, - { - "name": "Tobias Nyholm", - "email": "tobias.nyholm@gmail.com", - "homepage": "https://github.com/Nyholm" - }, - { - "name": "Tobias Schultze", - "email": "webmaster@tubo-world.de", - "homepage": "https://github.com/Tobion" - } - ], - "description": "Guzzle promises library", - "keywords": [ - "promise" - ], - "support": { - "issues": "https://github.com/guzzle/promises/issues", - "source": "https://github.com/guzzle/promises/tree/2.0.0" - }, - "funding": [ - { - "url": "https://github.com/GrahamCampbell", - "type": "github" - }, - { - "url": "https://github.com/Nyholm", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises", - "type": "tidelift" - } - ], - "install-path": "../guzzlehttp/promises" - }, - { - "name": "guzzlehttp/psr7", - "version": "2.5.0", - "version_normalized": "2.5.0.0", - "source": { - "type": "git", - "url": "https://github.com/guzzle/psr7.git", - "reference": "b635f279edd83fc275f822a1188157ffea568ff6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/b635f279edd83fc275f822a1188157ffea568ff6", - "reference": "b635f279edd83fc275f822a1188157ffea568ff6", - "shasum": "" - }, - "require": { - "php": "^7.2.5 || ^8.0", - "psr/http-factory": "^1.0", - "psr/http-message": "^1.1 || ^2.0", - "ralouphie/getallheaders": "^3.0" - }, - "provide": { - "psr/http-factory-implementation": "1.0", - "psr/http-message-implementation": "1.0" - }, - "require-dev": { - "bamarni/composer-bin-plugin": "^1.8.1", - "http-interop/http-factory-tests": "^0.9", - "phpunit/phpunit": "^8.5.29 || ^9.5.23" - }, - "suggest": { - "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" - }, - "time": "2023-04-17T16:11:26+00:00", - "type": "library", - "extra": { - "bamarni-bin": { - "bin-links": true, - "forward-command": false - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "GuzzleHttp\\Psr7\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Graham Campbell", - "email": "hello@gjcampbell.co.uk", - "homepage": "https://github.com/GrahamCampbell" - }, - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - }, - { - "name": "George Mponos", - "email": "gmponos@gmail.com", - "homepage": "https://github.com/gmponos" - }, - { - "name": "Tobias Nyholm", - "email": "tobias.nyholm@gmail.com", - "homepage": "https://github.com/Nyholm" - }, - { - "name": "Márk Sági-Kazár", - "email": "mark.sagikazar@gmail.com", - "homepage": "https://github.com/sagikazarmark" - }, - { - "name": "Tobias Schultze", - "email": "webmaster@tubo-world.de", - "homepage": "https://github.com/Tobion" - }, - { - "name": "Márk Sági-Kazár", - "email": "mark.sagikazar@gmail.com", - "homepage": "https://sagikazarmark.hu" - } - ], - "description": "PSR-7 message implementation that also provides common utility methods", - "keywords": [ - "http", - "message", - "psr-7", - "request", - "response", - "stream", - "uri", - "url" - ], - "support": { - "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/2.5.0" - }, - "funding": [ - { - "url": "https://github.com/GrahamCampbell", - "type": "github" - }, - { - "url": "https://github.com/Nyholm", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7", - "type": "tidelift" - } - ], - "install-path": "../guzzlehttp/psr7" - }, - { - "name": "php-cs-fixer/diff", - "version": "v1.3.1", - "version_normalized": "1.3.1.0", - "source": { - "type": "git", - "url": "https://github.com/PHP-CS-Fixer/diff.git", - "reference": "dbd31aeb251639ac0b9e7e29405c1441907f5759" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/diff/zipball/dbd31aeb251639ac0b9e7e29405c1441907f5759", - "reference": "dbd31aeb251639ac0b9e7e29405c1441907f5759", - "shasum": "" - }, - "require": { - "php": "^5.6 || ^7.0 || ^8.0" - }, - "require-dev": { - "phpunit/phpunit": "^5.7.23 || ^6.4.3 || ^7.0", - "symfony/process": "^3.3" - }, - "time": "2020-10-14T08:39:05+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" - }, - { - "name": "SpacePossum" - } - ], - "description": "sebastian/diff v2 backport support for PHP5.6", - "homepage": "https://github.com/PHP-CS-Fixer", - "keywords": [ - "diff" - ], - "support": { - "issues": "https://github.com/PHP-CS-Fixer/diff/issues", - "source": "https://github.com/PHP-CS-Fixer/diff/tree/v1.3.1" - }, - "abandoned": true, - "install-path": "../php-cs-fixer/diff" - }, - { - "name": "phpdocumentor/reflection-common", - "version": "2.2.0", - "version_normalized": "2.2.0.0", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionCommon.git", - "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b", - "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0" - }, - "time": "2020-06-27T09:03:43+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-2.x": "2.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jaap van Otterdijk", - "email": "opensource@ijaap.nl" - } - ], - "description": "Common reflection classes used by phpdocumentor to reflect the code structure", - "homepage": "http://www.phpdoc.org", - "keywords": [ - "FQSEN", - "phpDocumentor", - "phpdoc", - "reflection", - "static analysis" - ], - "support": { - "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues", - "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x" - }, - "install-path": "../phpdocumentor/reflection-common" - }, - { - "name": "phpdocumentor/reflection-docblock", - "version": "5.3.0", - "version_normalized": "5.3.0.0", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "622548b623e81ca6d78b721c5e029f4ce664f170" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/622548b623e81ca6d78b721c5e029f4ce664f170", - "reference": "622548b623e81ca6d78b721c5e029f4ce664f170", - "shasum": "" - }, - "require": { - "ext-filter": "*", - "php": "^7.2 || ^8.0", - "phpdocumentor/reflection-common": "^2.2", - "phpdocumentor/type-resolver": "^1.3", - "webmozart/assert": "^1.9.1" - }, - "require-dev": { - "mockery/mockery": "~1.3.2", - "psalm/phar": "^4.8" - }, - "time": "2021-10-19T17:43:47+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mike van Riel", - "email": "me@mikevanriel.com" - }, - { - "name": "Jaap van Otterdijk", - "email": "account@ijaap.nl" - } - ], - "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "support": { - "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", - "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.3.0" - }, - "install-path": "../phpdocumentor/reflection-docblock" - }, - { - "name": "phpdocumentor/type-resolver", - "version": "1.6.1", - "version_normalized": "1.6.1.0", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "77a32518733312af16a44300404e945338981de3" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/77a32518733312af16a44300404e945338981de3", - "reference": "77a32518733312af16a44300404e945338981de3", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0", - "phpdocumentor/reflection-common": "^2.0" - }, - "require-dev": { - "ext-tokenizer": "*", - "psalm/phar": "^4.8" - }, - "time": "2022-03-15T21:29:03+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-1.x": "1.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mike van Riel", - "email": "me@mikevanriel.com" - } - ], - "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", - "support": { - "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.6.1" - }, - "install-path": "../phpdocumentor/type-resolver" - }, - { - "name": "phpspec/prophecy", - "version": "v1.10.3", - "version_normalized": "1.10.3.0", - "source": { - "type": "git", - "url": "https://github.com/phpspec/prophecy.git", - "reference": "451c3cd1418cf640de218914901e51b064abb093" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/451c3cd1418cf640de218914901e51b064abb093", - "reference": "451c3cd1418cf640de218914901e51b064abb093", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.0.2", - "php": "^5.3|^7.0", - "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0", - "sebastian/comparator": "^1.2.3|^2.0|^3.0|^4.0", - "sebastian/recursion-context": "^1.0|^2.0|^3.0|^4.0" - }, - "require-dev": { - "phpspec/phpspec": "^2.5 || ^3.2", - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1" - }, - "time": "2020-03-05T15:02:03+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.10.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Prophecy\\": "src/Prophecy" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Konstantin Kudryashov", - "email": "ever.zet@gmail.com", - "homepage": "http://everzet.com" - }, - { - "name": "Marcello Duarte", - "email": "marcello.duarte@gmail.com" - } - ], - "description": "Highly opinionated mocking framework for PHP 5.3+", - "homepage": "https://github.com/phpspec/prophecy", - "keywords": [ - "Double", - "Dummy", - "fake", - "mock", - "spy", - "stub" - ], - "support": { - "issues": "https://github.com/phpspec/prophecy/issues", - "source": "https://github.com/phpspec/prophecy/tree/v1.10.3" - }, - "install-path": "../phpspec/prophecy" - }, - { - "name": "phpunit/php-code-coverage", - "version": "2.2.4", - "version_normalized": "2.2.4.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/eabf68b476ac7d0f73793aada060f1c1a9bf8979", - "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "phpunit/php-file-iterator": "~1.3", - "phpunit/php-text-template": "~1.2", - "phpunit/php-token-stream": "~1.3", - "sebastian/environment": "^1.3.2", - "sebastian/version": "~1.0" - }, - "require-dev": { - "ext-xdebug": ">=2.1.4", - "phpunit/phpunit": "~4" - }, - "suggest": { - "ext-dom": "*", - "ext-xdebug": ">=2.2.1", - "ext-xmlwriter": "*" - }, - "time": "2015-10-06T15:47:00+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.2.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", - "homepage": "https://github.com/sebastianbergmann/php-code-coverage", - "keywords": [ - "coverage", - "testing", - "xunit" - ], - "support": { - "irc": "irc://irc.freenode.net/phpunit", - "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/2.2" - }, - "install-path": "../phpunit/php-code-coverage" - }, - { - "name": "phpunit/php-file-iterator", - "version": "1.4.5", - "version_normalized": "1.4.5.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4", - "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "time": "2017-11-27T13:52:08+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.4.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "FilterIterator implementation that filters files based on a list of suffixes.", - "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", - "keywords": [ - "filesystem", - "iterator" - ], - "support": { - "irc": "irc://irc.freenode.net/phpunit", - "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/1.4.5" - }, - "install-path": "../phpunit/php-file-iterator" - }, - { - "name": "phpunit/php-text-template", - "version": "1.2.1", - "version_normalized": "1.2.1.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "time": "2015-06-21T13:50:34+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Simple template engine.", - "homepage": "https://github.com/sebastianbergmann/php-text-template/", - "keywords": [ - "template" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-text-template/issues", - "source": "https://github.com/sebastianbergmann/php-text-template/tree/1.2.1" - }, - "install-path": "../phpunit/php-text-template" - }, - { - "name": "phpunit/php-timer", - "version": "1.0.9", - "version_normalized": "1.0.9.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", - "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", - "shasum": "" - }, - "require": { - "php": "^5.3.3 || ^7.0" - }, - "require-dev": { - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" - }, - "time": "2017-02-26T11:10:40+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "installation-source": "dist", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Utility class for timing", - "homepage": "https://github.com/sebastianbergmann/php-timer/", - "keywords": [ - "timer" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-timer/issues", - "source": "https://github.com/sebastianbergmann/php-timer/tree/master" - }, - "install-path": "../phpunit/php-timer" - }, - { - "name": "phpunit/php-token-stream", - "version": "1.4.12", - "version_normalized": "1.4.12.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/1ce90ba27c42e4e44e6d8458241466380b51fa16", - "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16", - "shasum": "" - }, - "require": { - "ext-tokenizer": "*", - "php": ">=5.3.3" - }, - "require-dev": { - "phpunit/phpunit": "~4.2" - }, - "time": "2017-12-04T08:55:13+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.4-dev" - } - }, - "installation-source": "dist", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Wrapper around PHP's tokenizer extension.", - "homepage": "https://github.com/sebastianbergmann/php-token-stream/", - "keywords": [ - "tokenizer" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-token-stream/issues", - "source": "https://github.com/sebastianbergmann/php-token-stream/tree/1.4" - }, - "abandoned": true, - "install-path": "../phpunit/php-token-stream" - }, - { - "name": "phpunit/phpunit", - "version": "4.8.36", - "version_normalized": "4.8.36.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "46023de9a91eec7dfb06cc56cb4e260017298517" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/46023de9a91eec7dfb06cc56cb4e260017298517", - "reference": "46023de9a91eec7dfb06cc56cb4e260017298517", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-json": "*", - "ext-pcre": "*", - "ext-reflection": "*", - "ext-spl": "*", - "php": ">=5.3.3", - "phpspec/prophecy": "^1.3.1", - "phpunit/php-code-coverage": "~2.1", - "phpunit/php-file-iterator": "~1.4", - "phpunit/php-text-template": "~1.2", - "phpunit/php-timer": "^1.0.6", - "phpunit/phpunit-mock-objects": "~2.3", - "sebastian/comparator": "~1.2.2", - "sebastian/diff": "~1.2", - "sebastian/environment": "~1.3", - "sebastian/exporter": "~1.2", - "sebastian/global-state": "~1.0", - "sebastian/version": "~1.0", - "symfony/yaml": "~2.1|~3.0" - }, - "suggest": { - "phpunit/php-invoker": "~1.1" - }, - "time": "2017-06-21T08:07:12+00:00", - "bin": [ - "phpunit" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.8.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "The PHP Unit Testing framework.", - "homepage": "https://phpunit.de/", - "keywords": [ - "phpunit", - "testing", - "xunit" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/4.8.36" - }, - "install-path": "../phpunit/phpunit" - }, - { - "name": "phpunit/phpunit-mock-objects", - "version": "2.3.8", - "version_normalized": "2.3.8.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", - "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/ac8e7a3db35738d56ee9a76e78a4e03d97628983", - "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.0.2", - "php": ">=5.3.3", - "phpunit/php-text-template": "~1.2", - "sebastian/exporter": "~1.2" - }, - "require-dev": { - "phpunit/phpunit": "~4.4" - }, - "suggest": { - "ext-soap": "*" - }, - "time": "2015-10-02T06:51:40+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.3.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Mock Object library for PHPUnit", - "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/", - "keywords": [ - "mock", - "xunit" - ], - "support": { - "irc": "irc://irc.freenode.net/phpunit", - "issues": "https://github.com/sebastianbergmann/phpunit-mock-objects/issues", - "source": "https://github.com/sebastianbergmann/phpunit-mock-objects/tree/2.3" - }, - "abandoned": true, - "install-path": "../phpunit/phpunit-mock-objects" - }, - { - "name": "psr/cache", - "version": "1.0.1", - "version_normalized": "1.0.1.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/cache.git", - "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8", - "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "time": "2016-08-06T20:24:11+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Psr\\Cache\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Common interface for caching libraries", - "keywords": [ - "cache", - "psr", - "psr-6" - ], - "support": { - "source": "https://github.com/php-fig/cache/tree/master" - }, - "install-path": "../psr/cache" - }, - { - "name": "psr/container", - "version": "1.1.1", - "version_normalized": "1.1.1.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/container.git", - "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf", - "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf", - "shasum": "" - }, - "require": { - "php": ">=7.2.0" - }, - "time": "2021-03-05T17:36:06+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "Psr\\Container\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Common Container Interface (PHP FIG PSR-11)", - "homepage": "https://github.com/php-fig/container", - "keywords": [ - "PSR-11", - "container", - "container-interface", - "container-interop", - "psr" - ], - "support": { - "issues": "https://github.com/php-fig/container/issues", - "source": "https://github.com/php-fig/container/tree/1.1.1" - }, - "install-path": "../psr/container" - }, - { - "name": "psr/event-dispatcher", - "version": "1.0.0", - "version_normalized": "1.0.0.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/event-dispatcher.git", - "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", - "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", - "shasum": "" - }, - "require": { - "php": ">=7.2.0" - }, - "time": "2019-01-08T18:20:26+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Psr\\EventDispatcher\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Standard interfaces for event handling.", - "keywords": [ - "events", - "psr", - "psr-14" - ], - "support": { - "issues": "https://github.com/php-fig/event-dispatcher/issues", - "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" - }, - "install-path": "../psr/event-dispatcher" - }, - { - "name": "psr/http-client", - "version": "1.0.2", - "version_normalized": "1.0.2.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/http-client.git", - "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-client/zipball/0955afe48220520692d2d09f7ab7e0f93ffd6a31", - "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31", - "shasum": "" - }, - "require": { - "php": "^7.0 || ^8.0", - "psr/http-message": "^1.0 || ^2.0" - }, - "time": "2023-04-10T20:12:12+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Psr\\Http\\Client\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Common interface for HTTP clients", - "homepage": "https://github.com/php-fig/http-client", - "keywords": [ - "http", - "http-client", - "psr", - "psr-18" - ], - "support": { - "source": "https://github.com/php-fig/http-client/tree/1.0.2" - }, - "install-path": "../psr/http-client" - }, - { - "name": "psr/http-factory", - "version": "1.0.2", - "version_normalized": "1.0.2.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/http-factory.git", - "reference": "e616d01114759c4c489f93b099585439f795fe35" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35", - "reference": "e616d01114759c4c489f93b099585439f795fe35", - "shasum": "" - }, - "require": { - "php": ">=7.0.0", - "psr/http-message": "^1.0 || ^2.0" - }, - "time": "2023-04-10T20:10:41+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Psr\\Http\\Message\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Common interfaces for PSR-7 HTTP message factories", - "keywords": [ - "factory", - "http", - "message", - "psr", - "psr-17", - "psr-7", - "request", - "response" - ], - "support": { - "source": "https://github.com/php-fig/http-factory/tree/1.0.2" - }, - "install-path": "../psr/http-factory" - }, - { - "name": "psr/http-message", - "version": "2.0", - "version_normalized": "2.0.0.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/http-message.git", - "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", - "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0" - }, - "time": "2023-04-04T09:54:51+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Psr\\Http\\Message\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Common interface for HTTP messages", - "homepage": "https://github.com/php-fig/http-message", - "keywords": [ - "http", - "http-message", - "psr", - "psr-7", - "request", - "response" - ], - "support": { - "source": "https://github.com/php-fig/http-message/tree/2.0" - }, - "install-path": "../psr/http-message" - }, - { - "name": "psr/log", - "version": "1.1.4", - "version_normalized": "1.1.4.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/log.git", - "reference": "d49695b909c3b7628b6289db5479a1c204601f11" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11", - "reference": "d49695b909c3b7628b6289db5479a1c204601f11", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "time": "2021-05-03T11:20:27+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.1.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Psr\\Log\\": "Psr/Log/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Common interface for logging libraries", - "homepage": "https://github.com/php-fig/log", - "keywords": [ - "log", - "psr", - "psr-3" - ], - "support": { - "source": "https://github.com/php-fig/log/tree/1.1.4" - }, - "install-path": "../psr/log" - }, - { - "name": "ralouphie/getallheaders", - "version": "3.0.3", - "version_normalized": "3.0.3.0", - "source": { - "type": "git", - "url": "https://github.com/ralouphie/getallheaders.git", - "reference": "120b605dfeb996808c31b6477290a714d356e822" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", - "reference": "120b605dfeb996808c31b6477290a714d356e822", - "shasum": "" - }, - "require": { - "php": ">=5.6" - }, - "require-dev": { - "php-coveralls/php-coveralls": "^2.1", - "phpunit/phpunit": "^5 || ^6.5" - }, - "time": "2019-03-08T08:55:37+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "files": [ - "src/getallheaders.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Ralph Khattar", - "email": "ralph.khattar@gmail.com" - } - ], - "description": "A polyfill for getallheaders.", - "support": { - "issues": "https://github.com/ralouphie/getallheaders/issues", - "source": "https://github.com/ralouphie/getallheaders/tree/develop" - }, - "install-path": "../ralouphie/getallheaders" - }, - { - "name": "sebastian/comparator", - "version": "1.2.4", - "version_normalized": "1.2.4.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", - "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "sebastian/diff": "~1.2", - "sebastian/exporter": "~1.2 || ~2.0" - }, - "require-dev": { - "phpunit/phpunit": "~4.4" - }, - "time": "2017-01-29T09:50:25+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.2.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@2bepublished.at" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Provides the functionality to compare PHP values for equality", - "homepage": "http://www.github.com/sebastianbergmann/comparator", - "keywords": [ - "comparator", - "compare", - "equality" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/comparator/issues", - "source": "https://github.com/sebastianbergmann/comparator/tree/1.2" - }, - "install-path": "../sebastian/comparator" - }, - { - "name": "sebastian/diff", - "version": "1.4.3", - "version_normalized": "1.4.3.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4", - "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4", - "shasum": "" - }, - "require": { - "php": "^5.3.3 || ^7.0" - }, - "require-dev": { - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" - }, - "time": "2017-05-22T07:24:03+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.4-dev" - } - }, - "installation-source": "dist", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Diff implementation", - "homepage": "https://github.com/sebastianbergmann/diff", - "keywords": [ - "diff" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/diff/issues", - "source": "https://github.com/sebastianbergmann/diff/tree/1.4" - }, - "install-path": "../sebastian/diff" - }, - { - "name": "sebastian/environment", - "version": "1.3.8", - "version_normalized": "1.3.8.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/be2c607e43ce4c89ecd60e75c6a85c126e754aea", - "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea", - "shasum": "" - }, - "require": { - "php": "^5.3.3 || ^7.0" - }, - "require-dev": { - "phpunit/phpunit": "^4.8 || ^5.0" - }, - "time": "2016-08-18T05:49:44+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.3.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Provides functionality to handle HHVM/PHP environments", - "homepage": "http://www.github.com/sebastianbergmann/environment", - "keywords": [ - "Xdebug", - "environment", - "hhvm" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/environment/issues", - "source": "https://github.com/sebastianbergmann/environment/tree/1.3" - }, - "install-path": "../sebastian/environment" - }, - { - "name": "sebastian/exporter", - "version": "1.2.2", - "version_normalized": "1.2.2.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/42c4c2eec485ee3e159ec9884f95b431287edde4", - "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "sebastian/recursion-context": "~1.0" - }, - "require-dev": { - "ext-mbstring": "*", - "phpunit/phpunit": "~4.4" - }, - "time": "2016-06-17T09:04:28+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.3.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@2bepublished.at" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" - } - ], - "description": "Provides the functionality to export PHP variables for visualization", - "homepage": "http://www.github.com/sebastianbergmann/exporter", - "keywords": [ - "export", - "exporter" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/exporter/issues", - "source": "https://github.com/sebastianbergmann/exporter/tree/master" - }, - "install-path": "../sebastian/exporter" - }, - { - "name": "sebastian/global-state", - "version": "1.1.1", - "version_normalized": "1.1.1.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4", - "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "require-dev": { - "phpunit/phpunit": "~4.2" - }, - "suggest": { - "ext-uopz": "*" - }, - "time": "2015-10-12T03:26:01+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "installation-source": "dist", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Snapshotting of global state", - "homepage": "http://www.github.com/sebastianbergmann/global-state", - "keywords": [ - "global state" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/global-state/issues", - "source": "https://github.com/sebastianbergmann/global-state/tree/1.1.1" - }, - "install-path": "../sebastian/global-state" - }, - { - "name": "sebastian/recursion-context", - "version": "1.0.5", - "version_normalized": "1.0.5.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/b19cc3298482a335a95f3016d2f8a6950f0fbcd7", - "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "require-dev": { - "phpunit/phpunit": "~4.4" - }, - "time": "2016-10-03T07:41:43+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" - } - ], - "description": "Provides functionality to recursively process PHP variables", - "homepage": "http://www.github.com/sebastianbergmann/recursion-context", - "support": { - "issues": "https://github.com/sebastianbergmann/recursion-context/issues", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/master" - }, - "install-path": "../sebastian/recursion-context" - }, - { - "name": "sebastian/version", - "version": "1.0.6", - "version_normalized": "1.0.6.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/version.git", - "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", - "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", - "shasum": "" - }, - "time": "2015-06-21T13:59:46+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library that helps with managing the version number of Git-hosted PHP projects", - "homepage": "https://github.com/sebastianbergmann/version", - "support": { - "issues": "https://github.com/sebastianbergmann/version/issues", - "source": "https://github.com/sebastianbergmann/version/tree/1.0.6" - }, - "install-path": "../sebastian/version" - }, - { - "name": "squizlabs/php_codesniffer", - "version": "2.9.2", - "version_normalized": "2.9.2.0", - "source": { - "type": "git", - "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "2acf168de78487db620ab4bc524135a13cfe6745" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/2acf168de78487db620ab4bc524135a13cfe6745", - "reference": "2acf168de78487db620ab4bc524135a13cfe6745", - "shasum": "" - }, - "require": { - "ext-simplexml": "*", - "ext-tokenizer": "*", - "ext-xmlwriter": "*", - "php": ">=5.1.2" - }, - "require-dev": { - "phpunit/phpunit": "~4.0" - }, - "time": "2018-11-07T22:31:41+00:00", - "bin": [ - "scripts/phpcs", - "scripts/phpcbf" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "classmap": [ - "CodeSniffer.php", - "CodeSniffer/CLI.php", - "CodeSniffer/Exception.php", - "CodeSniffer/File.php", - "CodeSniffer/Fixer.php", - "CodeSniffer/Report.php", - "CodeSniffer/Reporting.php", - "CodeSniffer/Sniff.php", - "CodeSniffer/Tokens.php", - "CodeSniffer/Reports/", - "CodeSniffer/Tokenizers/", - "CodeSniffer/DocGenerators/", - "CodeSniffer/Standards/AbstractPatternSniff.php", - "CodeSniffer/Standards/AbstractScopeSniff.php", - "CodeSniffer/Standards/AbstractVariableSniff.php", - "CodeSniffer/Standards/IncorrectPatternException.php", - "CodeSniffer/Standards/Generic/Sniffs/", - "CodeSniffer/Standards/MySource/Sniffs/", - "CodeSniffer/Standards/PEAR/Sniffs/", - "CodeSniffer/Standards/PSR1/Sniffs/", - "CodeSniffer/Standards/PSR2/Sniffs/", - "CodeSniffer/Standards/Squiz/Sniffs/", - "CodeSniffer/Standards/Zend/Sniffs/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Greg Sherwood", - "role": "lead" - } - ], - "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", - "homepage": "http://www.squizlabs.com/php-codesniffer", - "keywords": [ - "phpcs", - "standards" - ], - "support": { - "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues", - "source": "https://github.com/squizlabs/PHP_CodeSniffer", - "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" - }, - "install-path": "../squizlabs/php_codesniffer" - }, - { - "name": "symfony/console", - "version": "v5.4.24", - "version_normalized": "5.4.24.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/console.git", - "reference": "560fc3ed7a43e6d30ea94a07d77f9a60b8ed0fb8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/560fc3ed7a43e6d30ea94a07d77f9a60b8ed0fb8", - "reference": "560fc3ed7a43e6d30ea94a07d77f9a60b8ed0fb8", - "shasum": "" - }, - "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/polyfill-mbstring": "~1.0", - "symfony/polyfill-php73": "^1.9", - "symfony/polyfill-php80": "^1.16", - "symfony/service-contracts": "^1.1|^2|^3", - "symfony/string": "^5.1|^6.0" - }, - "conflict": { - "psr/log": ">=3", - "symfony/dependency-injection": "<4.4", - "symfony/dotenv": "<5.1", - "symfony/event-dispatcher": "<4.4", - "symfony/lock": "<4.4", - "symfony/process": "<4.4" - }, - "provide": { - "psr/log-implementation": "1.0|2.0" - }, - "require-dev": { - "psr/log": "^1|^2", - "symfony/config": "^4.4|^5.0|^6.0", - "symfony/dependency-injection": "^4.4|^5.0|^6.0", - "symfony/event-dispatcher": "^4.4|^5.0|^6.0", - "symfony/lock": "^4.4|^5.0|^6.0", - "symfony/process": "^4.4|^5.0|^6.0", - "symfony/var-dumper": "^4.4|^5.0|^6.0" - }, - "suggest": { - "psr/log": "For using the console logger", - "symfony/event-dispatcher": "", - "symfony/lock": "", - "symfony/process": "" - }, - "time": "2023-05-26T05:13:16+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "Symfony\\Component\\Console\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Eases the creation of beautiful and testable command line interfaces", - "homepage": "https://symfony.com", - "keywords": [ - "cli", - "command-line", - "console", - "terminal" - ], - "support": { - "source": "https://github.com/symfony/console/tree/v5.4.24" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": "../symfony/console" - }, - { - "name": "symfony/deprecation-contracts", - "version": "v2.5.2", - "version_normalized": "2.5.2.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e8b495ea28c1d97b5e0c121748d6f9b53d075c66", - "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "time": "2022-01-02T09:53:40+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "2.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" - } - }, - "installation-source": "dist", - "autoload": { - "files": [ - "function.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "A generic function and convention to trigger deprecation notices", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.2" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": "../symfony/deprecation-contracts" - }, - { - "name": "symfony/event-dispatcher", - "version": "v5.4.22", - "version_normalized": "5.4.22.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "1df20e45d56da29a4b1d8259dd6e950acbf1b13f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/1df20e45d56da29a4b1d8259dd6e950acbf1b13f", - "reference": "1df20e45d56da29a4b1d8259dd6e950acbf1b13f", - "shasum": "" - }, - "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/event-dispatcher-contracts": "^2|^3", - "symfony/polyfill-php80": "^1.16" - }, - "conflict": { - "symfony/dependency-injection": "<4.4" - }, - "provide": { - "psr/event-dispatcher-implementation": "1.0", - "symfony/event-dispatcher-implementation": "2.0" - }, - "require-dev": { - "psr/log": "^1|^2|^3", - "symfony/config": "^4.4|^5.0|^6.0", - "symfony/dependency-injection": "^4.4|^5.0|^6.0", - "symfony/error-handler": "^4.4|^5.0|^6.0", - "symfony/expression-language": "^4.4|^5.0|^6.0", - "symfony/http-foundation": "^4.4|^5.0|^6.0", - "symfony/service-contracts": "^1.1|^2|^3", - "symfony/stopwatch": "^4.4|^5.0|^6.0" - }, - "suggest": { - "symfony/dependency-injection": "", - "symfony/http-kernel": "" - }, - "time": "2023-03-17T11:31:58+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "Symfony\\Component\\EventDispatcher\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v5.4.22" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": "../symfony/event-dispatcher" - }, - { - "name": "symfony/event-dispatcher-contracts", - "version": "v2.5.2", - "version_normalized": "2.5.2.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/event-dispatcher-contracts.git", - "reference": "f98b54df6ad059855739db6fcbc2d36995283fe1" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/f98b54df6ad059855739db6fcbc2d36995283fe1", - "reference": "f98b54df6ad059855739db6fcbc2d36995283fe1", - "shasum": "" - }, - "require": { - "php": ">=7.2.5", - "psr/event-dispatcher": "^1" - }, - "suggest": { - "symfony/event-dispatcher-implementation": "" - }, - "time": "2022-01-02T09:53:40+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "2.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Symfony\\Contracts\\EventDispatcher\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Generic abstractions related to dispatching event", - "homepage": "https://symfony.com", - "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" - ], - "support": { - "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v2.5.2" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": "../symfony/event-dispatcher-contracts" - }, - { - "name": "symfony/filesystem", - "version": "v5.4.25", - "version_normalized": "5.4.25.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/filesystem.git", - "reference": "0ce3a62c9579a53358d3a7eb6b3dfb79789a6364" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/0ce3a62c9579a53358d3a7eb6b3dfb79789a6364", - "reference": "0ce3a62c9579a53358d3a7eb6b3dfb79789a6364", - "shasum": "" - }, - "require": { - "php": ">=7.2.5", - "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-mbstring": "~1.8", - "symfony/polyfill-php80": "^1.16" - }, - "time": "2023-05-31T13:04:02+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "Symfony\\Component\\Filesystem\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Provides basic utilities for the filesystem", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/filesystem/tree/v5.4.25" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": "../symfony/filesystem" - }, - { - "name": "symfony/finder", - "version": "v5.4.21", - "version_normalized": "5.4.21.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/finder.git", - "reference": "078e9a5e1871fcfe6a5ce421b539344c21afef19" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/078e9a5e1871fcfe6a5ce421b539344c21afef19", - "reference": "078e9a5e1871fcfe6a5ce421b539344c21afef19", - "shasum": "" - }, - "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/polyfill-php80": "^1.16" - }, - "time": "2023-02-16T09:33:00+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "Symfony\\Component\\Finder\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Finds files and directories via an intuitive fluent interface", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/finder/tree/v5.4.21" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": "../symfony/finder" - }, - { - "name": "symfony/options-resolver", - "version": "v5.4.21", - "version_normalized": "5.4.21.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/options-resolver.git", - "reference": "4fe5cf6ede71096839f0e4b4444d65dd3a7c1eb9" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/4fe5cf6ede71096839f0e4b4444d65dd3a7c1eb9", - "reference": "4fe5cf6ede71096839f0e4b4444d65dd3a7c1eb9", - "shasum": "" - }, - "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/polyfill-php73": "~1.0", - "symfony/polyfill-php80": "^1.16" - }, - "time": "2023-02-14T08:03:56+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "Symfony\\Component\\OptionsResolver\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Provides an improved replacement for the array_replace PHP function", - "homepage": "https://symfony.com", - "keywords": [ - "config", - "configuration", - "options" - ], - "support": { - "source": "https://github.com/symfony/options-resolver/tree/v5.4.21" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": "../symfony/options-resolver" - }, - { - "name": "symfony/polyfill-ctype", - "version": "v1.27.0", - "version_normalized": "1.27.0.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "5bbc823adecdae860bb64756d639ecfec17b050a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/5bbc823adecdae860bb64756d639ecfec17b050a", - "reference": "5bbc823adecdae860bb64756d639ecfec17b050a", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "provide": { - "ext-ctype": "*" - }, - "suggest": { - "ext-ctype": "For best performance" - }, - "time": "2022-11-03T14:55:06+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.27-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "installation-source": "dist", - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Ctype\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Gert de Pagter", - "email": "BackEndTea@gmail.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill for ctype functions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "ctype", - "polyfill", - "portable" - ], - "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.27.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": "../symfony/polyfill-ctype" - }, - { - "name": "symfony/polyfill-intl-grapheme", - "version": "v1.27.0", - "version_normalized": "1.27.0.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "511a08c03c1960e08a883f4cffcacd219b758354" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/511a08c03c1960e08a883f4cffcacd219b758354", - "reference": "511a08c03c1960e08a883f4cffcacd219b758354", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "suggest": { - "ext-intl": "For best performance" - }, - "time": "2022-11-03T14:55:06+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.27-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "installation-source": "dist", - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Intl\\Grapheme\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill for intl's grapheme_* functions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "grapheme", - "intl", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.27.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": "../symfony/polyfill-intl-grapheme" - }, - { - "name": "symfony/polyfill-intl-normalizer", - "version": "v1.27.0", - "version_normalized": "1.27.0.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/19bd1e4fcd5b91116f14d8533c57831ed00571b6", - "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "suggest": { - "ext-intl": "For best performance" - }, - "time": "2022-11-03T14:55:06+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.27-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "installation-source": "dist", - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Intl\\Normalizer\\": "" - }, - "classmap": [ - "Resources/stubs" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill for intl's Normalizer class and related functions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "intl", - "normalizer", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.27.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": "../symfony/polyfill-intl-normalizer" - }, - { - "name": "symfony/polyfill-mbstring", - "version": "v1.27.0", - "version_normalized": "1.27.0.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/8ad114f6b39e2c98a8b0e3bd907732c207c2b534", - "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "provide": { - "ext-mbstring": "*" - }, - "suggest": { - "ext-mbstring": "For best performance" - }, - "time": "2022-11-03T14:55:06+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.27-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "installation-source": "dist", - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Mbstring\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill for the Mbstring extension", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "mbstring", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.27.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": "../symfony/polyfill-mbstring" - }, - { - "name": "symfony/polyfill-php70", - "version": "v1.20.0", - "version_normalized": "1.20.0.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php70.git", - "reference": "5f03a781d984aae42cebd18e7912fa80f02ee644" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/5f03a781d984aae42cebd18e7912fa80f02ee644", - "reference": "5f03a781d984aae42cebd18e7912fa80f02ee644", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "time": "2020-10-23T14:02:19+00:00", - "type": "metapackage", - "extra": { - "branch-alias": { - "dev-main": "1.20-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-php70/tree/v1.20.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": null - }, - { - "name": "symfony/polyfill-php72", - "version": "v1.27.0", - "version_normalized": "1.27.0.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php72.git", - "reference": "869329b1e9894268a8a61dabb69153029b7a8c97" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/869329b1e9894268a8a61dabb69153029b7a8c97", - "reference": "869329b1e9894268a8a61dabb69153029b7a8c97", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "time": "2022-11-03T14:55:06+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.27-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "installation-source": "dist", - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Php72\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-php72/tree/v1.27.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": "../symfony/polyfill-php72" - }, - { - "name": "symfony/polyfill-php73", - "version": "v1.27.0", - "version_normalized": "1.27.0.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php73.git", - "reference": "9e8ecb5f92152187c4799efd3c96b78ccab18ff9" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/9e8ecb5f92152187c4799efd3c96b78ccab18ff9", - "reference": "9e8ecb5f92152187c4799efd3c96b78ccab18ff9", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "time": "2022-11-03T14:55:06+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.27-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "installation-source": "dist", - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Php73\\": "" - }, - "classmap": [ - "Resources/stubs" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-php73/tree/v1.27.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": "../symfony/polyfill-php73" - }, - { - "name": "symfony/polyfill-php80", - "version": "v1.27.0", - "version_normalized": "1.27.0.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", - "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "time": "2022-11-03T14:55:06+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.27-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "installation-source": "dist", - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Php80\\": "" - }, - "classmap": [ - "Resources/stubs" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Ion Bazan", - "email": "ion.bazan@gmail.com" - }, - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.27.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": "../symfony/polyfill-php80" - }, - { - "name": "symfony/process", - "version": "v5.4.24", - "version_normalized": "5.4.24.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/process.git", - "reference": "e3c46cc5689c8782944274bb30702106ecbe3b64" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/e3c46cc5689c8782944274bb30702106ecbe3b64", - "reference": "e3c46cc5689c8782944274bb30702106ecbe3b64", - "shasum": "" - }, - "require": { - "php": ">=7.2.5", - "symfony/polyfill-php80": "^1.16" - }, - "time": "2023-05-17T11:26:05+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "Symfony\\Component\\Process\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Executes commands in sub-processes", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/process/tree/v5.4.24" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": "../symfony/process" - }, - { - "name": "symfony/service-contracts", - "version": "v2.5.2", - "version_normalized": "2.5.2.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/service-contracts.git", - "reference": "4b426aac47d6427cc1a1d0f7e2ac724627f5966c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/4b426aac47d6427cc1a1d0f7e2ac724627f5966c", - "reference": "4b426aac47d6427cc1a1d0f7e2ac724627f5966c", - "shasum": "" - }, - "require": { - "php": ">=7.2.5", - "psr/container": "^1.1", - "symfony/deprecation-contracts": "^2.1|^3" - }, - "conflict": { - "ext-psr": "<1.1|>=2" - }, - "suggest": { - "symfony/service-implementation": "" - }, - "time": "2022-05-30T19:17:29+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "2.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Symfony\\Contracts\\Service\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Generic abstractions related to writing services", - "homepage": "https://symfony.com", - "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" - ], - "support": { - "source": "https://github.com/symfony/service-contracts/tree/v2.5.2" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": "../symfony/service-contracts" - }, - { - "name": "symfony/stopwatch", - "version": "v5.4.21", - "version_normalized": "5.4.21.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/stopwatch.git", - "reference": "f83692cd869a6f2391691d40a01e8acb89e76fee" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/f83692cd869a6f2391691d40a01e8acb89e76fee", - "reference": "f83692cd869a6f2391691d40a01e8acb89e76fee", - "shasum": "" - }, - "require": { - "php": ">=7.2.5", - "symfony/service-contracts": "^1|^2|^3" - }, - "time": "2023-02-14T08:03:56+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "Symfony\\Component\\Stopwatch\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Provides a way to profile code", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/stopwatch/tree/v5.4.21" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": "../symfony/stopwatch" - }, - { - "name": "symfony/string", - "version": "v5.4.22", - "version_normalized": "5.4.22.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/string.git", - "reference": "8036a4c76c0dd29e60b6a7cafcacc50cf088ea62" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/8036a4c76c0dd29e60b6a7cafcacc50cf088ea62", - "reference": "8036a4c76c0dd29e60b6a7cafcacc50cf088ea62", - "shasum": "" - }, - "require": { - "php": ">=7.2.5", - "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-intl-grapheme": "~1.0", - "symfony/polyfill-intl-normalizer": "~1.0", - "symfony/polyfill-mbstring": "~1.0", - "symfony/polyfill-php80": "~1.15" - }, - "conflict": { - "symfony/translation-contracts": ">=3.0" - }, - "require-dev": { - "symfony/error-handler": "^4.4|^5.0|^6.0", - "symfony/http-client": "^4.4|^5.0|^6.0", - "symfony/translation-contracts": "^1.1|^2", - "symfony/var-exporter": "^4.4|^5.0|^6.0" - }, - "time": "2023-03-14T06:11:53+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "files": [ - "Resources/functions.php" - ], - "psr-4": { - "Symfony\\Component\\String\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way", - "homepage": "https://symfony.com", - "keywords": [ - "grapheme", - "i18n", - "string", - "unicode", - "utf-8", - "utf8" - ], - "support": { - "source": "https://github.com/symfony/string/tree/v5.4.22" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "install-path": "../symfony/string" - }, - { - "name": "symfony/yaml", - "version": "v3.4.47", - "version_normalized": "3.4.47.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/yaml.git", - "reference": "88289caa3c166321883f67fe5130188ebbb47094" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/88289caa3c166321883f67fe5130188ebbb47094", - "reference": "88289caa3c166321883f67fe5130188ebbb47094", - "shasum": "" - }, - "require": { - "php": "^5.5.9|>=7.0.8", - "symfony/polyfill-ctype": "~1.8" - }, - "conflict": { - "symfony/console": "<3.4" - }, - "require-dev": { - "symfony/console": "~3.4|~4.0" - }, - "suggest": { - "symfony/console": "For validating YAML files using the lint command" - }, - "time": "2020-10-24T10:57:07+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-4": { - "Symfony\\Component\\Yaml\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } +[ + { + "name": "composer/pcre", + "version": "1.0.1", + "version_normalized": "1.0.1.0", + "source": { + "type": "git", + "url": "https://github.com/composer/pcre.git", + "reference": "67a32d7d6f9f560b726ab25a061b38ff3a80c560" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/pcre/zipball/67a32d7d6f9f560b726ab25a061b38ff3a80c560", + "reference": "67a32d7d6f9f560b726ab25a061b38ff3a80c560", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.3", + "phpstan/phpstan-strict-rules": "^1.1", + "symfony/phpunit-bridge": "^4.2 || ^5" + }, + "time": "2022-01-21T20:24:37+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Composer\\Pcre\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "PCRE wrapping library that offers type-safe preg_* replacements.", + "keywords": [ + "PCRE", + "preg", + "regex", + "regular expression" + ], + "support": { + "issues": "https://github.com/composer/pcre/issues", + "source": "https://github.com/composer/pcre/tree/1.0.1" + } + }, + { + "name": "composer/semver", + "version": "3.3.2", + "version_normalized": "3.3.2.0", + "source": { + "type": "git", + "url": "https://github.com/composer/semver.git", + "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/semver/zipball/3953f23262f2bff1919fc82183ad9acb13ff62c9", + "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.4", + "symfony/phpunit-bridge": "^4.2 || ^5" + }, + "time": "2022-04-01T19:23:25+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Composer\\Semver\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nils Adermann", + "email": "naderman@naderman.de", + "homepage": "http://www.naderman.de" + }, + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + }, + { + "name": "Rob Bast", + "email": "rob.bast@gmail.com", + "homepage": "http://robbast.nl" + } + ], + "description": "Semver library that offers utilities, version constraint parsing and validation.", + "keywords": [ + "semantic", + "semver", + "validation", + "versioning" + ], + "support": { + "irc": "irc://irc.freenode.org/composer", + "issues": "https://github.com/composer/semver/issues", + "source": "https://github.com/composer/semver/tree/3.3.2" + } + }, + { + "name": "composer/xdebug-handler", + "version": "2.0.5", + "version_normalized": "2.0.5.0", + "source": { + "type": "git", + "url": "https://github.com/composer/xdebug-handler.git", + "reference": "9e36aeed4616366d2b690bdce11f71e9178c579a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/9e36aeed4616366d2b690bdce11f71e9178c579a", + "reference": "9e36aeed4616366d2b690bdce11f71e9178c579a", + "shasum": "" + }, + "require": { + "composer/pcre": "^1", + "php": "^5.3.2 || ^7.0 || ^8.0", + "psr/log": "^1 || ^2 || ^3" + }, + "require-dev": { + "phpstan/phpstan": "^1.0", + "phpstan/phpstan-strict-rules": "^1.1", + "symfony/phpunit-bridge": "^4.2 || ^5.0 || ^6.0" + }, + "time": "2022-02-24T20:20:32+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "Composer\\XdebugHandler\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "John Stevenson", + "email": "john-stevenson@blueyonder.co.uk" + } + ], + "description": "Restarts a process without Xdebug.", + "keywords": [ + "Xdebug", + "performance" + ], + "support": { + "irc": "irc://irc.freenode.org/composer", + "issues": "https://github.com/composer/xdebug-handler/issues", + "source": "https://github.com/composer/xdebug-handler/tree/2.0.5" + } + }, + { + "name": "doctrine/annotations", + "version": "1.14.3", + "version_normalized": "1.14.3.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/annotations.git", + "reference": "fb0d71a7393298a7b232cbf4c8b1f73f3ec3d5af" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/annotations/zipball/fb0d71a7393298a7b232cbf4c8b1f73f3ec3d5af", + "reference": "fb0d71a7393298a7b232cbf4c8b1f73f3ec3d5af", + "shasum": "" + }, + "require": { + "doctrine/lexer": "^1 || ^2", + "ext-tokenizer": "*", + "php": "^7.1 || ^8.0", + "psr/cache": "^1 || ^2 || ^3" + }, + "require-dev": { + "doctrine/cache": "^1.11 || ^2.0", + "doctrine/coding-standard": "^9 || ^10", + "phpstan/phpstan": "~1.4.10 || ^1.8.0", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "symfony/cache": "^4.4 || ^5.4 || ^6", + "vimeo/psalm": "^4.10" + }, + "suggest": { + "php": "PHP 8.0 or higher comes with attributes, a native replacement for annotations" + }, + "time": "2023-02-01T09:20:38+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "Docblock Annotations Parser", + "homepage": "https://www.doctrine-project.org/projects/annotations.html", + "keywords": [ + "annotations", + "docblock", + "parser" + ], + "support": { + "issues": "https://github.com/doctrine/annotations/issues", + "source": "https://github.com/doctrine/annotations/tree/1.14.3" + } + }, + { + "name": "doctrine/deprecations", + "version": "v1.1.1", + "version_normalized": "1.1.1.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/deprecations.git", + "reference": "612a3ee5ab0d5dd97b7cf3874a6efe24325efac3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/deprecations/zipball/612a3ee5ab0d5dd97b7cf3874a6efe24325efac3", + "reference": "612a3ee5ab0d5dd97b7cf3874a6efe24325efac3", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^9", + "phpstan/phpstan": "1.4.10 || 1.10.15", + "phpstan/phpstan-phpunit": "^1.0", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "psalm/plugin-phpunit": "0.18.4", + "psr/log": "^1 || ^2 || ^3", + "vimeo/psalm": "4.30.0 || 5.12.0" + }, + "suggest": { + "psr/log": "Allows logging deprecations via PSR-3 logger implementation" + }, + "time": "2023-06-03T09:27:29+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "Doctrine\\Deprecations\\": "lib/Doctrine/Deprecations" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", + "homepage": "https://www.doctrine-project.org/", + "support": { + "issues": "https://github.com/doctrine/deprecations/issues", + "source": "https://github.com/doctrine/deprecations/tree/v1.1.1" + } + }, + { + "name": "doctrine/instantiator", + "version": "1.5.0", + "version_normalized": "1.5.0.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", + "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b", + "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^9 || ^11", + "ext-pdo": "*", + "ext-phar": "*", + "phpbench/phpbench": "^0.16 || ^1", + "phpstan/phpstan": "^1.4", + "phpstan/phpstan-phpunit": "^1", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.30 || ^5.4" + }, + "time": "2022-12-30T00:15:36+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "https://ocramius.github.io/" + } + ], + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://www.doctrine-project.org/projects/instantiator.html", + "keywords": [ + "constructor", + "instantiate" + ], + "support": { + "issues": "https://github.com/doctrine/instantiator/issues", + "source": "https://github.com/doctrine/instantiator/tree/1.5.0" + } + }, + { + "name": "doctrine/lexer", + "version": "2.1.0", + "version_normalized": "2.1.0.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/lexer.git", + "reference": "39ab8fcf5a51ce4b85ca97c7a7d033eb12831124" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/39ab8fcf5a51ce4b85ca97c7a7d033eb12831124", + "reference": "39ab8fcf5a51ce4b85ca97c7a7d033eb12831124", + "shasum": "" + }, + "require": { + "doctrine/deprecations": "^1.0", + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^9 || ^10", + "phpstan/phpstan": "^1.3", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "psalm/plugin-phpunit": "^0.18.3", + "vimeo/psalm": "^4.11 || ^5.0" + }, + "time": "2022-12-14T08:49:07+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "Doctrine\\Common\\Lexer\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.", + "homepage": "https://www.doctrine-project.org/projects/lexer.html", + "keywords": [ + "annotations", + "docblock", + "lexer", + "parser", + "php" + ], + "support": { + "issues": "https://github.com/doctrine/lexer/issues", + "source": "https://github.com/doctrine/lexer/tree/2.1.0" + } + }, + { + "name": "friendsofphp/php-cs-fixer", + "version": "v2.19.3", + "version_normalized": "2.19.3.0", + "source": { + "type": "git", + "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git", + "reference": "75ac86f33fab4714ea5a39a396784d83ae3b5ed8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/75ac86f33fab4714ea5a39a396784d83ae3b5ed8", + "reference": "75ac86f33fab4714ea5a39a396784d83ae3b5ed8", + "shasum": "" + }, + "require": { + "composer/semver": "^1.4 || ^2.0 || ^3.0", + "composer/xdebug-handler": "^1.2 || ^2.0", + "doctrine/annotations": "^1.2", + "ext-json": "*", + "ext-tokenizer": "*", + "php": "^5.6 || ^7.0 || ^8.0", + "php-cs-fixer/diff": "^1.3", + "symfony/console": "^3.4.43 || ^4.1.6 || ^5.0", + "symfony/event-dispatcher": "^3.0 || ^4.0 || ^5.0", + "symfony/filesystem": "^3.0 || ^4.0 || ^5.0", + "symfony/finder": "^3.0 || ^4.0 || ^5.0", + "symfony/options-resolver": "^3.0 || ^4.0 || ^5.0", + "symfony/polyfill-php70": "^1.0", + "symfony/polyfill-php72": "^1.4", + "symfony/process": "^3.0 || ^4.0 || ^5.0", + "symfony/stopwatch": "^3.0 || ^4.0 || ^5.0" + }, + "require-dev": { + "justinrainbow/json-schema": "^5.0", + "keradus/cli-executor": "^1.4", + "mikey179/vfsstream": "^1.6", + "php-coveralls/php-coveralls": "^2.4.2", + "php-cs-fixer/accessible-object": "^1.0", + "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.2", + "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.2.1", + "phpspec/prophecy-phpunit": "^1.1 || ^2.0", + "phpunit/phpunit": "^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.13 || ^9.5", + "phpunitgoodpractices/polyfill": "^1.5", + "phpunitgoodpractices/traits": "^1.9.1", + "sanmai/phpunit-legacy-adapter": "^6.4 || ^8.2.1", + "symfony/phpunit-bridge": "^5.2.1", + "symfony/yaml": "^3.0 || ^4.0 || ^5.0" + }, + "suggest": { + "ext-dom": "For handling output formats in XML", + "ext-mbstring": "For handling non-UTF8 characters.", + "php-cs-fixer/phpunit-constraint-isidenticalstring": "For IsIdenticalString constraint.", + "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "For XmlMatchesXsd constraint.", + "symfony/polyfill-mbstring": "When enabling `ext-mbstring` is not possible." + }, + "time": "2021-11-15T17:17:55+00:00", + "bin": [ + "php-cs-fixer" + ], + "type": "application", + "extra": { + "branch-alias": { + "dev-master": "2.19-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "PhpCsFixer\\": "src/" + }, + "classmap": [ + "tests/Test/AbstractFixerTestCase.php", + "tests/Test/AbstractIntegrationCaseFactory.php", + "tests/Test/AbstractIntegrationTestCase.php", + "tests/Test/Assert/AssertTokensTrait.php", + "tests/Test/IntegrationCase.php", + "tests/Test/IntegrationCaseFactory.php", + "tests/Test/IntegrationCaseFactoryInterface.php", + "tests/Test/InternalIntegrationCaseFactory.php", + "tests/Test/IsIdenticalConstraint.php", + "tests/Test/TokensWithObservedTransformers.php", + "tests/TestCase.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Dariusz Rumiński", + "email": "dariusz.ruminski@gmail.com" + } + ], + "description": "A tool to automatically fix PHP code style", + "support": { + "issues": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues", + "source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v2.19.3" + } + }, + { + "name": "guzzlehttp/guzzle", + "version": "7.7.0", + "version_normalized": "7.7.0.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle.git", + "reference": "fb7566caccf22d74d1ab270de3551f72a58399f5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/fb7566caccf22d74d1ab270de3551f72a58399f5", + "reference": "fb7566caccf22d74d1ab270de3551f72a58399f5", + "shasum": "" + }, + "require": { + "ext-json": "*", + "guzzlehttp/promises": "^1.5.3 || ^2.0", + "guzzlehttp/psr7": "^1.9.1 || ^2.4.5", + "php": "^7.2.5 || ^8.0", + "psr/http-client": "^1.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "provide": { + "psr/http-client-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.1", + "ext-curl": "*", + "php-http/client-integration-tests": "dev-master#2c025848417c1135031fdf9c728ee53d0a7ceaee as 3.0.999", + "php-http/message-factory": "^1.1", + "phpunit/phpunit": "^8.5.29 || ^9.5.23", + "psr/log": "^1.1 || ^2.0 || ^3.0" + }, + "suggest": { + "ext-curl": "Required for CURL handler support", + "ext-intl": "Required for Internationalized Domain Name (IDN) support", + "psr/log": "Required for using the Log middleware" + }, + "time": "2023-05-21T14:04:53+00:00", + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "installation-source": "dist", + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Jeremy Lindblom", + "email": "jeremeamia@gmail.com", + "homepage": "https://github.com/jeremeamia" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle is a PHP HTTP client library", + "keywords": [ + "client", + "curl", + "framework", + "http", + "http client", + "psr-18", + "psr-7", + "rest", + "web service" + ], + "support": { + "issues": "https://github.com/guzzle/guzzle/issues", + "source": "https://github.com/guzzle/guzzle/tree/7.7.0" + } + }, + { + "name": "guzzlehttp/promises", + "version": "2.0.0", + "version_normalized": "2.0.0.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/promises.git", + "reference": "3a494dc7dc1d7d12e511890177ae2d0e6c107da6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/promises/zipball/3a494dc7dc1d7d12e511890177ae2d0e6c107da6", + "reference": "3a494dc7dc1d7d12e511890177ae2d0e6c107da6", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.1", + "phpunit/phpunit": "^8.5.29 || ^9.5.23" + }, + "time": "2023-05-21T13:50:22+00:00", + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "GuzzleHttp\\Promise\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle promises library", + "keywords": [ + "promise" + ], + "support": { + "issues": "https://github.com/guzzle/promises/issues", + "source": "https://github.com/guzzle/promises/tree/2.0.0" + } + }, + { + "name": "guzzlehttp/psr7", + "version": "2.5.0", + "version_normalized": "2.5.0.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/psr7.git", + "reference": "b635f279edd83fc275f822a1188157ffea568ff6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/b635f279edd83fc275f822a1188157ffea568ff6", + "reference": "b635f279edd83fc275f822a1188157ffea568ff6", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.1 || ^2.0", + "ralouphie/getallheaders": "^3.0" + }, + "provide": { + "psr/http-factory-implementation": "1.0", + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.1", + "http-interop/http-factory-tests": "^0.9", + "phpunit/phpunit": "^8.5.29 || ^9.5.23" + }, + "suggest": { + "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" + }, + "time": "2023-04-17T16:11:26+00:00", + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "GuzzleHttp\\Psr7\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://sagikazarmark.hu" + } + ], + "description": "PSR-7 message implementation that also provides common utility methods", + "keywords": [ + "http", + "message", + "psr-7", + "request", + "response", + "stream", + "uri", + "url" + ], + "support": { + "issues": "https://github.com/guzzle/psr7/issues", + "source": "https://github.com/guzzle/psr7/tree/2.5.0" + } + }, + { + "name": "php-cs-fixer/diff", + "version": "v1.3.1", + "version_normalized": "1.3.1.0", + "source": { + "type": "git", + "url": "https://github.com/PHP-CS-Fixer/diff.git", + "reference": "dbd31aeb251639ac0b9e7e29405c1441907f5759" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHP-CS-Fixer/diff/zipball/dbd31aeb251639ac0b9e7e29405c1441907f5759", + "reference": "dbd31aeb251639ac0b9e7e29405c1441907f5759", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.7.23 || ^6.4.3 || ^7.0", + "symfony/process": "^3.3" + }, + "time": "2020-10-14T08:39:05+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + }, + { + "name": "SpacePossum" + } + ], + "description": "sebastian/diff v2 backport support for PHP5.6", + "homepage": "https://github.com/PHP-CS-Fixer", + "keywords": [ + "diff" + ], + "support": { + "issues": "https://github.com/PHP-CS-Fixer/diff/issues", + "source": "https://github.com/PHP-CS-Fixer/diff/tree/v1.3.1" + }, + "abandoned": true + }, + { + "name": "phpdocumentor/reflection-common", + "version": "2.2.0", + "version_normalized": "2.2.0.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionCommon.git", + "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b", + "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "time": "2020-06-27T09:03:43+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-2.x": "2.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jaap van Otterdijk", + "email": "opensource@ijaap.nl" + } + ], + "description": "Common reflection classes used by phpdocumentor to reflect the code structure", + "homepage": "http://www.phpdoc.org", + "keywords": [ + "FQSEN", + "phpDocumentor", + "phpdoc", + "reflection", + "static analysis" + ], + "support": { + "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues", + "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x" + } + }, + { + "name": "phpdocumentor/reflection-docblock", + "version": "5.3.0", + "version_normalized": "5.3.0.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", + "reference": "622548b623e81ca6d78b721c5e029f4ce664f170" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/622548b623e81ca6d78b721c5e029f4ce664f170", + "reference": "622548b623e81ca6d78b721c5e029f4ce664f170", + "shasum": "" + }, + "require": { + "ext-filter": "*", + "php": "^7.2 || ^8.0", + "phpdocumentor/reflection-common": "^2.2", + "phpdocumentor/type-resolver": "^1.3", + "webmozart/assert": "^1.9.1" + }, + "require-dev": { + "mockery/mockery": "~1.3.2", + "psalm/phar": "^4.8" + }, + "time": "2021-10-19T17:43:47+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + }, + { + "name": "Jaap van Otterdijk", + "email": "account@ijaap.nl" + } + ], + "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", + "support": { + "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", + "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.3.0" + } + }, + { + "name": "phpdocumentor/type-resolver", + "version": "1.6.1", + "version_normalized": "1.6.1.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/TypeResolver.git", + "reference": "77a32518733312af16a44300404e945338981de3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/77a32518733312af16a44300404e945338981de3", + "reference": "77a32518733312af16a44300404e945338981de3", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0", + "phpdocumentor/reflection-common": "^2.0" + }, + "require-dev": { + "ext-tokenizer": "*", + "psalm/phar": "^4.8" + }, + "time": "2022-03-15T21:29:03+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-1.x": "1.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + } + ], + "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", + "support": { + "issues": "https://github.com/phpDocumentor/TypeResolver/issues", + "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.6.1" + } + }, + { + "name": "phpspec/prophecy", + "version": "v1.10.3", + "version_normalized": "1.10.3.0", + "source": { + "type": "git", + "url": "https://github.com/phpspec/prophecy.git", + "reference": "451c3cd1418cf640de218914901e51b064abb093" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/451c3cd1418cf640de218914901e51b064abb093", + "reference": "451c3cd1418cf640de218914901e51b064abb093", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.0.2", + "php": "^5.3|^7.0", + "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0", + "sebastian/comparator": "^1.2.3|^2.0|^3.0|^4.0", + "sebastian/recursion-context": "^1.0|^2.0|^3.0|^4.0" + }, + "require-dev": { + "phpspec/phpspec": "^2.5 || ^3.2", + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1" + }, + "time": "2020-03-05T15:02:03+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.10.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Prophecy\\": "src/Prophecy" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Konstantin Kudryashov", + "email": "ever.zet@gmail.com", + "homepage": "http://everzet.com" + }, + { + "name": "Marcello Duarte", + "email": "marcello.duarte@gmail.com" + } + ], + "description": "Highly opinionated mocking framework for PHP 5.3+", + "homepage": "https://github.com/phpspec/prophecy", + "keywords": [ + "Double", + "Dummy", + "fake", + "mock", + "spy", + "stub" + ], + "support": { + "issues": "https://github.com/phpspec/prophecy/issues", + "source": "https://github.com/phpspec/prophecy/tree/v1.10.3" + } + }, + { + "name": "phpunit/php-code-coverage", + "version": "2.2.4", + "version_normalized": "2.2.4.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/eabf68b476ac7d0f73793aada060f1c1a9bf8979", + "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "phpunit/php-file-iterator": "~1.3", + "phpunit/php-text-template": "~1.2", + "phpunit/php-token-stream": "~1.3", + "sebastian/environment": "^1.3.2", + "sebastian/version": "~1.0" + }, + "require-dev": { + "ext-xdebug": ">=2.1.4", + "phpunit/phpunit": "~4" + }, + "suggest": { + "ext-dom": "*", + "ext-xdebug": ">=2.2.1", + "ext-xmlwriter": "*" + }, + "time": "2015-10-06T15:47:00+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.2.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "support": { + "irc": "irc://irc.freenode.net/phpunit", + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/2.2" + } + }, + { + "name": "phpunit/php-file-iterator", + "version": "1.4.5", + "version_normalized": "1.4.5.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4", + "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "time": "2017-11-27T13:52:08+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "support": { + "irc": "irc://irc.freenode.net/phpunit", + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/1.4.5" + } + }, + { + "name": "phpunit/php-text-template", + "version": "1.2.1", + "version_normalized": "1.2.1.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "time": "2015-06-21T13:50:34+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/1.2.1" + } + }, + { + "name": "phpunit/php-timer", + "version": "1.0.9", + "version_normalized": "1.0.9.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", + "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" + }, + "time": "2017-02-26T11:10:40+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "installation-source": "dist", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "source": "https://github.com/sebastianbergmann/php-timer/tree/master" + } + }, + { + "name": "phpunit/php-token-stream", + "version": "1.4.12", + "version_normalized": "1.4.12.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-token-stream.git", + "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/1ce90ba27c42e4e44e6d8458241466380b51fa16", + "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.2" + }, + "time": "2017-12-04T08:55:13+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4-dev" + } + }, + "installation-source": "dist", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Wrapper around PHP's tokenizer extension.", + "homepage": "https://github.com/sebastianbergmann/php-token-stream/", + "keywords": [ + "tokenizer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-token-stream/issues", + "source": "https://github.com/sebastianbergmann/php-token-stream/tree/1.4" + }, + "abandoned": true + }, + { + "name": "phpunit/phpunit", + "version": "4.8.36", + "version_normalized": "4.8.36.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "46023de9a91eec7dfb06cc56cb4e260017298517" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/46023de9a91eec7dfb06cc56cb4e260017298517", + "reference": "46023de9a91eec7dfb06cc56cb4e260017298517", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-json": "*", + "ext-pcre": "*", + "ext-reflection": "*", + "ext-spl": "*", + "php": ">=5.3.3", + "phpspec/prophecy": "^1.3.1", + "phpunit/php-code-coverage": "~2.1", + "phpunit/php-file-iterator": "~1.4", + "phpunit/php-text-template": "~1.2", + "phpunit/php-timer": "^1.0.6", + "phpunit/phpunit-mock-objects": "~2.3", + "sebastian/comparator": "~1.2.2", + "sebastian/diff": "~1.2", + "sebastian/environment": "~1.3", + "sebastian/exporter": "~1.2", + "sebastian/global-state": "~1.0", + "sebastian/version": "~1.0", + "symfony/yaml": "~2.1|~3.0" + }, + "suggest": { + "phpunit/php-invoker": "~1.1" + }, + "time": "2017-06-21T08:07:12+00:00", + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.8.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "source": "https://github.com/sebastianbergmann/phpunit/tree/4.8.36" + } + }, + { + "name": "phpunit/phpunit-mock-objects", + "version": "2.3.8", + "version_normalized": "2.3.8.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", + "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/ac8e7a3db35738d56ee9a76e78a4e03d97628983", + "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.0.2", + "php": ">=5.3.3", + "phpunit/php-text-template": "~1.2", + "sebastian/exporter": "~1.2" + }, + "require-dev": { + "phpunit/phpunit": "~4.4" + }, + "suggest": { + "ext-soap": "*" + }, + "time": "2015-10-02T06:51:40+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.3.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Mock Object library for PHPUnit", + "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/", + "keywords": [ + "mock", + "xunit" + ], + "support": { + "irc": "irc://irc.freenode.net/phpunit", + "issues": "https://github.com/sebastianbergmann/phpunit-mock-objects/issues", + "source": "https://github.com/sebastianbergmann/phpunit-mock-objects/tree/2.3" + }, + "abandoned": true + }, + { + "name": "psr/cache", + "version": "1.0.1", + "version_normalized": "1.0.1.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/cache.git", + "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8", + "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "time": "2016-08-06T20:24:11+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Psr\\Cache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for caching libraries", + "keywords": [ + "cache", + "psr", + "psr-6" + ], + "support": { + "source": "https://github.com/php-fig/cache/tree/master" + } + }, + { + "name": "psr/container", + "version": "1.1.1", + "version_normalized": "1.1.1.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf", + "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf", + "shasum": "" + }, + "require": { + "php": ">=7.2.0" + }, + "time": "2021-03-05T17:36:06+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/1.1.1" + } + }, + { + "name": "psr/event-dispatcher", + "version": "1.0.0", + "version_normalized": "1.0.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/event-dispatcher.git", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", + "shasum": "" + }, + "require": { + "php": ">=7.2.0" + }, + "time": "2019-01-08T18:20:26+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Psr\\EventDispatcher\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Standard interfaces for event handling.", + "keywords": [ + "events", + "psr", + "psr-14" + ], + "support": { + "issues": "https://github.com/php-fig/event-dispatcher/issues", + "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" + } + }, + { + "name": "psr/http-client", + "version": "1.0.2", + "version_normalized": "1.0.2.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/0955afe48220520692d2d09f7ab7e0f93ffd6a31", + "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "time": "2023-04-10T20:12:12+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client/tree/1.0.2" + } + }, + { + "name": "psr/http-factory", + "version": "1.0.2", + "version_normalized": "1.0.2.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "e616d01114759c4c489f93b099585439f795fe35" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35", + "reference": "e616d01114759c4c489f93b099585439f795fe35", + "shasum": "" + }, + "require": { + "php": ">=7.0.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "time": "2023-04-10T20:10:41+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory/tree/1.0.2" + } + }, + { + "name": "psr/http-message", + "version": "2.0", + "version_normalized": "2.0.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "time": "2023-04-04T09:54:51+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/2.0" + } + }, + { + "name": "psr/log", + "version": "1.1.4", + "version_normalized": "1.1.4.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "d49695b909c3b7628b6289db5479a1c204601f11" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11", + "reference": "d49695b909c3b7628b6289db5479a1c204601f11", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "time": "2021-05-03T11:20:27+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Psr\\Log\\": "Psr/Log/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "support": { + "source": "https://github.com/php-fig/log/tree/1.1.4" + } + }, + { + "name": "ralouphie/getallheaders", + "version": "3.0.3", + "version_normalized": "3.0.3.0", + "source": { + "type": "git", + "url": "https://github.com/ralouphie/getallheaders.git", + "reference": "120b605dfeb996808c31b6477290a714d356e822" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", + "reference": "120b605dfeb996808c31b6477290a714d356e822", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.1", + "phpunit/phpunit": "^5 || ^6.5" + }, + "time": "2019-03-08T08:55:37+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "files": [ + "src/getallheaders.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ralph Khattar", + "email": "ralph.khattar@gmail.com" + } + ], + "description": "A polyfill for getallheaders.", + "support": { + "issues": "https://github.com/ralouphie/getallheaders/issues", + "source": "https://github.com/ralouphie/getallheaders/tree/develop" + } + }, + { + "name": "sebastian/comparator", + "version": "1.2.4", + "version_normalized": "1.2.4.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", + "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "sebastian/diff": "~1.2", + "sebastian/exporter": "~1.2 || ~2.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.4" + }, + "time": "2017-01-29T09:50:25+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "http://www.github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "source": "https://github.com/sebastianbergmann/comparator/tree/1.2" + } + }, + { + "name": "sebastian/diff", + "version": "1.4.3", + "version_normalized": "1.4.3.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4", + "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" + }, + "time": "2017-05-22T07:24:03+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4-dev" + } + }, + "installation-source": "dist", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "source": "https://github.com/sebastianbergmann/diff/tree/1.4" + } + }, + { + "name": "sebastian/environment", + "version": "1.3.8", + "version_normalized": "1.3.8.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/be2c607e43ce4c89ecd60e75c6a85c126e754aea", + "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8 || ^5.0" + }, + "time": "2016-08-18T05:49:44+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "source": "https://github.com/sebastianbergmann/environment/tree/1.3" + } + }, + { + "name": "sebastian/exporter", + "version": "1.2.2", + "version_normalized": "1.2.2.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/42c4c2eec485ee3e159ec9884f95b431287edde4", + "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "sebastian/recursion-context": "~1.0" + }, + "require-dev": { + "ext-mbstring": "*", + "phpunit/phpunit": "~4.4" + }, + "time": "2016-06-17T09:04:28+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "http://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "source": "https://github.com/sebastianbergmann/exporter/tree/master" + } + }, + { + "name": "sebastian/global-state", + "version": "1.1.1", + "version_normalized": "1.1.1.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4", + "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.2" + }, + "suggest": { + "ext-uopz": "*" + }, + "time": "2015-10-12T03:26:01+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "installation-source": "dist", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "source": "https://github.com/sebastianbergmann/global-state/tree/1.1.1" + } + }, + { + "name": "sebastian/recursion-context", + "version": "1.0.5", + "version_normalized": "1.0.5.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/b19cc3298482a335a95f3016d2f8a6950f0fbcd7", + "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.4" + }, + "time": "2016-10-03T07:41:43+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/master" + } + }, + { + "name": "sebastian/version", + "version": "1.0.6", + "version_normalized": "1.0.6.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", + "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", + "shasum": "" + }, + "time": "2015-06-21T13:59:46+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "source": "https://github.com/sebastianbergmann/version/tree/1.0.6" + } + }, + { + "name": "squizlabs/php_codesniffer", + "version": "2.9.2", + "version_normalized": "2.9.2.0", + "source": { + "type": "git", + "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", + "reference": "2acf168de78487db620ab4bc524135a13cfe6745" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/2acf168de78487db620ab4bc524135a13cfe6745", + "reference": "2acf168de78487db620ab4bc524135a13cfe6745", + "shasum": "" + }, + "require": { + "ext-simplexml": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": ">=5.1.2" + }, + "require-dev": { + "phpunit/phpunit": "~4.0" + }, + "time": "2018-11-07T22:31:41+00:00", + "bin": [ + "scripts/phpcs", + "scripts/phpcbf" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "classmap": [ + "CodeSniffer.php", + "CodeSniffer/CLI.php", + "CodeSniffer/Exception.php", + "CodeSniffer/File.php", + "CodeSniffer/Fixer.php", + "CodeSniffer/Report.php", + "CodeSniffer/Reporting.php", + "CodeSniffer/Sniff.php", + "CodeSniffer/Tokens.php", + "CodeSniffer/Reports/", + "CodeSniffer/Tokenizers/", + "CodeSniffer/DocGenerators/", + "CodeSniffer/Standards/AbstractPatternSniff.php", + "CodeSniffer/Standards/AbstractScopeSniff.php", + "CodeSniffer/Standards/AbstractVariableSniff.php", + "CodeSniffer/Standards/IncorrectPatternException.php", + "CodeSniffer/Standards/Generic/Sniffs/", + "CodeSniffer/Standards/MySource/Sniffs/", + "CodeSniffer/Standards/PEAR/Sniffs/", + "CodeSniffer/Standards/PSR1/Sniffs/", + "CodeSniffer/Standards/PSR2/Sniffs/", + "CodeSniffer/Standards/Squiz/Sniffs/", + "CodeSniffer/Standards/Zend/Sniffs/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Greg Sherwood", + "role": "lead" + } + ], + "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", + "homepage": "http://www.squizlabs.com/php-codesniffer", + "keywords": [ + "phpcs", + "standards" + ], + "support": { + "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues", + "source": "https://github.com/squizlabs/PHP_CodeSniffer", + "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" + } + }, + { + "name": "symfony/console", + "version": "v5.4.24", + "version_normalized": "5.4.24.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/console.git", + "reference": "560fc3ed7a43e6d30ea94a07d77f9a60b8ed0fb8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/console/zipball/560fc3ed7a43e6d30ea94a07d77f9a60b8ed0fb8", + "reference": "560fc3ed7a43e6d30ea94a07d77f9a60b8ed0fb8", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php73": "^1.9", + "symfony/polyfill-php80": "^1.16", + "symfony/service-contracts": "^1.1|^2|^3", + "symfony/string": "^5.1|^6.0" + }, + "conflict": { + "psr/log": ">=3", + "symfony/dependency-injection": "<4.4", + "symfony/dotenv": "<5.1", + "symfony/event-dispatcher": "<4.4", + "symfony/lock": "<4.4", + "symfony/process": "<4.4" + }, + "provide": { + "psr/log-implementation": "1.0|2.0" + }, + "require-dev": { + "psr/log": "^1|^2", + "symfony/config": "^4.4|^5.0|^6.0", + "symfony/dependency-injection": "^4.4|^5.0|^6.0", + "symfony/event-dispatcher": "^4.4|^5.0|^6.0", + "symfony/lock": "^4.4|^5.0|^6.0", + "symfony/process": "^4.4|^5.0|^6.0", + "symfony/var-dumper": "^4.4|^5.0|^6.0" + }, + "suggest": { + "psr/log": "For using the console logger", + "symfony/event-dispatcher": "", + "symfony/lock": "", + "symfony/process": "" + }, + "time": "2023-05-26T05:13:16+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "Symfony\\Component\\Console\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Eases the creation of beautiful and testable command line interfaces", + "homepage": "https://symfony.com", + "keywords": [ + "cli", + "command-line", + "console", + "terminal" + ], + "support": { + "source": "https://github.com/symfony/console/tree/v5.4.24" + } + }, + { + "name": "symfony/deprecation-contracts", + "version": "v2.5.2", + "version_normalized": "2.5.2.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e8b495ea28c1d97b5e0c121748d6f9b53d075c66", + "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "time": "2022-01-02T09:53:40+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "installation-source": "dist", + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.2" + } + }, + { + "name": "symfony/event-dispatcher", + "version": "v5.4.22", + "version_normalized": "5.4.22.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "1df20e45d56da29a4b1d8259dd6e950acbf1b13f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/1df20e45d56da29a4b1d8259dd6e950acbf1b13f", + "reference": "1df20e45d56da29a4b1d8259dd6e950acbf1b13f", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/event-dispatcher-contracts": "^2|^3", + "symfony/polyfill-php80": "^1.16" + }, + "conflict": { + "symfony/dependency-injection": "<4.4" + }, + "provide": { + "psr/event-dispatcher-implementation": "1.0", + "symfony/event-dispatcher-implementation": "2.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^4.4|^5.0|^6.0", + "symfony/dependency-injection": "^4.4|^5.0|^6.0", + "symfony/error-handler": "^4.4|^5.0|^6.0", + "symfony/expression-language": "^4.4|^5.0|^6.0", + "symfony/http-foundation": "^4.4|^5.0|^6.0", + "symfony/service-contracts": "^1.1|^2|^3", + "symfony/stopwatch": "^4.4|^5.0|^6.0" + }, + "suggest": { + "symfony/dependency-injection": "", + "symfony/http-kernel": "" + }, + "time": "2023-03-17T11:31:58+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "Symfony\\Component\\EventDispatcher\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/event-dispatcher/tree/v5.4.22" + } + }, + { + "name": "symfony/event-dispatcher-contracts", + "version": "v2.5.2", + "version_normalized": "2.5.2.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher-contracts.git", + "reference": "f98b54df6ad059855739db6fcbc2d36995283fe1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/f98b54df6ad059855739db6fcbc2d36995283fe1", + "reference": "f98b54df6ad059855739db6fcbc2d36995283fe1", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "psr/event-dispatcher": "^1" + }, + "suggest": { + "symfony/event-dispatcher-implementation": "" + }, + "time": "2022-01-02T09:53:40+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Symfony\\Contracts\\EventDispatcher\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to dispatching event", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v2.5.2" + } + }, + { + "name": "symfony/filesystem", + "version": "v5.4.25", + "version_normalized": "5.4.25.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/filesystem.git", + "reference": "0ce3a62c9579a53358d3a7eb6b3dfb79789a6364" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/0ce3a62c9579a53358d3a7eb6b3dfb79789a6364", + "reference": "0ce3a62c9579a53358d3a7eb6b3dfb79789a6364", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-mbstring": "~1.8", + "symfony/polyfill-php80": "^1.16" + }, + "time": "2023-05-31T13:04:02+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "Symfony\\Component\\Filesystem\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides basic utilities for the filesystem", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/filesystem/tree/v5.4.25" + } + }, + { + "name": "symfony/finder", + "version": "v5.4.21", + "version_normalized": "5.4.21.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/finder.git", + "reference": "078e9a5e1871fcfe6a5ce421b539344c21afef19" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/finder/zipball/078e9a5e1871fcfe6a5ce421b539344c21afef19", + "reference": "078e9a5e1871fcfe6a5ce421b539344c21afef19", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-php80": "^1.16" + }, + "time": "2023-02-16T09:33:00+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "Symfony\\Component\\Finder\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Finds files and directories via an intuitive fluent interface", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/finder/tree/v5.4.21" + } + }, + { + "name": "symfony/options-resolver", + "version": "v5.4.21", + "version_normalized": "5.4.21.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/options-resolver.git", + "reference": "4fe5cf6ede71096839f0e4b4444d65dd3a7c1eb9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/4fe5cf6ede71096839f0e4b4444d65dd3a7c1eb9", + "reference": "4fe5cf6ede71096839f0e4b4444d65dd3a7c1eb9", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-php73": "~1.0", + "symfony/polyfill-php80": "^1.16" + }, + "time": "2023-02-14T08:03:56+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "Symfony\\Component\\OptionsResolver\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an improved replacement for the array_replace PHP function", + "homepage": "https://symfony.com", + "keywords": [ + "config", + "configuration", + "options" + ], + "support": { + "source": "https://github.com/symfony/options-resolver/tree/v5.4.21" + } + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.27.0", + "version_normalized": "1.27.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "5bbc823adecdae860bb64756d639ecfec17b050a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/5bbc823adecdae860bb64756d639ecfec17b050a", + "reference": "5bbc823adecdae860bb64756d639ecfec17b050a", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-ctype": "*" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "time": "2022-11-03T14:55:06+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "installation-source": "dist", + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "support": { + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.27.0" + } + }, + { + "name": "symfony/polyfill-intl-grapheme", + "version": "v1.27.0", + "version_normalized": "1.27.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-grapheme.git", + "reference": "511a08c03c1960e08a883f4cffcacd219b758354" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/511a08c03c1960e08a883f4cffcacd219b758354", + "reference": "511a08c03c1960e08a883f4cffcacd219b758354", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "time": "2022-11-03T14:55:06+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "installation-source": "dist", + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Grapheme\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's grapheme_* functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "grapheme", + "intl", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.27.0" + } + }, + { + "name": "symfony/polyfill-intl-normalizer", + "version": "v1.27.0", + "version_normalized": "1.27.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-normalizer.git", + "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/19bd1e4fcd5b91116f14d8533c57831ed00571b6", + "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "time": "2022-11-03T14:55:06+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "installation-source": "dist", + "autoload": { + "files": [ + "bootstrap.php" ], - "description": "Symfony Yaml Component", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/yaml/tree/v3.4.47" + "psr-4": { + "Symfony\\Polyfill\\Intl\\Normalizer\\": "" }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's Normalizer class and related functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "intl", + "normalizer", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.27.0" + } + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.27.0", + "version_normalized": "1.27.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/8ad114f6b39e2c98a8b0e3bd907732c207c2b534", + "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-mbstring": "*" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "time": "2022-11-03T14:55:06+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "installation-source": "dist", + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.27.0" + } + }, + { + "name": "symfony/polyfill-php70", + "version": "v1.20.0", + "version_normalized": "1.20.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php70.git", + "reference": "5f03a781d984aae42cebd18e7912fa80f02ee644" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/5f03a781d984aae42cebd18e7912fa80f02ee644", + "reference": "5f03a781d984aae42cebd18e7912fa80f02ee644", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "time": "2020-10-23T14:02:19+00:00", + "type": "metapackage", + "extra": { + "branch-alias": { + "dev-main": "1.20-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php70/tree/v1.20.0" + } + }, + { + "name": "symfony/polyfill-php72", + "version": "v1.27.0", + "version_normalized": "1.27.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php72.git", + "reference": "869329b1e9894268a8a61dabb69153029b7a8c97" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/869329b1e9894268a8a61dabb69153029b7a8c97", + "reference": "869329b1e9894268a8a61dabb69153029b7a8c97", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "time": "2022-11-03T14:55:06+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "installation-source": "dist", + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php72\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php72/tree/v1.27.0" + } + }, + { + "name": "symfony/polyfill-php73", + "version": "v1.27.0", + "version_normalized": "1.27.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php73.git", + "reference": "9e8ecb5f92152187c4799efd3c96b78ccab18ff9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/9e8ecb5f92152187c4799efd3c96b78ccab18ff9", + "reference": "9e8ecb5f92152187c4799efd3c96b78ccab18ff9", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "time": "2022-11-03T14:55:06+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "installation-source": "dist", + "autoload": { + "files": [ + "bootstrap.php" ], - "install-path": "../symfony/yaml" - }, - { - "name": "webmozart/assert", - "version": "1.11.0", - "version_normalized": "1.11.0.0", - "source": { - "type": "git", - "url": "https://github.com/webmozarts/assert.git", - "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991" + "psr-4": { + "Symfony\\Polyfill\\Php73\\": "" }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/webmozarts/assert/zipball/11cb2199493b2f8a3b53e7f19068fc6aac760991", - "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991", - "shasum": "" - }, - "require": { - "ext-ctype": "*", - "php": "^7.2 || ^8.0" - }, - "conflict": { - "phpstan/phpstan": "<0.12.20", - "vimeo/psalm": "<4.6.1 || 4.6.2" - }, - "require-dev": { - "phpunit/phpunit": "^8.5.13" - }, - "time": "2022-06-03T18:03:27+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.10-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Webmozart\\Assert\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" - } - ], - "description": "Assertions to validate method input/output with nice error messages.", - "keywords": [ - "assert", - "check", - "validate" + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php73/tree/v1.27.0" + } + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.27.0", + "version_normalized": "1.27.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", + "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "time": "2022-11-03T14:55:06+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "installation-source": "dist", + "autoload": { + "files": [ + "bootstrap.php" ], - "support": { - "issues": "https://github.com/webmozarts/assert/issues", - "source": "https://github.com/webmozarts/assert/tree/1.11.0" + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" }, - "install-path": "../webmozart/assert" + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.27.0" + } + }, + { + "name": "symfony/process", + "version": "v5.4.24", + "version_normalized": "5.4.24.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/process.git", + "reference": "e3c46cc5689c8782944274bb30702106ecbe3b64" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/process/zipball/e3c46cc5689c8782944274bb30702106ecbe3b64", + "reference": "e3c46cc5689c8782944274bb30702106ecbe3b64", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/polyfill-php80": "^1.16" + }, + "time": "2023-05-17T11:26:05+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "Symfony\\Component\\Process\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Executes commands in sub-processes", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/process/tree/v5.4.24" + } + }, + { + "name": "symfony/service-contracts", + "version": "v2.5.2", + "version_normalized": "2.5.2.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/service-contracts.git", + "reference": "4b426aac47d6427cc1a1d0f7e2ac724627f5966c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/4b426aac47d6427cc1a1d0f7e2ac724627f5966c", + "reference": "4b426aac47d6427cc1a1d0f7e2ac724627f5966c", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "psr/container": "^1.1", + "symfony/deprecation-contracts": "^2.1|^3" + }, + "conflict": { + "ext-psr": "<1.1|>=2" + }, + "suggest": { + "symfony/service-implementation": "" + }, + "time": "2022-05-30T19:17:29+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Service\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to writing services", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/service-contracts/tree/v2.5.2" + } + }, + { + "name": "symfony/stopwatch", + "version": "v5.4.21", + "version_normalized": "5.4.21.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/stopwatch.git", + "reference": "f83692cd869a6f2391691d40a01e8acb89e76fee" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/f83692cd869a6f2391691d40a01e8acb89e76fee", + "reference": "f83692cd869a6f2391691d40a01e8acb89e76fee", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/service-contracts": "^1|^2|^3" + }, + "time": "2023-02-14T08:03:56+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "Symfony\\Component\\Stopwatch\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides a way to profile code", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/stopwatch/tree/v5.4.21" + } + }, + { + "name": "symfony/string", + "version": "v5.4.22", + "version_normalized": "5.4.22.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/string.git", + "reference": "8036a4c76c0dd29e60b6a7cafcacc50cf088ea62" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/string/zipball/8036a4c76c0dd29e60b6a7cafcacc50cf088ea62", + "reference": "8036a4c76c0dd29e60b6a7cafcacc50cf088ea62", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-intl-grapheme": "~1.0", + "symfony/polyfill-intl-normalizer": "~1.0", + "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php80": "~1.15" + }, + "conflict": { + "symfony/translation-contracts": ">=3.0" + }, + "require-dev": { + "symfony/error-handler": "^4.4|^5.0|^6.0", + "symfony/http-client": "^4.4|^5.0|^6.0", + "symfony/translation-contracts": "^1.1|^2", + "symfony/var-exporter": "^4.4|^5.0|^6.0" + }, + "time": "2023-03-14T06:11:53+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\String\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way", + "homepage": "https://symfony.com", + "keywords": [ + "grapheme", + "i18n", + "string", + "unicode", + "utf-8", + "utf8" + ], + "support": { + "source": "https://github.com/symfony/string/tree/v5.4.22" + } + }, + { + "name": "symfony/yaml", + "version": "v3.4.47", + "version_normalized": "3.4.47.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "88289caa3c166321883f67fe5130188ebbb47094" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/88289caa3c166321883f67fe5130188ebbb47094", + "reference": "88289caa3c166321883f67fe5130188ebbb47094", + "shasum": "" + }, + "require": { + "php": "^5.5.9|>=7.0.8", + "symfony/polyfill-ctype": "~1.8" + }, + "conflict": { + "symfony/console": "<3.4" + }, + "require-dev": { + "symfony/console": "~3.4|~4.0" + }, + "suggest": { + "symfony/console": "For validating YAML files using the lint command" + }, + "time": "2020-10-24T10:57:07+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Yaml Component", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/yaml/tree/v3.4.47" + } + }, + { + "name": "webmozart/assert", + "version": "1.11.0", + "version_normalized": "1.11.0.0", + "source": { + "type": "git", + "url": "https://github.com/webmozarts/assert.git", + "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/11cb2199493b2f8a3b53e7f19068fc6aac760991", + "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "php": "^7.2 || ^8.0" + }, + "conflict": { + "phpstan/phpstan": "<0.12.20", + "vimeo/psalm": "<4.6.1 || 4.6.2" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.13" + }, + "time": "2022-06-03T18:03:27+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.10-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Webmozart\\Assert\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "support": { + "issues": "https://github.com/webmozarts/assert/issues", + "source": "https://github.com/webmozarts/assert/tree/1.11.0" } - ], - "dev": true, - "dev-package-names": [ - "composer/pcre", - "composer/semver", - "composer/xdebug-handler", - "doctrine/annotations", - "doctrine/deprecations", - "doctrine/instantiator", - "doctrine/lexer", - "friendsofphp/php-cs-fixer", - "php-cs-fixer/diff", - "phpdocumentor/reflection-common", - "phpdocumentor/reflection-docblock", - "phpdocumentor/type-resolver", - "phpspec/prophecy", - "phpunit/php-code-coverage", - "phpunit/php-file-iterator", - "phpunit/php-text-template", - "phpunit/php-timer", - "phpunit/php-token-stream", - "phpunit/phpunit", - "phpunit/phpunit-mock-objects", - "psr/cache", - "psr/container", - "psr/event-dispatcher", - "psr/log", - "sebastian/comparator", - "sebastian/diff", - "sebastian/environment", - "sebastian/exporter", - "sebastian/global-state", - "sebastian/recursion-context", - "sebastian/version", - "squizlabs/php_codesniffer", - "symfony/console", - "symfony/event-dispatcher", - "symfony/event-dispatcher-contracts", - "symfony/filesystem", - "symfony/finder", - "symfony/options-resolver", - "symfony/polyfill-ctype", - "symfony/polyfill-intl-grapheme", - "symfony/polyfill-intl-normalizer", - "symfony/polyfill-mbstring", - "symfony/polyfill-php70", - "symfony/polyfill-php72", - "symfony/polyfill-php73", - "symfony/polyfill-php80", - "symfony/process", - "symfony/service-contracts", - "symfony/stopwatch", - "symfony/string", - "symfony/yaml", - "webmozart/assert" - ] -} + } +]