Best Excel creation lib for PHP

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/PHP

Our great sponsors
  • Cloudways - Managed Cloud Hosting Platform
  • OPS - Build and Run Open Source Unikernels
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • Scout APM - Less time debugging, more time building
  • PHPExcel

    https://github.com/PHPOffice/PHPExcel is unmaintained / archived

  • php-export-data

    PHP class to export data in CSV, TSV, or Excel XML (aka SpreadsheeML) format to a file or directly to the browser

    https://github.com/elidickinson/php-export-data is unmaintained / archived too

  • Cloudways

    Managed Cloud Hosting Platform. Deploy PHP applications on Cloudways web hosting platform to get high uptime and optimized performance. Use the BFCM promo "BFCM2021" to get 40% FLAT discount for FOUR months straight.

  • PhpSpreadsheet

    A pure PHP library for reading and writing spreadsheet files

    I think https://github.com/PHPOffice/PhpSpreadsheet is what you're looking for. I've been using it for many years for an export generator, well maintained and working nicely.

  • Spout

    Read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

    We were testing PHP Spreadsheet and Spout (https://github.com/box/spout). We chose Spout because of its low memory footprint. It is using streams so it is much lighter than PHP Spreadsheet, although it is missing quite a bit of features that PHP Spreadsheet has.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts