PHPackages                             phpconsole/phpconsole - 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. phpconsole/phpconsole

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

phpconsole/phpconsole
=====================

A detached logging facility for PHP to aid your daily development routine

3.5.1(10y ago)417.5k6[3 issues](https://github.com/phpconsole/phpconsole/issues)1MITPHPPHP &gt;=5.3.0

Since Mar 9Pushed 10y ago5 watchersCompare

[ Source](https://github.com/phpconsole/phpconsole)[ Packagist](https://packagist.org/packages/phpconsole/phpconsole)[ Docs](http://phpconsole.com)[ RSS](/packages/phpconsole-phpconsole/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (4)Versions (17)Used By (1)

Phpconsole
==========

[](#phpconsole)

[![Build Status](https://camo.githubusercontent.com/e9b8a507b3c3067a58da2bd84859cb952ea6f366b788cc67d43cd6e553703a40/68747470733a2f2f7472617669732d63692e6f72672f706870636f6e736f6c652f706870636f6e736f6c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/phpconsole/phpconsole)

What is Phpconsole?
-------------------

[](#what-is-phpconsole)

In one sentence, Phpconsole is a detached logging facility for PHP to aid your daily development routine. What does it mean, exactly?

The main aim of Phpconsole is to replace burdensome `print_r()` and `var_dump()` functions with something vastly superior.

Phpconsole lets you send encrypted (AES-256) data to external server, where the data is processed and displayed in user-friendly form. The code is indented and highlighted and you can see additional information, like the address used to trigger the code, the date and time or the location of the code within your project.

You can collaborate on the project with others, just add them to the Organisation and they will have access to all projects within it.

Check out [product tour](http://phpconsole.com/tour) and a [quick video](https://www.youtube.com/watch?v=zSIIWsZyuMY) showing Phpconsole in action.

How easy is it to use Phpconsole?
---------------------------------

[](#how-easy-is-it-to-use-phpconsole)

```
p($foo); // that easy!
```

Requirements
------------

[](#requirements)

- account on [phpconsole.com](https://app.phpconsole.com/signup/)
- internet connection (to send data back to phpconsole.com server)
- PHP 5.3.0 or later
- cURL

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

[](#installation)

### Simple installation - standalone package

[](#simple-installation---standalone-package)

1. Log into your project at [phpconsole.com](https://app.phpconsole.com/login/) and click `Download phpconsole.php file` button
2. Move `phpconsole.php` file into your project
3. Require the file and start using Phpconsole right away:

    ```
    require 'path/to/phpconsole.php';
    p('Hello World!');
    ```

    As you can see, there's no need to configure Phpconsole when using the `Simple installation` flow.
4. (optional, recommended) Download [cacert.pem](http://curl.haxx.se/ca/cacert.pem) file and put it in the same folder as `phpconsole.php` - it will allow for API endpoint verification, but it's not required to start using Phpconsole.

### Advanced installation - Composer / Packagist

[](#advanced-installation---composer--packagist)

1. Add the following to `require` within your `composer.json` file:

    ```
    "phpconsole/phpconsole": "3.*"

    ```
2. Execute `composer update` to pull the package into your project
3. Place your [configuration file](https://github.com/phpconsole/phpconsole/blob/master/src/config/config.php) into **one** of these locations:

    ```
    phpconsole_config.php
    app/config/phpconsole.php
    app/config/packages/phpconsole/phpconsole/config.php
    config/packages/phpconsole/phpconsole/config.php
    application/config/phpconsole.php

    ```
4. Update your details in `config.php` (see "Configuration" section below)

Package details:

### Advanced installation - Laravel 4

[](#advanced-installation---laravel-4)

1. Add the following to `require` within your `composer.json` file:

    ```
    "phpconsole/phpconsole": "3.*"

    ```
2. Execute `composer update` to pull the package into your project
3. Add config file by executing

    ```
    php artisan config:publish phpconsole/phpconsole

    ```

    You will find it in

    ```
    app/config/packages/phpconsole/phpconsole/config.php
    ```
4. Update your details in `config.php` (see "Configuration" section below)

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

[](#configuration)

`Simple installation` doesn't require any configuration. For details about configuring package for Composer / Laravel, see the [Configuration file](CONFIGURATION.md).

Usage
-----

[](#usage)

Here's how to use Phpconsole:

```
// basic usage, send to default project
p($foo);

// send to project 'emails'
p($foo, 'emails');

// send to project 'backup' and mark as error
p($foo, array('project' => 'backup', 'type' => 'error'));
```

You can send several types of snippets:

```
p($_SERVER);

p('The job has been processed successfully', array('type' => 'success'));

p('Memory usage: '.$memory_usage, array('type' => 'info'));

p('Error: '.$error_message, array('type' => 'error'));
```

You can always create Phpconsole object yourself:

```
$phpconsole = new \Phpconsole\Phpconsole;
$phpconsole->send('This is a very important message');
```

Frequently Asked Questions
--------------------------

[](#frequently-asked-questions)

**Can I use Phpconsole to develop locally?**

Totally! Just make sure your server can reach phpconsole.com to send data.

**How to send data to all projects at once?**

```
$phpconsole = new \Phpconsole\Phpconsole;
$phpconsole->sendToAll('Super important message for all developers!');
```

**Is there a way to install entire Phpconsole locally?**

No, unfortunately the only option right now is to use Phpconsole library with phpconsole.com. Worried about privacy? Read "Security/privacy concerns" below.

Security/privacy concerns
-------------------------

[](#securityprivacy-concerns)

Phpconsole supports **end-to-end AES-256 encryption**. You can provide a password using `encryptionPasswords` variable in your config file, which will be used to encrypt all data before it leaves your server. The data will be decrypted in your browser on [phpconsole.com](http://phpconsole.com/) after you provide the password. The password is never sent back to Phpconsole's servers. Decryption happens in your browser before showing data on the screen. Phpconsole will **never** have access to plain-text version of data sent, it will also **never** store developer's key used to encrypt/decrypt data.

If you have more questions about security of your data, you can reach me at  .

Troubleshooting
---------------

[](#troubleshooting)

**Class 'p' not found in...**

Make sure you don't use deprecated `p::send()`, replace it with `p()`.

**phpconsole.com doesn't show my data**

Starting from version 3.1.0, Phpconsole has a "debug mode" that you can enable by changing `debug` option in your config file from `false` to `true`. When attempting to send data through Phpconsole, a `Phpconsole debug info` section is going to be appended to your page, showing a log of events in the system (pay attention to the ones highligted) and a bunch of basic information about your setup. Make sure that the config visible there matches what you have in your file.

You can always reach out to , attaching the info from the debug mode.

Useful links
------------

[](#useful-links)

[phpconsole.com](http://phpconsole.com) - main page

[Getting Started Video](https://www.youtube.com/watch?v=zSIIWsZyuMY) - Installing Phpconsole in under 2 minutes

[Getting Started (with CodeIgniter)](https://docs.google.com/document/d/14LGF1D4WKgw7GlERjDNyktPWfb3MVx_52ZlydqUzZkA/edit) - how to set up CodeIgniter framework to work with Phpconsole

Check out our [Product Tour](http://phpconsole.com/tour).

Author
------

[](#author)

Peter Legierski -  - [@peterlegierski](https://twitter.com/peterlegierski)

Changelog
---------

[](#changelog)

See CHANGELOG.md file

License
-------

[](#license)

See LICENSE file

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 99.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 ~53 days

Recently: every ~111 days

Total

15

Last Release

3743d ago

Major Versions

2.0.1 → 3.0.02014-07-05

PHP version history (2 changes)2.0.0PHP &gt;=5.3.6

3.2.0PHP &gt;=5.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/15873a6166559d9055fe14945ccdba520b3160d68b6e33dfd887cbe1b4584cf0?d=identicon)[legierski](/maintainers/legierski)

---

Top Contributors

[![legierski](https://avatars.githubusercontent.com/u/1420343?v=4)](https://github.com/legierski "legierski (245 commits)")[![Garbee](https://avatars.githubusercontent.com/u/868301?v=4)](https://github.com/Garbee "Garbee (1 commits)")[![shopsinc](https://avatars.githubusercontent.com/u/984663?v=4)](https://github.com/shopsinc "shopsinc (1 commits)")

---

Tags

logphpconsolewebloggingdebugdebuggingonlinephpconsole

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3511.6M24](/packages/analog-analog)[inpsyde/wonolog

Monolog-based logging package for WordPress.

184637.3k7](/packages/inpsyde-wonolog)[moesif/moesif-laravel

Moesif Collection/Data Ingestion Middleware for Laravel

1067.3k](/packages/moesif-moesif-laravel)

PHPackages © 2026

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