Skip to content

Commit a4108d8

Browse files
committed
Documentation
1 parent e9eea33 commit a4108d8

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
[![version](https://img.shields.io/badge/version-1.0.1-green.svg)](https://github.com/steevanb/php-backtrace/tree/1.0.1)
1+
[![version](https://img.shields.io/badge/version-1.1.0-green.svg)](https://github.com/steevanb/php-backtrace/tree/1.1.0)
22
[![php](https://img.shields.io/badge/php->=5.4-blue.svg)](http://php.net)
3-
![Lines](https://img.shields.io/badge/code lines-380-green.svg)
3+
![Lines](https://img.shields.io/badge/code lines-680-green.svg)
44
![Total Downloads](https://poser.pugx.org/steevanb/php-backtrace/downloads)
5-
[![SensionLabsInsight](https://img.shields.io/badge/SensionLabsInsight-platinum-brightgreen.svg)](https://insight.sensiolabs.com/projects/2b6dd6a0-ef48-4b5b-ba13-e825e0841be3/analyses/4)
5+
[![SensionLabsInsight](https://img.shields.io/badge/SensionLabsInsight-platinum-brightgreen.svg)](https://insight.sensiolabs.com/projects/2b6dd6a0-ef48-4b5b-ba13-e825e0841be3/analyses/5)
66
[![Scrutinizer](https://scrutinizer-ci.com/g/steevanb/php-backtrace/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/steevanb/php-backtrace/)
77

88
php-backtrace
@@ -14,7 +14,7 @@ Installation
1414
------------
1515

1616
```bash
17-
composer require-dev steevanb/php-backtrace ^1.0
17+
composer require-dev steevanb/php-backtrace ^1.1
1818
```
1919

2020
Configuration
@@ -32,10 +32,14 @@ Usage
3232
-----
3333

3434
```php
35+
// get backtrace dump as array
36+
\DumpBacktrace::getBacktraces($offset = 0, $limit = null);
37+
// get backtrace dump as HTML
38+
\DumpBacktrace::getDump($offset = 0, $limit = null);
39+
// write getDump() HTML with echo
3540
\DumpBacktrace::dump($offset = 0, $limit = null);
41+
// write getDump() HTML with echo, and exit
42+
\DumpBacktrace::eDump($offset = 0, $limit = null)
3643
```
3744
![PHP Backtrace](backtrace.png)
3845

39-
```php
40-
\DumpBacktrace::getBacktraces($offset = 0, $limit = null);
41-
```

0 commit comments

Comments
 (0)