<commit_before># collector
[![Build Status](https://travis-ci.org/mkabischev/collector.svg?branch=master)](https://travis-ci.org/mkabischev/collector)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/mkabischev/collector/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/mkabischev/collector/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/mkabischev/collector/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/mkabischev/collector/?branch=master)

## Installation

Install it with [Composer](https://getcomposer.org/):
```json
{
    "require": {
        "mkabischev/collector": "dev-master"
    }
}
```

### Sources
 - [x] _Database_
 - [ ] _Pinba_ 
 - [ ] _AWS CloudWatch_
 - [ ] _RabbitMQ_
 
### Storages
 - [x] _File_
 - [x] _Carbon (Graphite)_
 - [ ] _InfluxDB_
 
## Usage
```php
use Kabischev\Collector\Source\Database;
use Kabischev\Collector\Storage\Stream as StreamStorage;
use Kabischev\Collector\Storage\Stream\Formatter\Carbon as CarbonFormatter;
use Streamer\NetworkStream;<commit_msg>readme update<commit_after># collector
[![Build Status](https://travis-ci.org/mkabischev/collector.svg?branch=master)](https://travis-ci.org/mkabischev/collector)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/mkabischev/collector/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/mkabischev/collector/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/mkabischev/collector/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/mkabischev/collector/?branch=master)

## Installation

Install it with [Composer](https://getcomposer.org/):
```json
{
    "require": {
        "mkabischev/collector": "dev-master"
    }
}
```

### Sources
 - [x] _Database_
 - [x] _Array_
 - [ ] _Pinba_ 
 - [ ] _AWS CloudWatch_
 - [ ] _RabbitMQ_
 
### Storages
 - [x] _File_
 - [x] _Carbon (Graphite)_
 - [ ] _InfluxDB_
 
## Usage
```php
use Kabischev\Collector\Source\Database;
use Kabischev\Collector\Storage\Stream as StreamStorage;
use Kabischev\Collector\Storage\Stream\Formatter\Carbon as CarbonFormatter;
use Streamer\NetworkStream;
{'fraction_non_alphanumeric': 0.17117117117117117, 'fraction_numerical': 0.0, 'mean_word_length': 4.910364145658264, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 14, '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': '6212686', 'n_tokens_mistral': 821, 'n_tokens_neox': 785, 'n_words': 94}