<commit_before># Guild Wars 2 SDK for PHP

> This is an unofficial [Gw2 SDK for PHP](https://github.com/defunctl/Gw2-SDK).
The SDK is currently under development, so functions, readme and/or examples will
change. As Arenanet provides more options, I'll try to add them in. Feel free to 
fork and help out!

## Requirements

Gw2 SDK for PHP requires PHP 5.3.0 or later with cURL.

## Installation

```php
require '/path/to/libs/vesu/SDK/Gw2/Gw2SDK.php';
require '/path/to/libs/vesu/SDK/Gw2/Gw2Exception.php';

use \vesu\SDK\Gw2\Gw2SDK;
use \vesu\SDK\Gw2\Gw2Exception;

$gw2 = new Gw2SDK;
...
```

### Usage

#### Basic usage (public functions only)

```php
$gw2 = new Gw2SDK(dirname(__FILE__).'/cache'); // path to webserver writable folder
$matches = $gw2->getMatches();
print_r($matches);
...
```

#### More Examples

An example folder was included so you can test this out on your webserver.

### About Caching

Use a caching directory as it will greatly improve peformance. Original Cache class was written by [<NAME>](https://github.com/oliverschwarz/). Vielen Dank!

More examples you can find soon at Wiki pages.

## Licenses

Refer to the LICENSE.md file for license information

## Reference

[Gw2 SDK](https://github.com/defunctl/Gw2-SDK), 
[Guild Wars 2](http://www.guildwars2.com/), <commit_msg>fixed spelling error<commit_after># Guild Wars 2 SDK for PHP

> This is an unofficial [Gw2 SDK for PHP](https://github.com/defunctl/Gw2-SDK).
The SDK is currently under development, so functions, readme and/or examples will
change. As Arenanet provides more options, I'll try to add them in. Feel free to 
fork and help out!

## Requirements

Gw2 SDK for PHP requires PHP 5.3.0 or later with cURL.

## Installation

```php
require '/path/to/libs/vesu/SDK/Gw2/Gw2SDK.php';
require '/path/to/libs/vesu/SDK/Gw2/Gw2Exception.php';

use \vesu\SDK\Gw2\Gw2SDK;
use \vesu\SDK\Gw2\Gw2Exception;

$gw2 = new Gw2SDK;
...
```

### Usage

#### Basic usage (public functions only)

```php
$gw2 = new Gw2SDK(dirname(__FILE__).'/cache'); // path to webserver writable folder
$matches = $gw2->getMatches();
print_r($matches);
...
```

#### More Examples

An example folder was included so you can test this out on your webserver.

### About Caching

Use a caching directory as it will greatly improve peformance. Original Cache class was written by [<NAME>](https://github.com/oliverschwarz/). <NAME>!

## Licenses

Refer to the LICENSE.md file for license information

## Reference

[Gw2 SDK](https://github.com/defunctl/Gw2-SDK), 
[Guild Wars 2](http://www.guildwars2.com/), 
{'fraction_non_alphanumeric': 0.13367108339828526, 'fraction_numerical': 0.018706157443491817, 'mean_word_length': 4.083168316831683, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 10, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, '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': '2415591', 'n_tokens_mistral': 961, 'n_tokens_neox': 891, 'n_words': 292}