PHPackages                             mifumi323/table-of-contents - 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. mifumi323/table-of-contents

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

mifumi323/table-of-contents
===========================

A library to handle table of contents.

1.0.1(6mo ago)05Apache-2.0PHPPHP &gt;=8.3CI passing

Since Oct 15Pushed 6mo agoCompare

[ Source](https://github.com/mifumi323/TableOfContents)[ Packagist](https://packagist.org/packages/mifumi323/table-of-contents)[ RSS](/packages/mifumi323-table-of-contents/feed)WikiDiscussions main Synced 1mo ago

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

TableOfContents
===============

[](#tableofcontents)

*日本語のREADMEは[README.ja.md](./README.ja.md)をご覧ください。*This library handles table of contents generation. It displays headings in the format `Heading` as a list. If multiple types of headings are used, a hierarchy is formed according to the heading levels.

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

[](#installation)

```
composer require mifumi323/table-of-contents

```

Usage
-----

[](#usage)

After installing with Composer, load the autoloader and use the library as follows:

Example:

```
require_once 'vendor/autoload.php';

use Mifumi323\TableOfContents;

$html =
