<commit_before># GoEmPHP

This package is built for Embedding PHP into Golang.

It is easy to use:

    script = php.New()
    script.Startup()
    defer script.Close() 
    if err := script.Eval("phpinfo();"); err != nil {
        log.Fatal(err)
    }
    if err := script.Exec("foobar.php"); err != nil {
        log.Fatal(err)
    }

For more examples, please read the souce code: `php_test.go`.

# INSTALL

The first step is downloading the package. Please note that you must specify
the param `-d`.

> $ go get -d github.com/mikespook/goemphp

Then, following step is running `bootstrap.sh` to prepar the embeded PHP 
library. It has one paramater with 4 values: [5.4 | 5.5 | 5.6 | ng]
<commit_msg>Added highlighting for the sample.<commit_after># GoEmPHP

This package is built for Embedding PHP into Golang.

It is easy to use:

```go
    script = php.New()
    script.Startup()
    defer script.Close() 
    if err := script.Eval("phpinfo();"); err != nil {
        log.Fatal(err)
    }
    if err := script.Exec("foobar.php"); err != nil {
        log.Fatal(err)
    }
```
For more examples, please read the souce code: `php_test.go`.

# INSTALL

The first step is downloading the package. Please note that you must specify
the param `-d`.

> $ go get -d github.com/mikespook/goemphp

Then, following step is running `bootstrap.sh` to prepar the embeded PHP 
library. It has one paramater with 4 values: [5.4 | 5.5 | 5.6 | ng]

{'fraction_non_alphanumeric': 0.1190807799442897, 'fraction_numerical': 0.009749303621169917, 'mean_word_length': 2.958677685950413, 'pattern_counts': {'":': 0, '<': 3, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5637580', 'n_tokens_mistral': 498, 'n_tokens_neox': 471, 'n_words': 177}