Close Menu
CinemaMix360

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Are you embracing low

    September 22, 2026

    The Problem in Post-Production Isn’t a Lack of Tools. It’s Too Many.

    September 22, 2026

    72nd National Film Awards full winners list as Mammootty, Kartik, Yami honoured

    September 22, 2026
    Facebook X (Twitter) Instagram
    CinemaMix360
    Facebook X (Twitter)
    • Home
    • Movies
    • TV
    • Film School
    • Festivals
    • Indie
    • Trailers
    • Videos
    • Careers
    • AI & Tech
    • More
      • Cinematography
      • Directing & Producing
      • Editing & Post Production
      • Screenwriting
      • Sound & Music
    CinemaMix360
    Home»TV»Fast Excel 5.x Adds Streaming Imports and Safer Exports
    TV

    Fast Excel 5.x Adds Streaming Imports and Safer Exports

    By September 22, 2026No Comments4 Mins Read
    Facebook Twitter Pinterest LinkedIn Reddit WhatsApp Email
    Share
    Facebook Twitter Pinterest Reddit WhatsApp Email

    Fast Excel has changed substantially since Laravel News covered the package in 2020. That article covered v2.2-era collection exports, browser downloads, and multi-sheet workbooks. Fast Excel 5 now includes lazy imports, controls for splitting spreadsheet work across jobs, sheet and column selection, and safer handling of user-controlled export values.

    The recent releases make Fast Excel more useful for large operational imports, not only simple report downloads. The package still uses OpenSpout rather than trying to expose every feature in the Excel file format, which keeps it focused on reading and writing rows with low memory use.

    • importLazy() reads rows through a LazyCollection
    • headerRow(), startRow(), and limitRows() support chunked imports
    • sheet() and onlyColumns() select the data an import needs
    • escapeFormulas() writes user-controlled formula-like values as text

    Lazy imports for large files

    import() returns a collection containing every imported row. For a large upload, that can use more memory than the PHP process has available. importLazy() yields rows through a LazyCollection, so an application can batch the database work without retaining the full file:

    useAppModelsContact;
    useIlluminateSupportLazyCollection;
    useRap2hpoutreFastExcelFastExcel;
     
    (newFastExcel)->importLazy('contacts.xlsx')
    ->chunk(1_000)
    ->each(function(LazyCollection$contacts) {
    Contact::insert($contacts->all());
    });

    Fast Excel 5.12 introduced importLazy() alongside streaming export changes. The package’s own benchmark compares a generator export with a materialised collection, and the repository includes the benchmark script. For an import that arrives as CSV, the same approach can replace some of the manual parsing used for a large CSV upload.

    Chunked imports with stable headings

    The newer import controls help when one queued job should process a portion of a spreadsheet. headerRow() reads keys from the actual heading row, while startRow() selects where the current chunk begins and limitRows() caps its size:

    useRap2hpoutreFastExcelFastExcel;
     
    $rows=(newFastExcel)
    ->headerRow(1)
    ->startRow(2+($page*1_000))
    ->limitRows(1_000)
    ->import('orders.xlsx');

    Before Fast Excel 5.17, startRow() also treated the selected row as the headings. A later chunk could therefore use a data row as its keys. headerRow() separates those positions and leaves the old startRow() behaviour unchanged unless you opt in. #418 added the method.

    Selecting sheets and columns

    The package can select a sheet by name and keep only the columns an import needs:

    useRap2hpoutreFastExcelFastExcel;
     
    $orders=(newFastExcel)
    ->sheet('Orders')
    ->onlyColumns(['A','B','H'])
    ->import('customer-export.xlsx');

    onlyColumns() accepts column letters or one-based positions. It avoids returning empty fields from sheets where formatting was applied far beyond the real data. limitColumns() is available when an import needs every column up to a given position instead. These options arrived in Fast Excel 5.16, which also added the option to pass an OpenSpout cell instance as an export value. #419

    Escaping spreadsheet formulas

    Spreadsheet applications can treat values starting with =, +, -, or @ as formulas. When those values come from an uploaded CSV or a database field controlled by users, a report export can turn plain text into a formula when somebody opens it.

    Call escapeFormulas() before exporting to write those values as text:

    useRap2hpoutreFastExcelFastExcel;
     
    (newFastExcel($rows))
    ->escapeFormulas()
    ->export('orders.xlsx');

    Fast Excel 5.17 added the method in #411.

    Compatibility

    Fast Excel 5 requires PHP 8.0 or later and Laravel 6 or later. The current release supports Laravel 6 through 13 and uses OpenSpout 4. Applications still on the Laravel 5 or PHP 7 baseline supported by Fast Excel 2 need to plan the dependency upgrade separately.

    The major-version history includes a move from box/spout to openspout/openspout, plus a PHP 8 requirement in Fast Excel 5. Projects that use an earlier Fast Excel release should check those dependency changes before updating.

    Installation

    Install Fast Excel with Composer:

    composerrequirerap2hpoutre/fast-excel

    References

    Staff Writer at Laravel News and Full stack web developer.

    X

    XThreads
    Threads
    Instagram
    Instagram
    Github
    Github
    LinkedIn
    LinkedIn

    Filed inLaravel PackagesLaravelPackagesExcel

    masteringlaravel logo

    Get expert guidance in a few days with a Laravel code review

    Adds Excel Fast Imports Streaming
    Share. Facebook Twitter Pinterest LinkedIn WhatsApp Reddit Email
    Previous ArticleResident Evil First Reviews: Not Just the Best Resident Evil Movie, but One of the Best Video Game Movies Ever
    Next Article Official US Trailer for ‘La Gradiva’ – French Students Traveling in Italy

    Related Posts

    Streaming will never be the same after this

    September 22, 2026

    ‘Daredevil: Born Again’ sets final season on Disney+

    September 22, 2026

    Disney+ Allows Ads Even on ‘Ad

    September 21, 2026

    Piracy threatens Pakistan’s streaming boom as platforms spend big on sports rights

    September 21, 2026

    FC Porto vs Benfica: Where to watch, live stream, TV channel and kick-off time

    September 20, 2026

    Canon Announces EOS R8 Mark II: Adds In-Body Stabilization, Keeps 24.2MP Sensor

    September 20, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    Guild Wars 2 Art Shows Upcoming Projects

    January 12, 2021

    Scary Movie 6: Release Date, Plot, Cast & Preview

    January 12, 2021

    Where is Pearl in the Mist Filmed?

    January 12, 2021

    How Conspiracy Inspired ‘Scary of Sixty-First’

    January 12, 2021
    Top Reviews

    Are you embracing low

    By

    The Problem in Post-Production Isn’t a Lack of Tools. It’s Too Many.

    By

    72nd National Film Awards full winners list as Mammootty, Kartik, Yami honoured

    By
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    About Us
    About Us

    CinemaMix360 is your trusted destination for the latest movie news, TV updates, official trailers, and filmmaking resources. We bring together entertainment industry coverage and educational content to inspire film lovers, creators, and aspiring filmmakers around the world.

    Our Picks

    AI Tools for Film Production: 15 Best Picks

    September 9, 2026

    Young Cinema-Goer Picks Up the Tab for Mum in National Cinema Weekend Campaign

    September 1, 2026

    Watching Wonder Woman 1984 with an HBO Max Free Trial?

    January 13, 2021

    Subscribe to Updates

    Stay tuned for more movie news, TV updates, trailers, and filmmaking insights.

    Facebook X (Twitter) Instagram Pinterest
    • About Us
    • Get In Touch
    • Disclaimer
    • Privacy Policy
    • Terms & Conditions
    © 2026 CinemaMix360. All Rights Reserved.

    Type above and press Enter to search. Press Esc to cancel.