<commit_before>AGL Framework - More/Encoder
=======================

Additional Encoder module for [AGL Framework](https://github.com/agl-php/agl-app).

## Installation

Run the following command in the root of your AGL application:

	php composer.phar require agl/more-encoder:*

## Configuration

Edit `app/etc/config/more/encoder/main.php` and enter a key (used to encode and decode strings, must be unique).

## Usage

	$encoder = Agl::getInstance('more/encoder');

Encode string:

	$encoder->encode('string');

Decode string:

	$encoder->decode($encodedString);
<commit_msg>Packagist and Travis CI status images.<commit_after>AGL Framework - More/Encoder
=======================

[![Latest Stable Version](https://poser.pugx.org/agl/more-encoder/v/stable.png)](https://packagist.org/packages/agl/more-encoder)
[![Build Status](https://travis-ci.org/agl-php/more-encoder.png)](https://travis-ci.org/agl-php/more-encoder)

Additional Encoder module for [AGL Framework](https://github.com/agl-php/agl-app).

## Installation

Run the following command in the root of your AGL application:

	php composer.phar require agl/more-encoder:*

## Configuration

Edit `app/etc/config/more/encoder/main.php` and enter a key (used to encode and decode strings, must be unique).

## Usage

	$encoder = Agl::getInstance('more/encoder');

Encode string:

	$encoder->encode('string');

Decode string:

	$encoder->decode($encodedString);

{'fraction_non_alphanumeric': 0.16924157303370788, 'fraction_numerical': 0.0, 'mean_word_length': 5.012658227848101, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 6, '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': '3966484', 'n_tokens_mistral': 458, 'n_tokens_neox': 435, 'n_words': 110}