PHPackages                             miranj/craft-sheets-to-tables - 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. [Templating &amp; Views](/categories/templating)
4. /
5. miranj/craft-sheets-to-tables

ActiveCraft-plugin[Templating &amp; Views](/categories/templating)

miranj/craft-sheets-to-tables
=============================

Adds a Twig function to convert Spreadsheets into HTML tables.

1.2.0(2y ago)91.8k1[1 issues](https://github.com/miranj/craft-sheets-to-tables/issues)MITPHPPHP ^7.2.5 || ^8.0

Since Nov 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/miranj/craft-sheets-to-tables)[ Packagist](https://packagist.org/packages/miranj/craft-sheets-to-tables)[ RSS](/packages/miranj-craft-sheets-to-tables/feed)WikiDiscussions dev Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (4)Used By (0)

[![Sheets to Tables icon](./src/icon.svg)](./src/icon.svg)

Sheets to Tables
================

[](#sheets-to-tables)

This [Craft CMS](https://craftcms.com/) plugin adds a [Twig](http://twig.sensiolabs.org/) function to convert Spreadsheets into HTML tables.

Contents
--------

[](#contents)

- [Usage](#usage)
- [Installation](#installation)
- [Requirements](#requirements)
- [Changelog](./CHANGELOG.md)
- [License](./LICENSE.md)

Usage
-----

[](#usage)

To convert a spreadsheet file into an HTML ``, pass an [craft\\elements\\Asset](https://docs.craftcms.com/api/v3/craft-elements-asset.html) object as an argument to the `sheetstotables( asset )` Twig function.

```
{% set spreadsheet = craft.assets.kind('excel').one() %}

{{ sheetstotables(spreadsheet) }}
```

If the spreadsheet file contains multiple sheets, only the contents of the first sheet will be rendered as a table.

### Supported file formats

[](#supported-file-formats)

- CSV
- Excel (.xlsx, .xls)
- Open Document Format (.ods)
- [Other formats supported by PhpSpreadsheet](https://phpspreadsheet.readthedocs.io/en/develop/)

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

[](#installation)

You can install this plugin from the [Plugin Store](https://plugins.craftcms.com/sheets-to-tables) or with Composer.

#### From the Plugin Store

[](#from-the-plugin-store)

Go to the Plugin Store in your project’s Control Panel and search for “Sheets to Tables”. Then click on the “Install” button in its modal window.

#### Using Composer

[](#using-composer)

Open your terminal and run the following commands:

```
# go to the project directory
cd /path/to/project

# tell composer to use the plugin
composer require miranj/craft-sheets-to-tables

# tell Craft to install the plugin
./craft plugin/install sheets-to-tables

```

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

[](#requirements)

This plugin requires Craft CMS 3, 4, or 5.

---

Brought to you by [Miranj](https://miranj.in/)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity68

Established project with proven stability

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

Total

3

Last Release

758d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1098673?v=4)[Miranj](/maintainers/miranj)[@miranj](https://github.com/miranj)

![](https://avatars.githubusercontent.com/u/663677?v=4)[Prateek Rungta](/maintainers/rungta)[@rungta](https://github.com/rungta)

![](https://avatars.githubusercontent.com/u/663682?v=4)[Souvik Das Gupta](/maintainers/souvikdg)[@souvikdg](https://github.com/souvikdg)

---

Top Contributors

[![rungta](https://avatars.githubusercontent.com/u/663677?v=4)](https://github.com/rungta "rungta (24 commits)")

---

Tags

craft-plugincraft3craftcmsspreadsheettwigtwig-filterexcelcsvspreadsheettableCraftcraftcms

### Embed Badge

![Health badge](/badges/miranj-craft-sheets-to-tables/health.svg)

```
[![Health](https://phpackages.com/badges/miranj-craft-sheets-to-tables/health.svg)](https://phpackages.com/packages/miranj-craft-sheets-to-tables)
```

###  Alternatives

[lewisjenkins/craft-dynamic-fields

Populate Craft fields with dynamic data using the power of Twig.

14667.0k](/packages/lewisjenkins-craft-dynamic-fields)[mmikkel/retcon

Powerful Twig filters for mutating and querying HTML

79183.1k11](/packages/mmikkel-retcon)[nystudio107/craft-cookies

A simple plugin for setting and getting cookies from within Craft CMS templates.

37490.1k6](/packages/nystudio107-craft-cookies)[nystudio107/craft-minify

A simple plugin that allows you to minify blocks of HTML, CSS, and JS inline in Craft CMS templates.

37461.2k29](/packages/nystudio107-craft-minify)[nystudio107/craft-autocomplete

Provides Twig template IDE autocomplete of Craft CMS &amp; plugin variables

44204.4k13](/packages/nystudio107-craft-autocomplete)[jalendport/craft-preparse

A fieldtype that parses Twig when an element is saved and saves the result as plain text.

1086.4k](/packages/jalendport-craft-preparse)

PHPackages © 2026

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