MNB PHPExcelDeveloper Guide
DB + XLSX library

Standalone DB + XLSX capabilities

Large XLSX-to-PDO streaming and resume features.

The Database + XLSX bridge combines the XLSX streaming reader with Database validation and prepared PDO persistence. It is intended for direct, bounded-memory import of very large worksheets.

Package
1
DB + XLSX
Capabilities
10
Documented for this library
Feature groups
6
Package-specific responsibilities

Updated

LevelAll levelsReading time5 minPackagemnb/mnb-phpexcel-database-xlsx

What you will learn

  • See what the XLSX-to-PDO bridge adds.
  • Distinguish it from the generic Database and XLSX packages.
  • Open the large-import or resume guide for implementation details.

What this library includes

This page is limited to mnb/mnb-phpexcel-database-xlsx. Features from the monolithic package or another individual library are not mixed into this list.

Installcomposer require mnb/mnb-phpexcel-database-xlsx:^2.0
Primary APIMnb\PHPExcel\Large\LargeExcelDatabaseImportEngine
ScopeIndividual libraryFocused dependency and package-local API

Package quick start

The example uses the individual-library API documented by this feature page.

db-xlsx-features.php
<?php

require __DIR__ . '/vendor/autoload.php';

use Mnb\PHPExcel\Large\LargeExcelDatabaseImportEngine;

$engine = new LargeExcelDatabaseImportEngine($pdo);
$result = $engine->import('products.xlsx', 'products', [
    'sheet' => 'Products',
    'header_row' => 1,
    'chunk_size' => 2000,
    'batch_size' => 500,
    'resume' => true,
]);

Supported capabilities

Search the capabilities owned by this package and open the matching package-specific guide.

10 of 10 features

XLSX source2 capabilities
FeatureWhat it doesTypical useSupportGuide
Direct worksheet streamingOpen one XLSX worksheet and pass normalized rows directly into the database pipeline.Very large uploadsSupportedOpen guide
Sheet and header selectionChoose the worksheet and 1-based header row used for mapping.Multi-sheet import filesSupportedOpen guide
Scale1 capabilities
FeatureWhat it doesTypical useSupportGuide
Independent chunk and batch sizesTune XLSX orchestration chunks separately from prepared SQL batches.Memory and transaction controlSupportedOpen guide
Mapping1 capabilities
FeatureWhat it doesTypical useSupportGuide
Column projection and target mappingRead only required source columns and map them to database fields.Wide worksheetsSupportedOpen guide
Validation1 capabilities
FeatureWhat it doesTypical useSupportGuide
Database package rule pipelineApply normalizers, field rules, cross-field checks, defaults, and transformations.Production data qualitySupportedOpen guide
Duplicates1 capabilities
FeatureWhat it doesTypical useSupportGuide
Configurable duplicate handlingInsert, update, skip, or fail according to unique keys.Synchronization jobsSupportedOpen guide
Operations4 capabilities
FeatureWhat it doesTypical useSupportGuide
Progress callbacksReport worksheet and persistence progress to queues, logs, or user interfaces.Long-running importsSupportedOpen guide
Persistent resume manifestsCheckpoint import state and continue after interruption.Resilient workersSupportedOpen guide
Failed-row reportingPreserve physical worksheet row numbers and validation details.User correction workflowsSupportedOpen guide
Idempotent replay designCoordinate unique keys, checkpoints, and transactions for safe retries.Queue and cron processingSupportedOpen guide

Feature boundaries

These limits prevent individual-library documentation from being confused with the complete monolithic package.

CapabilityStatusWhat to use instead
General CSV, JSON, XML, ODS, or XLS importNot supported: Use Database with the relevant format library.Use Database with the relevant format library.
Rich XLSX report generationNot supported: This bridge imports rows; XLSX writing belongs to mnb/mnb-phpexcel-xlsx.This bridge imports rows; XLSX writing belongs to mnb/mnb-phpexcel-xlsx.
Database-independent XLSX processingNot supported: Use the XLSX library directly when PDO persistence is not required.Use the XLSX library directly when PDO persistence is not required.