PHPackages                             piyush/excel-importer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. piyush/excel-importer

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

piyush/excel-importer
=====================

A lightweight PHP package to import Excel files (.xlsx and .xls) with data type support

v1.0.1(5mo ago)00MITPHPPHP &gt;=7.2

Since Jan 16Pushed 5mo agoCompare

[ Source](https://github.com/piyushs3001/ExcelReader)[ Packagist](https://packagist.org/packages/piyush/excel-importer)[ Docs](https://github.com/piyushs3001/ExcelReader)[ RSS](/packages/piyush-excel-importer/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

Excel Importer
==============

[](#excel-importer)

A lightweight PHP package to import Excel files (.xlsx and .xls) with data type support.

[![PHP Version](https://camo.githubusercontent.com/cd59ba2b0fddd0cb8a2521a4879d8e1f669d27280c478976a54f08dc3bc59db1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344372e322d626c75652e737667)](https://php.net)[![License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)

Features
--------

[](#features)

- **Read .xlsx files** (Office Open XML format - Excel 2007+)
- **Read .xls files** (BIFF format - Excel 97-2003)
- **Data type detection**: strings, numbers, dates, booleans
- **Date conversion**: Automatic Excel date to PHP DateTime conversion
- **No external dependencies**: Pure PHP implementation
- **PHP 7.2+ compatible**
- **Memory efficient**: Reads files on demand
- **Simple API**: Easy to use fluent interface

Requirements
------------

[](#requirements)

- PHP &gt;= 7.2
- ext-zip (for .xlsx files)
- ext-xml or ext-simplexml (for XML parsing)

Installation
------------

[](#installation)

Install via Composer:

```
composer require piyush/excel-importer
```

Quick Start
-----------

[](#quick-start)

```
