Download the PHP package easy-excel/polyfill without Composer

On this page you can find all versions of the php package easy-excel/polyfill. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package polyfill

easy-excel/polyfill

PhpSpreadsheet-compatible PHP API backed by the easy-excel FrankenPHP extension — spreadsheet heavy lifting (XML, ZIP, parsing, formulas) runs in compiled Go via excelize, while your code keeps using the PhpOffice\PhpSpreadsheet\* classes it already knows.

This package is the PHP half of xiidea/easy-excel (the Go extension, build pipeline, benchmarks and design docs live there). Versions are tagged in lockstep: vX.Y.Z here matches vX.Y.Z of the extension and the ghcr.io/xiidea/frankenphp8.5-easy-excel:X.Y.Z image.

Why

Measured on the reference workload (write N rows × 10 mixed columns, PHP 8.5):

Library 100k rows 1M rows Peak PHP memory
PhpSpreadsheet 5.8 14.74s 665MB at 100k
OpenSpout 4.x 3.64s 36.74s 4MB
fast-excel-writer 6.x 2.67s 28.16s 4MB
easy-excel 0.82s 7.85s 4MB

PhpSpreadsheet ergonomics at OpenSpout-class constant memory, several times faster than both. Styled-report numbers and the full methodology are in the main repository.

Requirements

Install

The published image also ships this package at /opt/easy-excel/php, usable as a path repository if you prefer pinning to the image:

Usage

Existing PhpSpreadsheet code works unchanged — the bootstrap lazily aliases PhpOffice\PhpSpreadsheet\* to the native-backed EasyExcel\Compat\* classes:

Reading works the same way (IOFactory::load, toArray, rangeToArray, getCalculatedValue — formulas are evaluated by excelize's engine, 466/529 PhpSpreadsheet functions, coverage table).

You can also use the EasyExcel\Compat\* classes directly, or the flat EasyExcel\Native ABI wrapper for maximum throughput. The raw extension functions work without this package at all — reference: NATIVE.md.

What's covered

The precise matrix and every documented divergence: COMPAT.md.

Configuration (environment)

Env var Default Meaning
EASY_EXCEL_MAX_CONCURRENT max(2, NumCPU) heavy ops (open/save/scan) in flight
EASY_EXCEL_ACQUIRE_TIMEOUT_MS 30000 wait before Overloaded is raised
EASY_EXCEL_MEMORY_BUDGET_MB 512 live-workbook memory circuit breaker
EASY_EXCEL_ALLOWED_PATHS unset (any local path) colon-separated base dirs for load/save
EASY_EXCEL_FORCE_ALIAS unset 1 forces the aliases even when phpspreadsheet is installed (used by the test suite)

Tests

The end-to-end suite (real extension, Docker) runs in the main repository's CI.

License

MIT


All versions of polyfill with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package easy-excel/polyfill contains the following files

Loading the files please wait ...