PHPackages                             technicalkumargaurav/file-reader - 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. technicalkumargaurav/file-reader

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

technicalkumargaurav/file-reader
================================

A PHP application to read and process Excel, CSV, PDF files.

v1.4.0(1mo ago)24MITPHP

Since Jun 16Pushed 1mo agoCompare

[ Source](https://github.com/technicalKumarGaurav/file-reader)[ Packagist](https://packagist.org/packages/technicalkumargaurav/file-reader)[ Docs](https://github.com/technicalKumarGaurav/file-reader)[ RSS](/packages/technicalkumargaurav-file-reader/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (1)Dependencies (6)Versions (8)Used By (0)

Features
--------

[](#features)

- Read CSV files
- Read Excel files (`.xls`, `.xlsx`)
- Read PDF files
- Export data to CSV
- Export data to Excel
- Unified response format
- Preview extracted data
- Generate HTML tables
- Toolbar support
- Export links support
- Print support
- Bootstrap table support
- Responsive table support
- Framework independent
- PSR-4 autoloading
- Compatible with Core PHP, Laravel, and CodeIgniter

---

Toolbar Support
---------------

[](#toolbar-support)

Generate a toolbar above the table.

```
echo $reader->toHtml(
    'sample.xlsx',
    [
        'toolbar' => true
    ]
);
```

---

Export Links
------------

[](#export-links)

Provide your own application routes for downloads.

```
echo $reader->toHtml(
    'sample.xlsx',
    [
        'toolbar'   => true,
        'csv_url'   => '/export/csv',
        'excel_url' => '/export/excel'
    ]
);
```

This keeps the package framework independent and allows integration with:

- Core PHP
- Laravel
- CodeIgniter

---

Print Button
------------

[](#print-button)

Enable a print button in the toolbar.

```
echo $reader->toHtml(
    'sample.xlsx',
    [
        'toolbar' => true,
        'print'   => true
    ]
);
```

---

Open Export Links In New Tab
----------------------------

[](#open-export-links-in-new-tab)

```
echo $reader->toHtml(
    'sample.xlsx',
    [
        'toolbar'   => true,
        'csv_url'   => '/export/csv',
        'excel_url' => '/export/excel',
        'new_tab'   => true
    ]
);
```

---

Show / Hide Toolbar Buttons
---------------------------

[](#show--hide-toolbar-buttons)

Show only the buttons you need.

```
echo $reader->toHtml(
    'sample.xlsx',
    [
        'toolbar'    => true,
        'csv_url'    => '/export/csv',
        'excel_url'  => '/export/excel',

        'show_csv'   => true,
        'show_excel' => false,
        'show_print' => true
    ]
);
```

---

Project Structure
-----------------

[](#project-structure)

```
src/
├── Drivers/
│   ├── CsvReader.php
│   ├── ExcelReader.php
│   └── PdfReader.php
│
├── Exporters/
│   ├── CsvExporter.php
│   └── ExcelExporter.php
│
├── Exceptions/
│   └── UnsupportedFileException.php
│
├── Helpers/
│   ├── ResponseFormatter.php
│   ├── PreviewGenerator.php
│   ├── HtmlGenerator.php
│   └── ToolbarGenerator.php
│
└── Reader.php

```

---

Roadmap
-------

[](#roadmap)

### v1.0.0

[](#v100)

- CSV Reader
- Excel Reader
- PDF Reader
- Unified Response Format

### v1.1.0

[](#v110)

- Improved PDF Metadata
- File Existence Validation
- Better Error Handling

### v1.2.0

[](#v120)

- Preview Data Support
- HTML Table Rendering
- Bootstrap Integration
- Responsive Tables
- Row Limiting

### v1.3.0

[](#v130)

- CSV Export Support
- Excel Export Support
- Skip First Column Option
- Export Validation

### v1.4.0

[](#v140)

- Toolbar Support
- CSV Download Links
- Excel Download Links
- Print Button
- New Tab Support
- Show / Hide Toolbar Buttons

### Future

[](#future)

- OCR Support for Scanned PDFs
- DOCX Reader
- Client-side Export
- DataTables Integration
- Advanced PDF Preview

```

```

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance91

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

7

Last Release

44d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/13e253ebcd831c8075e2236ce6982d6e60e588054cf0559e043ad67ca02c5fc1?d=identicon)[technicalKumarGaurav](/maintainers/technicalKumarGaurav)

---

Top Contributors

[![technicalKumarGaurav](https://avatars.githubusercontent.com/u/97426553?v=4)](https://github.com/technicalKumarGaurav "technicalKumarGaurav (1 commits)")

---

Tags

phppdfparserexcelcsvreader

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/technicalkumargaurav-file-reader/health.svg)

```
[![Health](https://phpackages.com/badges/technicalkumargaurav-file-reader/health.svg)](https://phpackages.com/packages/technicalkumargaurav-file-reader)
```

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k162.0M945](/packages/maatwebsite-excel)[shuchkin/simplexlsx

Parse and retrieve data from Excel XLSx files. MS Excel 2007 workbooks PHP reader.

1.8k4.3M35](/packages/shuchkin-simplexlsx)[avadim/fast-excel-reader

Lightweight and very fast XLSX Excel Spreadsheet and CSV Reader in PHP

106786.0k14](/packages/avadim-fast-excel-reader)[shuchkin/simplecsv

Parse and retrieve data from CSV files. Export data to CSV.

52102.7k1](/packages/shuchkin-simplecsv)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
