https://github.com/austinkregel/php-exception-probe
A package aimed to provide helpful parsing of PHP stacktraces.
https://github.com/austinkregel/php-exception-probe
exception parser php
Last synced: 11 months ago
JSON representation
A package aimed to provide helpful parsing of PHP stacktraces.
- Host: GitHub
- URL: https://github.com/austinkregel/php-exception-probe
- Owner: austinkregel
- License: mit
- Created: 2018-08-25T04:16:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-01T23:35:54.000Z (over 3 years ago)
- Last Synced: 2025-03-22T20:46:17.615Z (11 months ago)
- Topics: exception, parser, php
- Language: PHP
- Homepage:
- Size: 30.3 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# Very short description of the package
[](https://packagist.org/packages/kregel/exception-probe)
[](https://packagist.org/packages/kregel/exception-probe)
## Installation
You can install the package via composer:
```bash
composer require kregel/exception-probe
```
## Usage
``` php
$stacktrace = new Kregel\ExceptionProbe\Stacktrace();
echo $stacktrace->parse('ErrorException: The thing that was suppose to do stuff broke
#0 /usr/share/php/test/index.php(34): Kernel->run()
#1 /usr/share/php/test/Framework/file-thing.php(143): SomeClass->doTheThing()
#2 /usr/share/php/PHPUnit/Framework/TestCase.php(626): SeriesHelperTest->setUp()
#3 /usr/share/php/PHPUnit/Framework/TestResult.php(666): PHPUnit_Framework_TestCase->runBare()
#4 /usr/share/php/PHPUnit/Framework/TestCase.php(576): PHPUnit_Framework_TestResult->run(Object(SeriesHelperTest))
#5 /usr/share/php/PHPUnit/Framework/TestSuite.php(757): PHPUnit_Framework_TestCase->run(Object(PHPUnit_Framework_TestResult))
#6 /usr/share/php/PHPUnit/Framework/TestSuite.php(733): PHPUnit_Framework_TestSuite->runTest(Object(SeriesHelperTest), Object(PHPUnit_Framework_TestResult))
#7 /usr/share/php/PHPUnit/TextUI/TestRunner.php(305): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult), false, Array, Array, false)
#8 /usr/share/php/PHPUnit/TextUI/Command.php(188): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), Array)
#9 /usr/share/php/PHPUnit/TextUI/Command.php(129): PHPUnit_TextUI_Command->run(Array, true)
#10 /usr/bin/phpunit(53): PHPUnit_TextUI_Command::main()
#11 {main}"');
```
### Testing
``` bash
composer test
```
### Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
### Security
If you discover any security related issues, please email security@kbcomp.co instead of using the issue tracker.
## Credits
- [Austin Kregel](https://github.com/austinkregel)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.