Download the PHP package avadim/fast-excel-reader without Composer

On this page you can find all versions of the php package avadim/fast-excel-reader. 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?
avadim/fast-excel-reader
Rate from 1 - 5
Rated 5.00 based on 1 reviews

Informations about the package fast-excel-reader

GitHub Release Packagist Downloads GitHub License Static Badge

FastExcelReader

πŸ‡¬πŸ‡§ English Β· πŸ‡·πŸ‡Ί Русский

FastExcelReader is a part of the FastExcelPhp Project which consists of

Introduction

This library is designed to be lightweight, super-fast and requires minimal memory usage.

FastExcelReader can read Excel compatible spreadsheets in XLSX format (Office 2007+), legacy XLS format (Office 97-2003) and CSV-files. It only reads data, but it does it very quickly and with minimal memory usage.

Features

XLSX format support

XLS format support

CSV format support

Installation

Use composer to install FastExcelReader into your project:

Quick start

See more in the Getting Started guide.

Choosing an opening method

Since 4.5, use an explicit factory when the format or API level is known:

Method Returns Use
Excel::open($file, $options) AbstractBook Detect XLSX/XLS/CSV by content
Excel::openXlsx($file) Excel Require XLSX, without falling back to CSV
Excel::openXls($file) XlsBook Require legacy BIFF8 XLS
Excel::openCsvBook($file, $options) CsvBook CSV through the common book/sheet API
Excel::openCsvReader($file, $options) CsvReader Low-level CSV engine

CSV options accept an array, CsvOptions, or null. Explicit CSV factories accept an empty CSV; the generic open() rejects empty input. open() only supports forcing ['format' => 'csv']; use openXlsx() or openXls() to require those formats.

Preparing for 5.0: openCsv() still returns CsvReader in 4.x, but is planned to return CsvBook in 5.0. Replace low-level calls with openCsvReader() to retain methods such as getCsvLine() and fromRow(). Choose openCsvBook() for book/sheet code; getReader() on that book also provides the low-level engine.

isXlsx() checks a ZIP signature and isXls() an OLE2 signature; neither proves that an arbitrary container is a supported workbook. validate() checks required XLSX parts and XML well-formedness, not full OOXML schemas or formula correctness.

Format capabilities and resource limits

Capability XLSX XLS (BIFF8) CSV
Common book/sheet API and row generators Yes Yes Yes, one sheet
Styles and embedded images Yes Yes, format limitations apply No
Formula text / cached results Read, not calculated Read, supported formula subset Plain text
Cell hyperlinks / document properties Yes Not exposed by these APIs No
Input encoding XML encoding BIFF strings/codepage Auto or explicit CsvOptions

readRows() collects the result in memory; use nextRow() for large imports. Shared strings are loaded into memory for XLSX and XLS, and XLS also loads its global image store. Streaming rows therefore does not imply constant memory for the whole workbook. openString() and openStream() copy input to disk. Their successful temporary files live until process shutdown, including in long-running workers; destroying a book does not remove them immediately. A book-level close() is not available in 4.5.

Documentation

Guides

API Reference

Examples

You can find more examples in the /demo folder.

Changelog

See CHANGELOG.md for the list of changes.

Do you want to support FastExcelReader?

if you find this package useful you can give me a star on GitHub.

Or you can donate me :)


All versions of fast-excel-reader with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-zip Version *
ext-mbstring Version *
ext-ctype Version *
ext-xmlreader Version *
ext-dom Version *
avadim/fast-excel-helper Version ^1.4
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 avadim/fast-excel-reader contains the following files

Loading the files please wait ...