Skip to content

Commit

Permalink
- update readme.MD
Browse files Browse the repository at this point in the history
  • Loading branch information
lutdev committed May 5, 2017
1 parent ccfb908 commit 119448c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@ use Lutdev\TOC\TableContents
or you can download package and include it via ```require```
### Usage
```php
$tableContents = new TableContents();
```
```php
//return string table contents
TableContents::tableContents($text);
$tableContents->tableContents($text);
```

Table of contents have next structure:
Expand Down Expand Up @@ -93,7 +96,7 @@ Table of contents have next structure:

```php
//Add ID attribute to the headers. Need for anchors.
TableContents::headerLinks($text)
$tableContents->headerLinks($text)
```

## Feedback
Expand Down

0 comments on commit 119448c

Please sign in to comment.