<commit_before># CaptchaServiceProvider

This is the [Gregwar/Captcha](https://github.com/Gregwar/Captcha/) service provider for [Silex](http://silex.sensiolabs.org)

[![Build Status](https://travis-ci.org/Kilte/silex-captcha.svg?branch=master)](https://travis-ci.org/Kilte/silex-captcha)


## Requirements

- PHP >= 5.3.3
- [`SessionServiceProvider`](http://silex.sensiolabs.org/doc/providers/session.html)
- [`UrlGeneratorServiceProvider`](http://silex.sensiolabs.org/doc/providers/url_generator.html) (Optional)


## Usage

```php
use Kilte\Silex\Captcha\CaptchaServiceProvider;
use Silex\Provider\SessionServiceProvider;
use Silex\Provider\UrlGeneratorServiceProvider;

$app = new Silex\Application();
$captcha = new CaptchaServiceProvider();
$app->register(new SessionServiceProvider)
    ->register(new UrlGeneratorServiceProvider)
    ->register($captcha)
    ->mount('/', $captcha);<commit_msg>Added badges<commit_after># CaptchaServiceProvider

This is the [Gregwar/Captcha](https://github.com/Gregwar/Captcha/) service provider for [Silex](http://silex.sensiolabs.org)

[![Build Status](https://img.shields.io/travis/Kilte/silex-captcha.svg?style=flat-square)](https://travis-ci.org/Kilte/silex-captcha)
[![Downloads](https://img.shields.io/packagist/dt/kilte/silex-captcha.svg?style=flat-square)](https://packagist.org/packages/kilte/silex-captcha)
[![License](https://img.shields.io/packagist/l/kilte/silex-captcha.svg?style=flat-square)](http://opensource.org/licenses/MIT)
[![SensioLabs Insight](https://img.shields.io/sensiolabs/i/5cad97c6-03e3-4658-8bf4-31bda6c32317.svg?style=flat-square)](https://insight.sensiolabs.com/projects/5cad97c6-03e3-4658-8bf4-31bda6c32317)

## Requirements

- PHP >= 5.3.3
- [`SessionServiceProvider`](http://silex.sensiolabs.org/doc/providers/session.html)
- [`UrlGeneratorServiceProvider`](http://silex.sensiolabs.org/doc/providers/url_generator.html) (Optional)


## Usage

```php
use Kilte\Silex\Captcha\CaptchaServiceProvider;
use Silex\Provider\SessionServiceProvider;
use Silex\Provider\UrlGeneratorServiceProvider;

$app = new Silex\Application();
$captcha = new CaptchaServiceProvider();
$app->register(new SessionServiceProvider)
    ->register(new UrlGeneratorServiceProvider)
    ->register($captcha)
    ->mount('/', $captcha);
{'fraction_non_alphanumeric': 0.16892778993435448, 'fraction_numerical': 0.02100656455142232, 'mean_word_length': 6.188679245283019, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 11, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '585754', 'n_tokens_mistral': 890, 'n_tokens_neox': 822, 'n_words': 82}