PHPackages                             inspector-apm/inspector-codeigniter - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. inspector-apm/inspector-codeigniter

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

inspector-apm/inspector-codeigniter
===================================

Code Execution Monitoring for CodeIgniter applications.

1.0.0(8mo ago)164131MITPHPPHP &gt;=7.4

Since Jul 7Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/inspector-apm/inspector-codeigniter)[ Packagist](https://packagist.org/packages/inspector-apm/inspector-codeigniter)[ RSS](/packages/inspector-apm-inspector-codeigniter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (34)Used By (0)

Inspector | Code Execution Monitoring tool
==========================================

[](#inspector--code-execution-monitoring-tool)

[![Latest Stable Version](https://camo.githubusercontent.com/3dfc93d6db89c365d9e58e123ee2fda612f2a847ffce0ceebf84581927fb196d/68747470733a2f2f706f7365722e707567782e6f72672f696e73706563746f722d61706d2f696e73706563746f722d636f646569676e697465722f762f737461626c65)](https://packagist.org/packages/inspector-apm/inspector-codeigniter)[![License](https://camo.githubusercontent.com/2af65f26e42f8f597f43f53128f6ed254a60428d74202de380e4a296c1f924d0/68747470733a2f2f706f7365722e707567782e6f72672f696e73706563746f722d61706d2f696e73706563746f722d636f646569676e697465722f6c6963656e7365)](//packagist.org/packages/inspector-apm/inspector-codeigniter)[![Contributor Covenant](https://camo.githubusercontent.com/4ae39ae593b602cf0ae07972b61c73728b77ec8e2cf40f579a2441948208036b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f6e7472696275746f72253230436f76656e616e742d322e312d3462616161612e737667)](CODE_OF_CONDUCT.md)

Connect CodeIgniter 4 applications to the Inspector monitoring dashboard.

Official maintainer
-------------------

[](#official-maintainer)

> This library was built in collaboration with [Prysis](http://www.prysis.co.za/) -

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

[](#installation)

Install the latest version using the composer command below:

```
composer require inspector-apm/inspector-codeigniter

```

Run the install command to publish the `Inspector.php` configuration file in your application `app/Config` directory:

```
php spark inspector:install

```

Configure the Ingestion Key
---------------------------

[](#configure-the-ingestion-key)

Add the environment variable below to your `.env` file in order to make your application able to send data to your dashboard. You can get a new Ingestion Key by creating a new app in your account:

```
#--------------------------------------------------------------------
# INSPECTOR
#--------------------------------------------------------------------

inspector.ingestionKey = '974yn8c34ync8xxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
```

HTTP Request Monitoring
-----------------------

[](#http-request-monitoring)

The package provides your application with the `inspector` filter that you can use to monitor incoming HTTP requests.

**We highly recommend** to add `inspector` to the global filters in your `app/Config/Filter.php` configuration class in order to monitor all HTTP requests:

```
class Filters extends BaseFilters
{

    /**
     * List of filter aliases that are always
     * applied before and after every request.
     *
     * @var array|array
     */
    public array $globals = [
        'before' => [
            ...,
            'inspector',
        ],
        'after' => [
           ...,
           'inspector',
        ],
    ];

}
```

> You can eventually turn off monitoring using the `ignoreRoutes` configuration property:

Verify And Deploy
-----------------

[](#verify-and-deploy)

Run the command below to check if your system is properly configured. If all checks are green you can deploy the update in your production environment.

```
php spark inspector:test

```

Helper
------

[](#helper)

**We highly recommend** adding the helper in the `Config/Autoload.php` configuration class to make it available globally into the application:

```
class Autoload extends AutoloadConfig
{
    /**
     * -------------------------------------------------------------------
     * Helpers
     * -------------------------------------------------------------------
     * Prototype:
     *   $helpers = [
     *       'form',
     *   ];
     *
     * @var list
     */
    public $helpers = ['inspector'];
}
```

The helper provides a shortcut to the inspector instance to monitor custom code blocks or manually report specific exceptions.

```
// Load the helper if you haven't added it to Autoload.php
helper('inspector');

// Monitor custom code blocks
$json = inspector()->addSegment(function () {
    return file_get_contents('auth.json');
}, 'http', 'READ auth.json');

// Report an exception
inspector()->reportException(new \Exception("Whoops there's an error here."));
```

Official documentation
----------------------

[](#official-documentation)

**[Check out the official documentation](https://docs.inspector.dev/guides/codeigniter/installation)**

Contributing
------------

[](#contributing)

We encourage you to contribute to Inspector! Please check out the [Contribution Guidelines](CONTRIBUTING.md) about how to proceed. Join us!

LICENSE
-------

[](#license)

This package is licensed under the [MIT](LICENSE) license.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance70

Regular maintenance activity

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

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

Every ~37 days

Recently: every ~51 days

Total

32

Last Release

259d ago

Major Versions

0.9.0 → 1.0.02025-08-24

PHP version history (2 changes)0.1.0PHP &gt;=7.2

0.3.4PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/320345fbe48c7cff2b3a25992c8207e959ae7817fb2fb97bb176dc6e559aacf5?d=identicon)[valerione](/maintainers/valerione)

---

Top Contributors

[![ilvalerione](https://avatars.githubusercontent.com/u/13559278?v=4)](https://github.com/ilvalerione "ilvalerione (75 commits)")[![benedict-tshaba](https://avatars.githubusercontent.com/u/26904431?v=4)](https://github.com/benedict-tshaba "benedict-tshaba (10 commits)")

---

Tags

error-monitoringerror-reportingmonitoringmonitoring-toolphpmonitoringinspectorcodeigniter4

### Embed Badge

![Health badge](/badges/inspector-apm-inspector-codeigniter/health.svg)

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

###  Alternatives

[inspector-apm/inspector-laravel

Code Execution Monitoring, built for developers.

2332.0M2](/packages/inspector-apm-inspector-laravel)[ptrofimov/beanstalk_console

Admin console for Beanstalk queue server

1.3k124.7k](/packages/ptrofimov-beanstalk-console)[inspector-apm/inspector-php

Inspector monitoring for PHP applications.

342.4M15](/packages/inspector-apm-inspector-php)[inspector-apm/inspector-symfony

Code Execution Monitoring for Symfony applications.

2830.1k2](/packages/inspector-apm-inspector-symfony)[bacula-web/bacula-web

The open source web based reporting and monitoring tool for Bacula

1537.5k](/packages/bacula-web-bacula-web)

PHPackages © 2026

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