PHPackages                             entidi/silverstripe-autotoc - 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. entidi/silverstripe-autotoc

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

entidi/silverstripe-autotoc
===========================

Dynamically generate the table of contents from $Content

2.0.1(8y ago)73.3k3BSD-2-ClausePHPCI failing

Since Dec 23Pushed 8y ago2 watchersCompare

[ Source](https://github.com/ntd/silverstripe-autotoc)[ Packagist](https://packagist.org/packages/entidi/silverstripe-autotoc)[ Docs](http://silverstripe.entidi.com/)[ RSS](/packages/entidi-silverstripe-autotoc/feed)WikiDiscussions dev Synced 2mo ago

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

silverstripe-autotoc
====================

[](#silverstripe-autotoc)

[![License](https://camo.githubusercontent.com/6ca89d140031c2080d23caae5d0da820b40e633cb6fd6b1bf13d98caeae0ac7e/68747470733a2f2f706f7365722e707567782e6f72672f656e746964692f73696c7665727374726970652d6175746f746f632f6c6963656e7365)](https://packagist.org/packages/entidi/silverstripe-autotoc)[![Build Status](https://camo.githubusercontent.com/02a13f42f7ef9f52bcdb8056e8df01ae9c4aa62c12ee15d07f2ce69fa011f06b/68747470733a2f2f7472617669732d63692e6f72672f6e74642f73696c7665727374726970652d6175746f746f632e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ntd/silverstripe-autotoc)[![Code Quality](https://camo.githubusercontent.com/80a59eacfd0a22c0ed6df22f04bec83eea1254f9de7442f20d53b8e254bee179/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e74642f73696c7665727374726970652d6175746f746f632f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ntd/silverstripe-autotoc/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/2fb74242ac09f7b13550de238f6bd8fe3bc0fb44dda19421c5ad94292ad6a1ba/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e74642f73696c7665727374726970652d6175746f746f632f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ntd/silverstripe-autotoc/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/d54b41721ffb82af2931670366953432e989503715180cd8130732648dbfbf4c/68747470733a2f2f706f7365722e707567782e6f72672f656e746964692f73696c7665727374726970652d6175746f746f632f762f737461626c65)](https://packagist.org/packages/entidi/silverstripe-autotoc)

Automatically generate the table of contents from the *Content* of a page or, more generally, from any HTML field.

This module can be used without the CMS.

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

[](#installation)

```
composer require entidi/silverstripe-autotoc

```

Manual installation is probably possible but not really tested.

Testing
-------

[](#testing)

Basically it boils down to the following commands:

```
composer update
vendor/bin/phpunit

```

Other documentation
-------------------

[](#other-documentation)

- [Usage](docs/en/usage.md)
- [Autotoc format](docs/en/format.md)
- [Contributing](CONTRIBUTING.md)
- [Code of Conduct](https://docs.silverstripe.org/en/contributing/code_of_conduct)
- [BSD license](LICENSE.md)
- [ChangeLog](CHANGELOG.md)
- [Support](docs/en/support.md)

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 98.1% 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 ~183 days

Recently: every ~146 days

Total

9

Last Release

3054d ago

Major Versions

1.2.0 → 2.0.02017-12-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/664f545546593aba0414ee3f558665eacbf4f57681276d194e79e084dbcf5fbb?d=identicon)[ntd](/maintainers/ntd)

---

Top Contributors

[![ntd](https://avatars.githubusercontent.com/u/160618?v=4)](https://github.com/ntd "ntd (104 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (2 commits)")

---

Tags

modulesilverstripesilverstripe-modulesilverstripeindexcontentsTOCtable-of-contentsautotoc

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/entidi-silverstripe-autotoc/health.svg)

```
[![Health](https://phpackages.com/badges/entidi-silverstripe-autotoc/health.svg)](https://phpackages.com/packages/entidi-silverstripe-autotoc)
```

###  Alternatives

[caseyamcl/toc

Simple Table-of-Contents Generator for PHP. Generates TOCs based off H1...H6 tags

92344.9k5](/packages/caseyamcl-toc)

PHPackages © 2026

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