<commit_before>#PHP to Console#
This project consists of a small PHP class and a Node.js app. I, Kevin, is mainly into PHP but have also been playing with Node.js. When I debug my PHP I noramly print_r or echo out variables to debug. This can get messy. I wanted a cross platform application to show output from PHP to help debug. Node.js runs on Windows, Mac and Linux, just like PHP, so it's a great choice.

So that's all it does for now and a really simple comand line to quit, help, check version and clear. But I might try to add what's in the "Some Ideas" section towards the end of this readme.

##How to use##
**Node.js Start**<br>
CD in Terminal or cmd.exe to the node folder with this download and type app.js and it will start on port 5088, if you want to change it edit `var port = 5088;` in the app.js towards the top.

**PHP**<br>
in the php folder copy `php2console.php` in to your PHP project folder and use the following exmaple.

spellcheck

Then type

`<?php
require 'php2console.php';
$php_console = new php_console('localhost', '5088');
$php_console->output('OMG! AN ERROR!');
?>`

**Dependencies**<br><commit_msg>Indented the example.<commit_after>#PHP to Console#
This project consists of a small PHP class and a Node.js app. I, Kevin, is mainly into PHP but have also been playing with Node.js. When I debug my PHP I noramly print_r or echo out variables to debug. This can get messy. I wanted a cross platform application to show output from PHP to help debug. Node.js runs on Windows, Mac and Linux, just like PHP, so it's a great choice.

So that's all it does for now and a really simple comand line to quit, help, check version and clear. But I might try to add what's in the "Some Ideas" section towards the end of this readme.

##How to use##
**Node.js Start**<br>
CD in Terminal or cmd.exe to the node folder with this download and type app.js and it will start on port 5088, if you want to change it edit `var port = 5088;` in the app.js towards the top.

**PHP**<br>
in the php folder copy `php2console.php` in to your PHP project folder and use the following exmaple.

spellcheck

Then type

	<?php
		require 'php2console.php';
		$php_console = new php_console('localhost', '5088');
		$php_console->output('OMG! AN ERROR!');
	?>

**Dependencies**<br>
{'fraction_non_alphanumeric': 0.08180227471566054, 'fraction_numerical': 0.012248468941382326, 'mean_word_length': 4.12780269058296, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6011433', 'n_tokens_mistral': 701, 'n_tokens_neox': 662, 'n_words': 377}