PHPackages                             maymeow/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. maymeow/excel-importer

ActivePhp-pacakge[PDF &amp; Document Generation](/categories/documents)

maymeow/excel-importer
======================

A php package to transform XLSX filse to models.

v1.2.1(1y ago)21.3k[4 issues](https://github.com/MayMeow/excel-importer/issues)[1 PRs](https://github.com/MayMeow/excel-importer/pulls)MITPHPPHP 8.\*CI passing

Since Jun 15Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/MayMeow/excel-importer)[ Packagist](https://packagist.org/packages/maymeow/excel-importer)[ Docs](https://github.com/MayMeow/excel-importer)[ RSS](/packages/maymeow-excel-importer/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (6)Versions (22)Used By (0)

Excel importer
==============

[](#excel-importer)

[![ko-fi](https://camo.githubusercontent.com/201ef269611db7eb6b5d08e9f756ab8980df3014b64492770bdf13a6ed924641/68747470733a2f2f6b6f2d66692e636f6d2f696d672f676974687562627574746f6e5f736d2e737667)](https://ko-fi.com/D1D5DMOTA)

Simple and extendable library for loading data from Excel files (.xlsx) into objects.

This Library using `phpoffice/phpspreadsheet` to read from XLSX files. Look at their [Github](https://github.com/PHPOffice/PhpSpreadsheet)

Read files - commandline with example data (Deprecated)
-------------------------------------------------------

[](#read-files---commandline-with-example-data-deprecated)

From command line with example data

```
php application.php app:read-file -f ./path/to/file.xlsx
```

Via Source Code
---------------

[](#via-source-code)

Create new model which extending `MayMeow\ExcelImporter\Models\BaseModel`. To map column from excel to property use `\MayMeow\ExcelImporter\Attributes\Column` attribute.

```
