<commit_before># PHP Console server library

PHP Console allows you to handle PHP errors & 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).

### Overview

* See [presentation video](http://www.youtube.com/watch?v=_4kG-Zrs2Io).
* Install Google Chrome extension [PHP Console](https://chrome.google.com/webstore/detail/php-console/nfhmhhlpfleoednkpnnnkolmclajemef).
* See how it works on [live demo](http://php-console.com/instance/examples) page.
* PHP Console extension [features list and screenshots](https://github.com/barbushin/php-console/wiki/PHP-Console-extension-features).
* PHP Console server library [features list](https://github.com/barbushin/php-console/wiki/PHP-Console-server-features).

### Requirements

* [PHP Console extension](https://chrome.google.com/webstore/detail/php-console/nfhmhhlpfleoednkpnnnkolmclajemef) must be installed on Google Chrome.
* PHP 5.3 (or later) on server.

*For projects with PHP < 5.3 you can try to use old [deprecated version](https://groups.google.com/forum/?hl=ru#!forum/php-console-deprecated-version) of PHP Console. But mention that actual last version is much more functional.*

# Installation

### Composer

	{
		"require": {
			"php-console/php-console": "~3.0"
		}
	}

Or

	$ composer require php-console/php-console ~3.0

### PHAR

Download [PhpConsole.phar](http://php-console.com/instance/examples/utils/build_phar.php?download).
Include in your project using:

	require_once('phar:///var/www/path-to/PhpConsole.phar'); // autoload will be initialized automatically

### Monolog handler
https://github.com/Seldaek/monolog/blob/master/src/Monolog/Handler/PHPConsoleHandler.php

### Symfony framework bundle
https://github.com/Vitre/php-console-bundle

### Yii framework extension
http://www.yiiframework.com/extension/php-console

### Slim framework
https://github.com/amenadiel/SlimPHPConsole (thanks to [@amenadiel](https://github.com/amenadiel))

### Silex framework service provider
https://github.com/barbushin/php-console-silex (thanks to [@Chi-teck](https://github.com/Chi-teck))

### Laravel 4.* & 5.* framework service provider
https://github.com/barbushin/php-console-laravel

### Drupal CMS module
https://drupal.org/project/pc (thanks to [@Chi-teck](https://github.com/Chi-teck))

### WordPress plugin
https://github.com/nekojira/wp-php-console (thanks to [@nekojira](https://github.com/nekojira))<commit_msg>updated user name on GH :)<commit_after># PHP Console server library

PHP Console allows you to handle PHP errors & 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).

### Overview

* See [presentation video](http://www.youtube.com/watch?v=_4kG-Zrs2Io).
* Install Google Chrome extension [PHP Console](https://chrome.google.com/webstore/detail/php-console/nfhmhhlpfleoednkpnnnkolmclajemef).
* See how it works on [live demo](http://php-console.com/instance/examples) page.
* PHP Console extension [features list and screenshots](https://github.com/barbushin/php-console/wiki/PHP-Console-extension-features).
* PHP Console server library [features list](https://github.com/barbushin/php-console/wiki/PHP-Console-server-features).

### Requirements

* [PHP Console extension](https://chrome.google.com/webstore/detail/php-console/nfhmhhlpfleoednkpnnnkolmclajemef) must be installed on Google Chrome.
* PHP 5.3 (or later) on server.

*For projects with PHP < 5.3 you can try to use old [deprecated version](https://groups.google.com/forum/?hl=ru#!forum/php-console-deprecated-version) of PHP Console. But mention that actual last version is much more functional.*

# Installation

### Composer

	{
		"require": {
			"php-console/php-console": "~3.0"
		}
	}

Or

	$ composer require php-console/php-console ~3.0

### PHAR

Download [PhpConsole.phar](http://php-console.com/instance/examples/utils/build_phar.php?download).
Include in your project using:

	require_once('phar:///var/www/path-to/PhpConsole.phar'); // autoload will be initialized automatically

### Monolog handler
https://github.com/Seldaek/monolog/blob/master/src/Monolog/Handler/PHPConsoleHandler.php

### Symfony framework bundle
https://github.com/Vitre/php-console-bundle

### Yii framework extension
http://www.yiiframework.com/extension/php-console

### Slim framework
https://github.com/amenadiel/SlimPHPConsole (thanks to [@amenadiel](https://github.com/amenadiel))

### Silex framework service provider
https://github.com/barbushin/php-console-silex (thanks to [@Chi-teck](https://github.com/Chi-teck))

### Laravel 4.* & 5.* framework service provider
https://github.com/barbushin/php-console-laravel

### Drupal CMS module
https://drupal.org/project/pc (thanks to [@Chi-teck](https://github.com/Chi-teck))

### WordPress plugin
https://github.com/unfulvio/wp-php-console (thanks to [@nekojira](https://github.com/unfulvio))
{'fraction_non_alphanumeric': 0.14337464251668255, 'fraction_numerical': 0.00457578646329838, 'mean_word_length': 5.002288329519451, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 36, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6732088', 'n_tokens_mistral': 1747, 'n_tokens_neox': 1669, 'n_words': 356}