<commit_before># Vitess PHP

This folder contains the PHP client for Vitess.

See `demo.php` for a simple example of using the API.

## Prerequisites

PHP 5.3+ is required.

This library uses the BSON codec library contained within the MongoDB plugin.
For example, you can install this on Debian/Ubuntu like this:

``` sh
$ sudo apt-get install php5-dev php5-cli php-pear
$ sudo pecl install mongo
```

## Unit Tests

To run the tests, first install PHPUnit:

``` sh
$ wget https://phar.phpunit.de/phpunit.phar
$ mv phpunit.phar $VTROOT/bin/phpunit
```

Then run the tests like this:

``` sh
vitess/php$ phpunit tests
```
<commit_msg>php: Fix phpunit install step in README.<commit_after># Vitess PHP

This folder contains the PHP client for Vitess.

See `demo.php` for a simple example of using the API.

## Prerequisites

PHP 5.3+ is required.

This library uses the BSON codec library contained within the MongoDB plugin.
For example, you can install this on Debian/Ubuntu like this:

``` sh
$ sudo apt-get install php5-dev php5-cli php-pear
$ sudo pecl install mongo
```

## Unit Tests

To run the tests, first install PHPUnit:

``` sh
$ wget https://phar.phpunit.de/phpunit.phar
$ mv phpunit.phar $VTROOT/bin/phpunit
$ chmod +x $VTROOT/bin/phpunit
```

Then run the tests like this:

``` sh
vitess/php$ phpunit tests
```

{'fraction_non_alphanumeric': 0.09879336349924585, 'fraction_numerical': 0.006033182503770739, 'mean_word_length': 3.914814814814815, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3338907', 'n_tokens_mistral': 481, 'n_tokens_neox': 441, 'n_words': 177}