PHPackages                             phpsa/content-toc - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. phpsa/content-toc

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

phpsa/content-toc
=================

A Statamic 3 addon to generate TOC for content

1.0.0(5y ago)09MITPHP

Since Nov 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/phpsa/content-toc)[ Packagist](https://packagist.org/packages/phpsa/content-toc)[ RSS](/packages/phpsa-content-toc/feed)WikiDiscussions master Synced 2d ago

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

Statamic Content TOC Generator
==============================

[](#statamic-content-toc-generator)

[![Statami v3](https://camo.githubusercontent.com/88ad20c4a7a2ef5f6fdc11e82722a19551aa64eac853ef31b42177a76de652ff/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d332e302b2d464632363945)](https://camo.githubusercontent.com/88ad20c4a7a2ef5f6fdc11e82722a19551aa64eac853ef31b42177a76de652ff/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d332e302b2d464632363945)[![Packagist](https://camo.githubusercontent.com/104cafbf1b14eded36af633148c3ed68be70a509a6036b03dc5724799268de18/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70687073612f73746174616d69632d616e616c7974696373)](https://camo.githubusercontent.com/104cafbf1b14eded36af633148c3ed68be70a509a6036b03dc5724799268de18/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70687073612f73746174616d69632d616e616c7974696373)

This repository contains the code for these widgets. While the code is open-source, it's important to remember that you'll need to purchase a license before using this addon in production. Licenses cost $5 and can be purchased from the [Statamic Marketplace](https://statamic.com/addons/Phpsa/markdown-toc).

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

[](#installation)

Install via the Control Panel or via composer

```
composer require phpsa/content-toc
```

Quick Usage
-----------

[](#quick-usage)

in your template:

`{{content | toc:ids}}` to render your content with the TOC adding ids to the content

`{{content | toc}}` to render your page contents

Documentation
-------------

[](#documentation)

[View Documentation](http://cgs4k.nz/myprojects/statamic-content-toc).

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

###  Health Score

23

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

2110d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bbe4c97ef26aca9d6792775ea44a4c83215881b158f2d3894279c7b73bedda3c?d=identicon)[phpsa](/maintainers/phpsa)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/phpsa-content-toc/health.svg)

```
[![Health](https://phpackages.com/badges/phpsa-content-toc/health.svg)](https://phpackages.com/packages/phpsa-content-toc)
```

###  Alternatives

[statamic/seo-pro

71548.3k](/packages/statamic-seo-pro)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

137236.2k8](/packages/statamic-rad-pack-runway)[rias/statamic-redirect

29347.4k](/packages/rias-statamic-redirect)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3622.8k](/packages/duncanmcclean-statamic-cargo)[alt-design/alt-sitemap

Alt Sitemap addon, create a sitemap from Statamic entries

1224.7k](/packages/alt-design-alt-sitemap)[studio1902/statamic-peak-tools

11177.9k](/packages/studio1902-statamic-peak-tools)

PHPackages © 2026

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