MNB PHPExcelDeveloper Guide

Database · Large files

Database large files examples.

Package-local, copy-ready examples organized like the classes and methods reference. Open one example at a time, search by method, and jump from the right-side index.

Packagemnb/mnb-phpexcel-database:^2.0Reference1 examples · 2 methods
Database individual library

Large files examples with copy-ready, production-minded PHP.

Every snippet uses mnb/mnb-phpexcel-database or its declared Core dependency. Each copied snippet includes strict typing, a concise summary, implementation guidance, readable limits, and a safe fixture check.

1
examples
2
documented methods
Example 01

Persist a resumable import manifest

Open related guide
LargeImportManifest::start()LargeImportManifest::update()
persist-a-resumable-import-manifest.php
<?php

declare(strict_types=1);

/*
Summary:
    Store source identity, progress, and the last committed row for a long-running import.

Implementation note:
    Resume safety also depends on stable unique keys, idempotent duplicate behavior, and an
    unchanged source fingerprint.
*/

use Mnb\PHPExcel\Large\LargeImportManifest;

$manifest = new LargeImportManifest(__DIR__ . '/storage/import.json');
$manifest->start([
    'source_path' => $sourcePath,
    'table' => 'orders',
    'status' => 'running',
]);

$manifest->update([
    'chunks_completed' => 4,
    'last_row_number' => 4_001,
]);