MNB PHPExcelDeveloper Guide
DB + XLSX library

DB + XLSX classes and methods.

Browse this library and the shared dependency classes returned by its public API. Package ownership remains visible beside each class.

Packagemnb/mnb-phpexcel-database-xlsxReference104 classes · 507 methods

Updated

Class API

Mnb\PHPExcel\Large\LargeExcelDatabaseImportEngine

# Streams large XLSX rows into a database using chunk validation, PDO batch inserts, failed-row CSV export, and resumable JSON progress manifests.# Declaration: final class LargeExcelDatabaseImportEngine# Package: mnb/mnb-phpexcel-database-xlsx# Methods: 3Mnb\PHPExcel\Large\LargeExcelDatabaseImportEngine{
# Purpose: Creates a new LargeExcelDatabaseImportEngine instance.public function __construct(?LargeXlsxStreamingReader $reader = null, # Reader implementation used by the session.?ArrayValidator $validator = null, # Input value for `$validator` (?ArrayValidator). Example: []?SqlImporter $sqlImporter = null # Input value for `$sqlImporter` (?SqlImporter).): mixed
# Purpose: Imports to sql.public function importToSql(string $path, # Path to the source or destination file. Example: __DIR__ . '/workbook.xlsx'PDO $pdo, # PDO connection used for database operations.string $table, # Database table name. Example: 'imports'array $options = [] # Configuration options for this operation. Example: []): array
# Purpose: Import all or selected sheets from a workbook. Each sheet is imported by the same streaming engine.public function importWorkbookToSql(string $path, # Path to the source or destination file. Example: __DIR__ . '/workbook.xlsx'PDO $pdo, # PDO connection used for database operations.string|array $tableMap, # Input value for `$tableMap` (string|array). Example: []array $options = [] # Configuration options for this operation. Example: []): array
}