Choose a Reader Journey
Follow a focused sequence for your first workbook, a user upload, a large XLSX file, or an Excel-to-database import.
Updated
What you will learn
- Choose the shortest documentation path for the job in front of you.
- Move from a successful first read to production validation and error handling.
- Avoid mixing small-file, upload, large-file, and database-import concerns too early.
Choose the journey that matches your job#
Install the package, open a sample workbook, select a worksheet, map headers, and print records.
- Install
- Open
- Select sheet
- Read rows
Validate the upload, store it privately, inspect the workbook, verify headers, and return safe errors.
- Validate
- Store
- Inspect
- Process
Choose projection and limits, stream rows, process chunks, report progress, and control memory.
- Plan
- Project
- Stream
- Measure
Confirm headers, map fields, validate rows, run a dry preview, and insert transactionally with PDO.
- Map
- Validate
- Preview
- Import
Recommended order inside every journey#
- Start with a known fixture
Use a small downloadable workbook before debugging a customer file. This confirms installation, autoloading, and basic reader behavior.
- Inspect before selecting
Read workbook metadata and worksheet names before assuming a sheet, header row, or row count.
- Configure before consuming
Set the header row, empty-row policy, ranges, limits, and column projection before calling a terminal method.
- Choose a terminal method intentionally
Use
rows()for streaming,toArray()for small collected results, and structured output when you need source and skipped-row counts. - Finish with a safe boundary
Catch
MnbExcelException, log structured debug context, and return a short public message.
Use the sample workbooks while learning#
The sample library gives every journey a predictable workbook with known sheets, headers, rows, formulas, and intentional validation failures.