<commit_before>bigboard-sdk-php
================

BigBoard SDK for PHP<commit_msg>Fixed readme example code.<commit_after>#BigBoard SDK for PHP
================

This SDK provides a simple interface to the [BigBoard API] (https://bigboard.us/api). [BigBoard] (https://bigboard.us/) is a web based service that aggredates point-in-time events from other web based services (and custom events) into a visually pleasing dashboard, allowing you to see what's really happening.


##Installation
Installation via [Composer] (http://getcomposer.org) is recommended:

```bash
curl -sS https://getcomposer.org/installer | php
```

Update your project's composer.json file to include the BigBoard SDK:

```javascript
{
    "require": {
        "bigboard/bigboard-php-sdk": "*"
    }
}
```


##Basic Usage

```php

require 'vendor/autoload.php';

// See BigBoard's service settings UI. 
// Connect an App and paste your token here:

$api_key = "<Your API Access Token Here>";

$client = new BigBoardSDK\APIClient ($api_key);

// My Account
$client = new BigBoardSDK\APIClient ($api_key);

// Get My Account
$my_account = $client->getWhoAmI();
var_export ($my_account);


// Post Events
$events = array (
	array (
	    "person_id" => "<EMAIL>",
	    "person_label" => "<NAME>",
	    "summary" => "Weekly TPS Report filed",
	    "time" => (time()-300), 
	    "label" => "TPS Reports"
	),
	array (
	    "person_id" => "<EMAIL>",
	    "person_label" => "<NAME>",
	    "summary" => "Report Rejected. Comment: Please include cover sheet. Mmmmkay?",
	    "time" => time(),
	    "label" => "TPS Reports"
	)
);

$status = $client->sendEvents($events);
var_export ($status);

```

## Documentation
More information on the BigBoard API is available at https://bigboard.us/api.


{'fraction_non_alphanumeric': 0.16514806378132119, 'fraction_numerical': 0.0017084282460136675, 'mean_word_length': 3.9078212290502794, 'pattern_counts': {'":': 2, '<': 8, '<?xml version=': 0, '>': 20, 'https://': 4, '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': '3559383', 'n_tokens_mistral': 590, 'n_tokens_neox': 549, 'n_words': 172}