yii2-extensions/asset-bootbox

Asset BootBox for Yii Framework.

dev-main 2023-11-19 14:40 UTC

This package is auto-updated.

Last update: 2024-04-19 15:26:58 UTC


README

68747470733a2f2f7777772e7969696672616d65776f726b2e636f6d2f696d6167652f7969695f6c6f676f5f6c696768742e737667

Asset for Bootbox.


php-version PHPUnit PHPUnit Codecov Infection

asset-bootbox

Installation

The preferred way to install this extension is through composer.

Either run

composer require --dev --prefer-dist yii2-extensions/asset-bootbox

or add

"yii2-extensions/asset-bootbox": "dev-main"

to the require-dev section of your composer.json file.

Usage

<?php

declare(strict_types=1);

use Yii2\Asset\BootboxAsset;
use yii\helpers\Html;

BootboxAsset::register($this);

echo Html::a(
    'Delete',
    '#',
    [
        'class' => 'btn btn-danger',
        'data' => [
            'confirm' => 'Are you sure you want to delete this item?',
            'method' => 'post',
        ],
    ]
);

Quality code

static-analysis phpstan-level style-ci

Support versions Yii2

Yii20 Yii22

Testing

Check the documentation testing to learn about testing.

Our social networks

Twitter

License

The MIT License. Please see License File for more information.