<commit_before># Ensure
Some PHP Traits for ensuring values
[![Build Status](https://travis-ci.org/DjThossi/Ensure.svg?branch=master)](https://travis-ci.org/DjThossi/Ensure)
[![Coverage Status](https://coveralls.io/repos/github/DjThossi/Ensure/badge.svg?branch=master)](https://coveralls.io/github/DjThossi/Ensure?branch=master)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/ccaef76a-725e-4b1b-892a-c3dd4570e629/mini.png)](https://insight.sensiolabs.com/projects/ccaef76a-725e-4b1b-892a-c3dd4570e629)
## How it works
The provided Ensure Traits will test if provided `$valueToTest` has expected value. 
- If `$valueToTest` is valid nothing happens
- If `$valueToTest` is invalid `InvalidValueException` is thrown

## Available Ensure Traits
- EnsureIsBooleanTrait
- EnsureIsGreaterThanTrait
- EnsureIsIntegerTrait
- EnsureIsLowerThanTrait
- EnsureIsNotEmptyTrait
- EnsureIsStringTrait
- EnsureIsUrlTrait

## How to install
You have several options to install this package

### Composer
`composer require djthossi/ensure`<commit_msg>replace coveralls with codeclimate<commit_after># Ensure
Some PHP Traits for ensuring values
[![Build Status](https://travis-ci.org/DjThossi/Ensure.svg?branch=master)](https://travis-ci.org/DjThossi/Ensure)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/ccaef76a-725e-4b1b-892a-c3dd4570e629/mini.png)](https://insight.sensiolabs.com/projects/ccaef76a-725e-4b1b-892a-c3dd4570e629)
[![Code Climate](https://codeclimate.com/github/DjThossi/Ensure/badges/gpa.svg)](https://codeclimate.com/github/DjThossi/Ensure)
[![Test Coverage](https://codeclimate.com/github/DjThossi/Ensure/badges/coverage.svg)](https://codeclimate.com/github/DjThossi/Ensure/coverage)


## How it works
The provided Ensure Traits will test if provided `$valueToTest` has expected value. 
- If `$valueToTest` is valid nothing happens
- If `$valueToTest` is invalid `InvalidValueException` is thrown

## Available Ensure Traits
- EnsureIsBooleanTrait
- EnsureIsGreaterThanTrait
- EnsureIsIntegerTrait
- EnsureIsLowerThanTrait
- EnsureIsNotEmptyTrait
- EnsureIsStringTrait
- EnsureIsUrlTrait

## How to install
You have several options to install this package

### Composer
`composer require djthossi/ensure`
{'fraction_non_alphanumeric': 0.12304250559284116, 'fraction_numerical': 0.032214765100671144, 'mean_word_length': 6.212903225806452, 'pattern_counts': {'":': 0, '<': 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': '5944561', 'n_tokens_mistral': 841, 'n_tokens_neox': 821, 'n_words': 136}