PHPackages                             devsquad-cockpit/php - 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. devsquad-cockpit/php

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

devsquad-cockpit/php
====================

A Freemium package to help you tracking your project errors

07PHP

Since Sep 19Pushed 1y ago2 watchersCompare

[ Source](https://github.com/devsquad-cockpit/php)[ Packagist](https://packagist.org/packages/devsquad-cockpit/php)[ RSS](/packages/devsquad-cockpit-php/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

 [![Cockpit](https://github.com/devsquad-cockpit/php/raw/develop/cockpit-logo.png?raw=true "Cockpit")](https://github.com/devsquad-cockpit/php/blob/develop/cockpit-logo.png?raw=true)

 [ ![DevSquad](https://github.com/devsquad-cockpit/php/raw/develop/devsquad-logo.png?raw=true "DevSquad") ](https://devsquad.com)

Cockpit is a beautiful error tracking package that will help your software team to track and fix errors.

Composer Installation
---------------------

[](#composer-installation)

This package is compatible with **PHP 7.3 or greater**.

#### Add these lines to the *composer.json* file in your project root:

[](#add-these-lines-to-the-composerjson-file-in-your-project-root)

```
"repositories": [
   {
      "type": "composer",
      "url": "https://devsquad.repo.repman.io"
   }
]
```

#### Create the *auth.json* file with this content in your project root:

[](#create-the-authjson-file-with-this-content-in-your-project-root)

```
{
    "http-basic": {
        "devsquad.repo.repman.io": {
            "username": "1fc2d46ccf0406664c6427da36c26c3bebadd220b86ff7aed078def2ca03ebd6",
            "password": "1fc2d46ccf0406664c6427da36c26c3bebadd220b86ff7aed078def2ca03ebd6"
        }
    }
}
```

#### Now you can install the package:

[](#now-you-can-install-the-package)

```
composer require devsquad-cockpit/php
```

Configuration
-------------

[](#configuration)

So that the cockpit can send the errors to the application you need to define this environment configuration in your .env file

```
COCKPIT_DOMAIN=http://fake-cockpit.app/
COCKPIT_TOKEN=project-token
```

Testing
-------

[](#testing)

You're able to send a fake error to the Cockpit as a test by running this command:

```
./vendor/bin/cockpit test
```

Set logged user
---------------

[](#set-logged-user)

Using the function below when reporting an error, the cockpit will send the data of the logged in user according to what was returned by Closure.

```
Cockpit::setUser(function() {
    return ['name'=>'name', 'email'=>'user@email.com'...];
});
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor1

Top contributor holds 87% 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/737d15503c2277f2e6f023c1ddb827b2524e7e23dde1f97310cf3bc4a2aba02e?d=identicon)[teamdevsquad](/maintainers/teamdevsquad)

---

Top Contributors

[![hecktorvn](https://avatars.githubusercontent.com/u/24227477?v=4)](https://github.com/hecktorvn "hecktorvn (140 commits)")[![devsquad-andre-lunelli](https://avatars.githubusercontent.com/u/112574650?v=4)](https://github.com/devsquad-andre-lunelli "devsquad-andre-lunelli (16 commits)")[![matheus-santos-devsquad](https://avatars.githubusercontent.com/u/76975907?v=4)](https://github.com/matheus-santos-devsquad "matheus-santos-devsquad (3 commits)")[![iammayron](https://avatars.githubusercontent.com/u/7702807?v=4)](https://github.com/iammayron "iammayron (2 commits)")

### Embed Badge

![Health badge](/badges/devsquad-cockpit-php/health.svg)

```
[![Health](https://phpackages.com/badges/devsquad-cockpit-php/health.svg)](https://phpackages.com/packages/devsquad-cockpit-php)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[ekino/newrelic-bundle

Integrate New Relic into Symfony2

28111.2M8](/packages/ekino-newrelic-bundle)

PHPackages © 2026

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