PHPackages                             mahavirvataliya/excelheader - 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. mahavirvataliya/excelheader

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

mahavirvataliya/excelheader
===========================

Get ExcelHeader in Json Format By file path and Row number For First Sheet of file

1.0.1(8y ago)011LGPL-2.1-or-laterPHPPHP ^5.6|^7.0

Since Mar 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mahavirvataliya/excelheader)[ Packagist](https://packagist.org/packages/mahavirvataliya/excelheader)[ Docs](https://github.com/mahavirvataliya)[ RSS](/packages/mahavirvataliya-excelheader/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (8)Versions (3)Used By (0)

excelheader
===========

[](#excelheader)

For getting ExcelHeader# mahavirvataliya/excelheader Welcome to the excelheader wiki! If U want to Use This Package in your Project Then Use

`composer require mahavirvataliya/excelheader`

---

There are Two methods

`getExcelHeader($filepath,$rowno=1)`

> It will return json object of header of first sheet given as file path and if you give row no of header then it will return that row

`getAllSheetExcelHeader($filepath,$rowno=1)`

> get all headers means get header from all sheet given by row number as same to all mean return that row as json object

I Have Used  as read excel files please go for it if you want to develop go for it.

Add at Import Section

`use mahavirvataliya\ExcelHeader\ExcelHeader;`

use it where you want to

For Example For Uploading Excel file And getting headers or any row we use like this where xls is name parameter in file upload

```
public function upload(Request $request)
{
    $request->xls;
    if($request->hasFile('xls')) {

        $file = $request->file('xls') ;

        $fileName = $file->getClientOriginalName() ;
        $destinationPath = public_path() ;
        $file->move($destinationPath,$fileName);

        $rownno = $request->rowno==null?1:$request->rowno;
        $rows =  ExcelHeader::getExcelHeader(public_path().'/'.$fileName,$rownno);
        return view('excelfile',compact('rows'));
    }
    else
    {
        $rows=[];
        return view('excelfile',compact('rows'));
    }
}

```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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 ~0 days

Total

2

Last Release

3030d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10413703?v=4)[Mahavir Vataliya](/maintainers/mahavirvataliya)[@mahavirvataliya](https://github.com/mahavirvataliya)

---

Top Contributors

[![mahavirvataliya](https://avatars.githubusercontent.com/u/10413703?v=4)](https://github.com/mahavirvataliya "mahavirvataliya (12 commits)")

---

Tags

exceljsonlaravelphpsheetphpexcelxlsxlsxOpenXMLspreadsheetodsgnumeric

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/mahavirvataliya-excelheader/health.svg)

```
[![Health](https://phpackages.com/badges/mahavirvataliya-excelheader/health.svg)](https://phpackages.com/packages/mahavirvataliya-excelheader)
```

###  Alternatives

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k309.6M1.5k](/packages/phpoffice-phpspreadsheet)

PHPackages © 2026

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