<commit_before>Sylar - Intrusion Detection System
================
[![Latest Version](https://img.shields.io/packagist/v/ionut/sylar.svg?style=flat-square)](https://github.com/IonutBajescu/sylar/releases)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
[![Build Status](https://img.shields.io/travis/IonutBajescu/sylar/master.svg?style=flat-square)](https://travis-ci.org/IonutBajescu/sylar)
[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/IonutBajescu/sylar.svg?style=flat-square)](https://scrutinizer-ci.com/g/IonutBajescu/sylar/code-structure)
[![Quality Score](https://img.shields.io/scrutinizer/g/IonutBajescu/sylar.svg?style=flat-square)](https://scrutinizer-ci.com/g/IonutBajescu/sylar)
[![Total Downloads](https://img.shields.io/packagist/dt/ionut/sylar.svg?style=flat-square)](https://packagist.org/packages/ionut/sylar)

Sylar is a framework-agnostic Intrusion Detection System written for modern php applications. Under the hood, it digests PSR-7 Request and logs everything into a PSR-3 Logger, it follows BDD and the code is formatted based on the PSR-2 standard.
<br/>It also has a dashboard that provides you in real-time with useful statistics about the latest attempted intrusions on your website.

## Installation
`composer require ionut/sylar`

## Quickstart
```php
<?php
use Ionut\Sylar\Integrations\Standalone;

$sylar = new Standalone('path/to/your.log');
$sylar->run();
```

## Dashboard
Although not publicly released yet, it's important to state that Sylar will have a nice dashboard, hopefully, at the end of May.
![](https://i.imgur.com/vxmoo9t.png)

## Frameworks
Adapters for ease of use in frameworks haven't been written yet. If time is short please use the standalone example from the Quickstart section, it works no matter what framework you use / don't use.

License
---------------------

The Sylar library is open-sourced software licensed under the MIT license.<commit_msg>and now some borders for the dashboard images<commit_after>Sylar - Intrusion Detection System
================
[![Latest Version](https://img.shields.io/packagist/v/ionut/sylar.svg?style=flat-square)](https://github.com/IonutBajescu/sylar/releases)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
[![Build Status](https://img.shields.io/travis/IonutBajescu/sylar/master.svg?style=flat-square)](https://travis-ci.org/IonutBajescu/sylar)
[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/IonutBajescu/sylar.svg?style=flat-square)](https://scrutinizer-ci.com/g/IonutBajescu/sylar/code-structure)
[![Quality Score](https://img.shields.io/scrutinizer/g/IonutBajescu/sylar.svg?style=flat-square)](https://scrutinizer-ci.com/g/IonutBajescu/sylar)
[![Total Downloads](https://img.shields.io/packagist/dt/ionut/sylar.svg?style=flat-square)](https://packagist.org/packages/ionut/sylar)

Sylar is a framework-agnostic Intrusion Detection System written for modern php applications. Under the hood, it digests PSR-7 Request and logs everything into a PSR-3 Logger, it follows BDD and the code is formatted based on the PSR-2 standard.
<br/>It also has a dashboard that provides you in real-time with useful statistics about the latest attempted intrusions on your website.

## Installation
`composer require ionut/sylar`

## Quickstart
```php
<?php
use Ionut\Sylar\Integrations\Standalone;

$sylar = new Standalone('path/to/your.log');
$sylar->run();
```

## Dashboard
Although not publicly released yet, it's important to state that Sylar will have a nice dashboard, hopefully, at the end of May.
![](http://i.imgur.com/NRk2iZE.png)

## Frameworks
Adapters for ease of use in frameworks haven't been written yet. If time is short please use the standalone example from the Quickstart section, it works no matter what framework you use / don't use.

License
---------------------

The Sylar library is open-sourced software licensed under the MIT license.
{'fraction_non_alphanumeric': 0.14481897627965043, 'fraction_numerical': 0.0019975031210986267, 'mean_word_length': 5.125382262996942, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 23, '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': '1932093', 'n_tokens_mistral': 1395, 'n_tokens_neox': 1318, 'n_words': 326}