<commit_before># vaibhavpandeyvpz/phlash
Framework agnostic, flash messages service for use in any micro/full-stack framework.

[![Build status][build-status-image]][build-status-url]
[![Code Coverage][code-coverage-image]][code-coverage-url]
[![Latest Version][latest-version-image]][latest-version-url]
[![Downloads][downloads-image]][downloads-url]
[![PHP Version][php-version-image]][php-version-url]
[![License][license-image]](LICENSE.md)

[![SensioLabsInsight][insights-image]][insights-url]

Install
-------
```bash
composer require vaibhavpandeyvpz/phlash
```

Usage
-----
```php
<?php

$flash = new Phlash\ArrayFlash();

/**
 * @desc These will available in current request
 */
$flash->flashNow('danger', 'Error #1');
$flash->flashNow('danger', 'Error #2');

/**
 * @desc These will available in next request
 */
$flash->flashLater('success', 'Success #3');
$flash->flashLater('success', 'Success #4');

/**
 * @desc Get all messages for the current + previous request
 */
$messages = $flash->getMessages();
```

License
-------
See [LICENSE.md](LICENSE.md) file.

[build-status-image]: https://img.shields.io/travis/vaibhavpandeyvpz/phlash.svg?style=flat-square
[build-status-url]: https://travis-ci.org/vaibhavpandeyvpz/phlash
[code-coverage-image]: https://img.shields.io/codecov/c/github/vaibhavpandeyvpz/phlash.svg?style=flat-square
[code-coverage-url]: https://codecov.io/gh/vaibhavpandeyvpz/phlash
[latest-version-image]: https://img.shields.io/github/release/vaibhavpandeyvpz/phlash.svg?style=flat-square
[latest-version-url]: https://github.com/vaibhavpandeyvpz/phlash/releases<commit_msg>language typo<commit_after># vaibhavpandeyvpz/phlash
Framework agnostic, flash messages service for use in any micro/full-stack framework.

[![Build status][build-status-image]][build-status-url]
[![Code Coverage][code-coverage-image]][code-coverage-url]
[![Latest Version][latest-version-image]][latest-version-url]
[![Downloads][downloads-image]][downloads-url]
[![PHP Version][php-version-image]][php-version-url]
[![License][license-image]](LICENSE.md)

[![SensioLabsInsight][insights-image]][insights-url]

Install
-------
```bash
composer require vaibhavpandeyvpz/phlash
```

Usage
-----
```php
<?php

$flash = new Phlash\ArrayFlash();

/**
 * @desc These will be available in current request
 */
$flash->flashNow('danger', 'Error #1');
$flash->flashNow('danger', 'Error #2');

/**
 * @desc These will be available in next request
 */
$flash->flashLater('success', 'Success #3');
$flash->flashLater('success', 'Success #4');

/**
 * @desc Get all messages for the current + previous request
 */
$messages = $flash->getMessages();
```

License
-------
See [LICENSE.md](LICENSE.md) file.

[build-status-image]: https://img.shields.io/travis/vaibhavpandeyvpz/phlash.svg?style=flat-square
[build-status-url]: https://travis-ci.org/vaibhavpandeyvpz/phlash
[code-coverage-image]: https://img.shields.io/codecov/c/github/vaibhavpandeyvpz/phlash.svg?style=flat-square
[code-coverage-url]: https://codecov.io/gh/vaibhavpandeyvpz/phlash
[latest-version-image]: https://img.shields.io/github/release/vaibhavpandeyvpz/phlash.svg?style=flat-square
[latest-version-url]: https://github.com/vaibhavpandeyvpz/phlash/releases
{'fraction_non_alphanumeric': 0.19180633147113593, 'fraction_numerical': 0.002482929857231533, 'mean_word_length': 5.631687242798354, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1103896', 'n_tokens_mistral': 1183, 'n_tokens_neox': 1138, 'n_words': 178}