PHPackages                             lonnieezell/codeigniter-forensics - 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. lonnieezell/codeigniter-forensics

AbandonedArchivedCodeigniter-third-party[Debugging &amp; Profiling](/categories/debugging)

lonnieezell/codeigniter-forensics
=================================

A high-powered, customizable Profiler replacement for CodeIgniter.

v1.1(9y ago)19742.2k↓43%41[1 issues](https://github.com/lonnieezell/codeigniter-forensics/issues)[2 PRs](https://github.com/lonnieezell/codeigniter-forensics/pulls)1MITPHP

Since Oct 9Pushed 6y ago7 watchersCompare

[ Source](https://github.com/lonnieezell/codeigniter-forensics)[ Packagist](https://packagist.org/packages/lonnieezell/codeigniter-forensics)[ Docs](http://lonnieezell.github.io/codeigniter-forensics/)[ RSS](/packages/lonnieezell-codeigniter-forensics/feed)WikiDiscussions master Synced 1mo ago

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

Forensics for CodeIgniter
=========================

[](#forensics-for-codeigniter)

Forensics is a high-powered, completely customizable replacement for the CodeIgniter Profiler.

What's New?
-----------

[](#whats-new)

Forensics adds a few things to the stock Profiler that should make your life as a developer a bit easier. At least when it comes to debugging.

- The Profiler output is now completely skinnable. If you've read the comments in the Profiler class before, this is something that the EllisLab devs have said for a while it would be nice to do. Congrats. It's done.
- The output now also includes a list of all files that your CodeIgniter app includes, as well as their location (relative to your FCPATH).
- Output also has the ability to log items and track memory in your project via a new console class.
- Any variables sent to the view are shown in the bar.
- Forensics now provides a detailed look at queries run via [Illuminate Database](https://github.com/illuminate/database).

The default look, and some of the additional functionality, was heavily inspired by ParticleTree's [PHP Quick Profiler](http://particletree.com/features/php-quick-profiler/).

Installing
----------

[](#installing)

Forensics is intended to be used as a [Spark](http://getsparks.org). However, it is best installed using [Composer](http://getcomposer.org/).

Create a `composer.json` file in your application's root (alongside the application and spark folders). Add the following text in the new file:

```
{
    "require": {
        "lonnieezell/codeigniter-forensics": "dev-master"
    }
}

```

Thanks to the magic of `compwright/composer-installers` the files are transferred to your application's `third_party` folder. In your application, you will first need to load the newly installed package. This is done easily through the autoloader, but could also be done in your controller with an environment check for maximum optimization.

```
$autoload['packages'] = array(APPPATH.'third_party/codeigniter-forensics');

```

Then, just enable the profiler like normal.

```
$this->output->enable_profiler(true);

```

Forensics Logging
-----------------

[](#forensics-logging)

In addition to the normal information that CI's Profiler provides, you now have two new logging commands at your disposal that work with the Forensics Profiler:

### Console::log($data)

[](#consolelogdata)

This function accepts any data type and simply creates a pretty, readable output of the variable, using print\_r(). Very handy for logging where you are in the script execution, or outputting the contents of an array, or stdObject to your new 'console'.

### Console::log\_memory($variable, $name)

[](#consolelog_memoryvariable-name)

The log\_memory function has two uses.

1. When no parameters are passed in, it will record the current memory usage of your script. This is perfect for watching a loop and checking for memory leaks.
2. If you pass in the $variable and $name parameters, will output the amount of memory that variable is using to the console.

In order to use either of these functions, you must be sure to load the Console library before you use it.

### Illuminate Database Queries

[](#illuminate-database-queries)

In addition to CodeIgniter database queries, Forensics can display information about any queries run by [Illuminate Database](https://github.com/illuminate/database) models or the Eloqeunt query builder. **This feature is disabled by default.** To enable this feature, change the config setting for `eloquent` in `config/profiler.php`. If you're using Illuminate Database in your project, note that this feature requires Capsule\\Manager.

Other Tips
----------

[](#other-tips)

You can change the location of the profiler bar by changing the `$bar_location` variable at the top of the *profiler\_template* view to one of the following locations:

- top-right
- top-left
- bottom-left
- bottom-right
- top
- bottom

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

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

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3574d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/65f693f45781e767ed8557b776fd775309e7a262629892b99cf38462931e9b26?d=identicon)[lonnieezell](/maintainers/lonnieezell)

---

Top Contributors

[![lonnieezell](https://avatars.githubusercontent.com/u/51931?v=4)](https://github.com/lonnieezell "lonnieezell (33 commits)")[![arclyte](https://avatars.githubusercontent.com/u/492002?v=4)](https://github.com/arclyte "arclyte (12 commits)")[![mckaygerhard](https://avatars.githubusercontent.com/u/1571724?v=4)](https://github.com/mckaygerhard "mckaygerhard (4 commits)")[![Dianoga](https://avatars.githubusercontent.com/u/1618956?v=4)](https://github.com/Dianoga "Dianoga (1 commits)")[![brwnll](https://avatars.githubusercontent.com/u/445190?v=4)](https://github.com/brwnll "brwnll (1 commits)")[![od3n](https://avatars.githubusercontent.com/u/156899?v=4)](https://github.com/od3n "od3n (1 commits)")[![pocketarc](https://avatars.githubusercontent.com/u/5393?v=4)](https://github.com/pocketarc "pocketarc (1 commits)")[![vtual](https://avatars.githubusercontent.com/u/2259209?v=4)](https://github.com/vtual "vtual (1 commits)")

---

Tags

debugprofilercodeigniterspark

### Embed Badge

![Health badge](/badges/lonnieezell-codeigniter-forensics/health.svg)

```
[![Health](https://phpackages.com/badges/lonnieezell-codeigniter-forensics/health.svg)](https://phpackages.com/packages/lonnieezell-codeigniter-forensics)
```

###  Alternatives

[barryvdh/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k124.3M624](/packages/barryvdh-laravel-debugbar)[php-debugbar/php-debugbar

Debug bar in the browser for php application

4.4k21.3M40](/packages/php-debugbar-php-debugbar)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

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

😎 Tracy: the addictive tool to ease debugging PHP code for cool developers. Friendly design, logging, profiler, advanced features like debugging AJAX calls or CLI support. You will love it.

1.8k24.4M1.3k](/packages/tracy-tracy)[fruitcake/laravel-telescope-toolbar

Toolbar for Laravel Telescope based on Symfony Web Profiler

8041.6M3](/packages/fruitcake-laravel-telescope-toolbar)[recca0120/laravel-tracy

A Laravel Package to integrate Nette Tracy Debugger

388283.0k3](/packages/recca0120-laravel-tracy)

PHPackages © 2026

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