yii-extension/flash-message-bulma

This package is abandoned and no longer maintained. No replacement package was suggested.

Flash message service

dev-master / 1.0.x-dev 2021-07-26 08:00 UTC

This package is auto-updated.

Last update: 2021-07-27 17:18:39 UTC


README

68747470733a2f2f6c68332e676f6f676c6575736572636f6e74656e742e636f6d2f65685354506e5871726b6b304d33552d5550436a4330667479394b366c67796b4b32574f5541326e5548703867496b526a65544e387a385341426c6b766376522d39504972626f7849765047756a50675765624c51654848675837794c556f7846536475695a72546f6736576f5a4c694176716354523151545056526d6e733274596a414370703745513d7732343030

Flash message service


Total Downloads static analysis type-coverage

Installation

composer require yii-extension/flash-message-service

Usages:

Automatically detects if you use yii-extension/flash-message-bulma or yii-extension/alert-message-bootstrap5, and format the messages according to the widget.

You can inject flash-message-service into the controller or action, and automatically all dependencies are resolved by autowired in di-container.

<?php

declare(strict_types=1);

namespace App\Action;

use Psr\Http\Message\ResponseInterface;
use Yii\Extension\Service\ServiceFlashMessage;

final class Example
{
    public function run(ServiceFlashMessage $serviceFlashMessage): ResponseInterface
    {
        $serviceFlashMessage->run('success', 'Header message', 'Body message');
    }
}

Static analysis

The code is statically analyzed with Psalm. To run static analysis:

./vendor/bin/psalm

License

The Flash message service for Yii Packages is free software. It is released under the terms of the BSD License. Please see LICENSE for more information.

Maintained by Yii Extension.