<commit_before># phpexe

Execute PHP from within Node

## Install

Requires PHP installed and available via your environment path.

```bash
npm install phpexe
```

## Usage

sample.php

```php
<?php
	echo "Hello"
?>
```

Node usage of sample.php


```js
var php = require('phpexe');

php('sample.php', function(error, data) {
	if (error) {
		console.log(error) // PHP error or stderr
	} else {
		console.log(data); // PHP stdout
	}
```


## License MIT<commit_msg>expand example<commit_after># phpexe

Execute PHP from within Node

## Install

Requires PHP installed and available via your environment path.

```bash
npm install phpexe
```

## Usage

sample.php

```php
<?php
	echo "Hello"
?>
```

Node usage of sample.php


```js
var php = require('phpexe');

php('sample.php', function(error, data) {
	if (error) {
		console.log(error) // PHP error or stderr
	} else {
		console.log(data); // PHP stdout  'Hello'
	}
```


## License MIT
{'fraction_non_alphanumeric': 0.14925373134328357, 'fraction_numerical': 0.0, 'mean_word_length': 3.7908163265306123, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3969637', 'n_tokens_mistral': 352, 'n_tokens_neox': 323, 'n_words': 103}