Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mimmi20/laminasviewrenderer-flash-message


https://github.com/mimmi20/laminasviewrenderer-flash-message

flash-messages laminas laminas-view php81

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# laminasviewrenderer-flash-message

[![Latest Stable Version](https://poser.pugx.org/mimmi20/laminasviewrenderer-flash-message/v/stable?format=flat-square)](https://packagist.org/packages/mimmi20/laminasviewrenderer-flash-message)
[![Latest Unstable Version](https://poser.pugx.org/mimmi20/laminasviewrenderer-flash-message/v/unstable?format=flat-square)](https://packagist.org/packages/mimmi20/laminasviewrenderer-flash-message)
[![License](https://poser.pugx.org/mimmi20/laminasviewrenderer-flash-message/license?format=flat-square)](https://packagist.org/packages/mimmi20/laminasviewrenderer-flash-message)

## Code Status

[![codecov](https://codecov.io/gh/mimmi20/laminasviewrenderer-flash-message/branch/master/graph/badge.svg)](https://codecov.io/gh/mimmi20/laminasviewrenderer-flash-message)
[![Test Coverage](https://api.codeclimate.com/v1/badges/183a15bf96b4420c3821/test_coverage)](https://codeclimate.com/github/mimmi20/laminasviewrenderer-flash-message/test_coverage)
[![Average time to resolve an issue](https://isitmaintained.com/badge/resolution/mimmi20/laminasviewrenderer-flash-message.svg)](https://isitmaintained.com/project/mimmi20/laminasviewrenderer-flash-message "Average time to resolve an issue")
[![Percentage of issues still open](https://isitmaintained.com/badge/open/mimmi20/laminasviewrenderer-flash-message.svg)](https://isitmaintained.com/project/mimmi20/laminasviewrenderer-flash-message "Percentage of issues still open")
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fmimmi20%2Flaminasviewrenderer-flash-message%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/mimmi20/laminasviewrenderer-flash-message/master)
[![Maintainability](https://api.codeclimate.com/v1/badges/183a15bf96b4420c3821/maintainability)](https://codeclimate.com/github/mimmi20/laminasviewrenderer-flash-message/maintainability)

## Requirements

This library requires PHP 8.1+.

## Installation

Run

```shell
composer require mimmi20/laminasviewrenderer-flash-message
```

## Required Settings

This Viewhelper renders a template. An alias for this template is used

You have to define a template map for this

```php
'template_map' => [
'widget/bootstrap-alert' => __DIR__ . '/../view/widget/bootstrap-alert',
],
```

Inside the Template the variables `alertLevel` and `alertMessage` are available.

## License

This package is licensed using the MIT License.

Please have a look at [`LICENSE.md`](LICENSE.md).