PHPackages                             anhu/thunder - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. anhu/thunder

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

anhu/thunder
============

Simple debug helper

010PHP

Since Mar 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/pickaboo/cthunder)[ Packagist](https://packagist.org/packages/anhu/thunder)[ RSS](/packages/anhu-thunder/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Thunder - a simple bug hunt helper
==================================

[](#thunder---a-simple-bug-hunt-helper)

Thunder is a simple, light weight, debug helper for the PHP framework [Anax](https://github.com/mosbth/Anax-MVC). By setting a marker in a class or a function - a frame will be generated that can be viewed by adding the View to you page.

**The marker will provide information about**

- Text (your own message)
- Selected variable (optional)
- Name of current Class
- Name of current Function
- Filepath
- Time
- Time passed since last mark

See below for Usage and more info.

By Andreas Hultman,

License
-------

[](#license)

This software is free software and carries a MIT license.

Use of external libraries
-------------------------

[](#use-of-external-libraries)

Thunder uses [Bootstrap](http://getbootstrap.com "Bootstrap") and [Fontawesome](http://fortawesome.github.io/Font-Awesome/ "Fontawesome"). These are included in the view template using the CDN support from [maxCDN](www.maxcdn.com). So make sure that you are online when using Thunder.

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

[](#installation)

You can either clone it from github or use Composer to install with [Packagist](https://packagist.org/packages/anhu/thunder "Thunder @ Packagist"). For installation with Composer - require the package in your composer.json using:

```
"anhu/thunder": "dev-master"

```

**add to project**

In Anax the easiest way to include Thunder is to add it do $di in the froncontroller.

```
$di->setShared('thunder', function() {
$thunder = new \Anhu\Thunder\CThunder();
return $thunder;
});

```

**output result to a view**

A template view are included in the package (thunder.tpl.php). In Anax framework just simply move it to your view folder and add in frontcontroller.

```
$app->router->add('thunder', function() use ($app) {
$app->theme->setVariable('title', "Thunder test");
$app->views->add('packTest/thunder', [
'content' => $app->thunder->getMarkers(), ]);
});

```

Usage
-----

[](#usage)

When thunder is included you can put a mark anywhere in your code. When the mark runs - information is saved to the session and will be available for output in a view. There are several different ways you can set a mark.

Examples below shows how mark is set after thunder are included in $di - in the Anax framework. If included in another way make sure to adjust path to setMarker.

**the marker**

The mark is set by calling the setMarker function and passing a message and an optional parameter.

`$this->di->thunder->setMarker("This is my own message", $Optional);`

Its possible to pass values in the first parameter aswell and use Html.

`$this->di->thunder->setMarker("Value of $x -> Value of $z", $testVar);`

knock your self out ...

History
-------

[](#history)

8/29/2014 Ver 0.1 - First attempt

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ac03c68ee15ecd6abd1ada50d872abcc44476a31201b88ffc930c43ecdeea18?d=identicon)[pickaboo](/maintainers/pickaboo)

---

Top Contributors

[![pickaboo](https://avatars.githubusercontent.com/u/5070945?v=4)](https://github.com/pickaboo "pickaboo (3 commits)")

### Embed Badge

![Health badge](/badges/anhu-thunder/health.svg)

```
[![Health](https://phpackages.com/badges/anhu-thunder/health.svg)](https://phpackages.com/packages/anhu-thunder)
```

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M918](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-debugbar)[spatie/ignition

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)[jokkedk/webgrind

Webgrind is a Xdebug profiling web frontend in PHP5. It implements a subset of the features of kcachegrind and installs in seconds and works on all platforms. For quick'n'dirty optimizations it does the job.

3.3k193.0k](/packages/jokkedk-webgrind)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)

PHPackages © 2026

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