aVadim483 / fast-excel-writer

Lightweight and very fast XLSX Excel Spreadsheet Writer in PHP
MIT License
178 stars 31 forks source link

Add Row & Col ID getters to Sheet #67

Closed morgverd closed 4 months ago

morgverd commented 4 months ago

Hi, great package.

The Sheet uses currentRowIdx and currentColIdx to store the current position, however both of these are protected (fairly so). There is, however, no way to get these values currently so you have to maintain your own counter alongside if you want to keep track of what row you're on.

This simply adds two getter functions, getCurrentRowId and getCurrentColId.