PHPackages                             php-console/silex-service-provider - 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. php-console/silex-service-provider

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

php-console/silex-service-provider
==================================

Silex service provider to handle PHP errors, dump variables, execute PHP code remotely in Google Chrome

1.0.1(12y ago)642.0k↓34.2%3BSD 3-ClausePHPPHP &gt;=5.3

Since Feb 4Pushed 12y ago2 watchersCompare

[ Source](https://github.com/barbushin/php-console-silex)[ Packagist](https://packagist.org/packages/php-console/silex-service-provider)[ Docs](https://github.com/barbushin/php-console-silex)[ RSS](/packages/php-console-silex-service-provider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

PHP Console service provider
============================

[](#php-console-service-provider)

PHP Console allows you to handle PHP errors &amp; exceptions, dump variables, execute PHP code remotely and many other things using [Google Chrome extension PHP Console](https://chrome.google.com/webstore/detail/php-console/nfhmhhlpfleoednkpnnnkolmclajemef) and [PhpConsole server library](https://github.com/barbushin/php-console).

This packages integrates [PHP Console server library](https://github.com/barbushin/php-console) with [Silex](http://silex.sensiolabs.org) as configurable service provider.

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

[](#installation)

1. Install Google Chrome extension [PHP Console](https://chrome.google.com/webstore/detail/php-console/nfhmhhlpfleoednkpnnnkolmclajemef).
2. Add `"php-console/silex-service-provider": "1.*"` package in Silex project `composer.json` and run `composer update`.

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

[](#configuration)

To handle errors occurred on Silex initialization PhpConsole service provider should be initialized right after `Silex\Application`:

```
$app = new Silex\Application();

// All settings are optional, so you can remove any key in this array
$app['php-console.settings'] = array(
  'sourcesBasePath' => dirname(__DIR__),
  'serverEncoding' => null,
  'headersLimit' => null,
  'password' => null,
  'enableSslOnlyMode' => false,
  'ipMasks' => array(),
  'isEvalEnabled' => false,
  'dumperLevelLimit' => 5,
  'dumperItemsCountLimit' => 100,
  'dumperItemSizeLimit' => 5000,
  'dumperDumpSizeLimit' => 500000,
  'dumperDetectCallbacks' => true,
  'detectDumpTraceAndSource' => false,
);

$app->register(new PhpConsole\Silex\ServiceProvider($app,
new \PhpConsole\Storage\File(sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'php-console.data') // any writable path
));

```

See [PhpConsole\\Silex\\ServiceProvider](/src/PhpConsole/Silex/ServiceProvider.php) for detailed settings description.

Usage
-----

[](#usage)

When PhpConsole service provider is registered all errors and exceptions will be handled automatically.

Now you can debug vars using PhpConsole global helper class `PC`:

```
PC::debug($var, 'tags');

```

Also you can extended `Silex\Application` class with `use PhpConsole\Silex\ApplicationHelperTrait` and debug using:

```
$app->pc($var, 'tags');

```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.5% 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 ~0 days

Total

2

Last Release

4486d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/683352?v=4)[Sergey](/maintainers/barbushin)[@barbushin](https://github.com/barbushin)

---

Top Contributors

[![barbushin](https://avatars.githubusercontent.com/u/683352?v=4)](https://github.com/barbushin "barbushin (10 commits)")[![Chi-teck](https://avatars.githubusercontent.com/u/673139?v=4)](https://github.com/Chi-teck "Chi-teck (6 commits)")

---

Tags

phpdebugerrorschromeservice providerloggersilexphp-console

### Embed Badge

![Health badge](/badges/php-console-silex-service-provider/health.svg)

```
[![Health](https://phpackages.com/badges/php-console-silex-service-provider/health.svg)](https://phpackages.com/packages/php-console-silex-service-provider)
```

###  Alternatives

[php-console/php-console

PHP library for Google Chrome extension "PHP Console".

1.3k2.9M41](/packages/php-console-php-console)[analog/analog

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

3451.5M24](/packages/analog-analog)[php-console/laravel-service-provider

Laravel service provider to handle PHP errors, dump variables, execute PHP code remotely in Google Chrome

7361.2k1](/packages/php-console-laravel-service-provider)[justbetter/magento2-sentry

Magento 2 Logger for Sentry

1851.5M3](/packages/justbetter-magento2-sentry)[opengento/module-webapi-logger

This module allows you to analyze all the webapi rest done call toward your Magento.

1014.9k](/packages/opengento-module-webapi-logger)

PHPackages © 2026

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