PHPackages                             tavicu/bootstrap-confirmation - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tavicu/bootstrap-confirmation

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

tavicu/bootstrap-confirmation
=============================

Confirmation plugin compatible with Twitter Bootstrap 3 extending Popover

1.0.7(8y ago)16314082[1 issues](https://github.com/Tavicu/bootstrap-confirmation/issues)[1 PRs](https://github.com/Tavicu/bootstrap-confirmation/pulls)MITHTML

Since Apr 3Pushed 7y ago15 watchersCompare

[ Source](https://github.com/Tavicu/bootstrap-confirmation)[ Packagist](https://packagist.org/packages/tavicu/bootstrap-confirmation)[ Docs](https://github.com/tavicu/bs-confirmation)[ RSS](/packages/tavicu-bootstrap-confirmation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)DependenciesVersions (9)Used By (0)

bootstrap-confirmation v1.0.7
=============================

[](#bootstrap-confirmation-v107)

This is a fork of ethaizone's [original code](https://github.com/ethaizone/Bootstrap-Confirmation)

with some help from [jibe914](https://github.com/jibe914/Bootstrap-Confirmation)and [MisatoTremor](https://github.com/MisatoTremor/bootstrap-confirmation)

Confirmation plugin compatible with Twitter Bootstrap 3 extending Popover

Usage
-----

[](#usage)

Create your `button or link` with the `data-toggle="confirmation"`.

```
Confirmation

```

Enable plugin via JavaScript:

```
$('[data-toggle="confirmation"]').confirmation();

```

Add options when initialized:

```
Confirmation
$('[data-toggle="confirmation"]').confirmation({
    placement: 'left'
});

```

Enable plugin on class instead of data attribute

```
Confirmation
$('.bs-confirmation').confirmation();

```

Options
-------

[](#options)

In addition to the standard bootstrap popover options, you now have access to the following options

NameTypeDefaultDescriptiontitlestring | function'Are you sure?'Default title value if none of these attribute isn't present (`data-confirmation-title`, `data-title`, `title`).btnOkClassstring | function'btn btn-sm btn-danger'Class of confirm button. Default value if `data-btn-ok-class` attribute isn't present.btnOkLabelstring | function'Delete'Label of confirm button. Default value if `data-btn-ok-label` attribute isn't present.btnOkIconstring | function'glyphicon glyphicon-ok'Icon of confirm button. Default value if `data-btn-ok-icon` attribute isn't present.btnCancelClassstring | function'btn btn-sm btn-default'Class of cancel button. Default value if `data-btn-cancel-class` attribute isn't present.btnCancelLabelstring | function'Cancel'Label of cancel button. Default value if `data-btn-cancel-label` attribute isn't present.btnCancelIconstring | function'glyphicon glyphicon-remove'Icon of cancel button. Default value if `data-btn-cancel-icon` attribute isn't present.singletonbooleantrueSet true to allow only one confirmation to show at a time.popoutbooleantrueSet true to hide the confirmation when user clicks outside of it.onShowfunctionfunction(event, element) {}Callback when popup show.onHidefunctionfunction(event, element) {}Callback when popup hide.onConfirmfunctionfunction(event, element) {}Callback when confirm button is pressed.onCancelfunctionfunction(event, element) {}Callback when cancel button is pressed.Events
------

[](#events)

Event TypeDescriptionshow.bs.confirmationThis event fires immediately when the `show` instance method is called.shown.bs.confirmationThis event is fired when the confirmation has been made visible to the user (will wait for CSS transitions to complete).hide.bs.confirmationThis event is fired immediately when the `hide` instance method has been called.hidden.bs.confirmationThis event is fired when the popover has finished being hidden from the user (will wait for CSS transitions to complete).inserted.bs.confirmationThis event is fired after the `show.bs.confirmation` event when the popover template has been added to the DOM.confirm.bs.confirmationThis event is fired when the user click confirmation button.cancel.bs.confirmationThis event is fired when the user click cancel button.```
$('[data-toggle="confirmation"]').on('confirm.bs.confirmation', function () {
    // do something…
})

```

Copyright and license
---------------------

[](#copyright-and-license)

Copyright (C) 2013 bootstrap-confirmation

Licensed under the MIT license.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community27

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 78.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~142 days

Recently: every ~206 days

Total

8

Last Release

3061d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c1606d43add7c978789a6ad98c0c5fa1e482281258e0c72e6eddaf6d1ed391b0?d=identicon)[MisatoTremor](/maintainers/MisatoTremor)

![](https://www.gravatar.com/avatar/28fe558b5870b8c6fd0e89ef178fbc91adcc56d5967abd069d3327ccd7555be2?d=identicon)[tavicu](/maintainers/tavicu)

---

Top Contributors

[![tavicu](https://avatars.githubusercontent.com/u/172068?v=4)](https://github.com/tavicu "tavicu (43 commits)")[![MisatoTremor](https://avatars.githubusercontent.com/u/3536384?v=4)](https://github.com/MisatoTremor "MisatoTremor (2 commits)")[![DeadDuck](https://avatars.githubusercontent.com/u/474456?v=4)](https://github.com/DeadDuck "DeadDuck (2 commits)")[![simivar](https://avatars.githubusercontent.com/u/828020?v=4)](https://github.com/simivar "simivar (2 commits)")[![alexdresko](https://avatars.githubusercontent.com/u/333022?v=4)](https://github.com/alexdresko "alexdresko (1 commits)")[![addiks](https://avatars.githubusercontent.com/u/3450330?v=4)](https://github.com/addiks "addiks (1 commits)")[![pavchip](https://avatars.githubusercontent.com/u/12133071?v=4)](https://github.com/pavchip "pavchip (1 commits)")[![pierresh](https://avatars.githubusercontent.com/u/7520095?v=4)](https://github.com/pierresh "pierresh (1 commits)")[![BojanKogoj](https://avatars.githubusercontent.com/u/634075?v=4)](https://github.com/BojanKogoj "BojanKogoj (1 commits)")[![cklab](https://avatars.githubusercontent.com/u/980022?v=4)](https://github.com/cklab "cklab (1 commits)")

---

Tags

bootstrapconfirmationbootstrap confirmationbootstrap dialog

### Embed Badge

![Health badge](/badges/tavicu-bootstrap-confirmation/health.svg)

```
[![Health](https://phpackages.com/badges/tavicu-bootstrap-confirmation/health.svg)](https://phpackages.com/packages/tavicu-bootstrap-confirmation)
```

###  Alternatives

[kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

1163.2M59](/packages/kartik-v-yii2-editable)[kartik-v/yii2-date-range

An advanced Yii 2 date range picker input for based on bootstrap-daterangepicker plugin.

894.4M41](/packages/kartik-v-yii2-date-range)[kartik-v/yii2-dialog

An asset bundle for bootstrap3-dialog for Yii 2.0 framework.

496.2M18](/packages/kartik-v-yii2-dialog)[kartik-v/yii2-widget-rating

A Yii2 widget for the simple yet powerful bootstrap-star-rating plugin with fractional rating support (sub repo split from yii2-widgets)

444.1M8](/packages/kartik-v-yii2-widget-rating)[kartik-v/yii2-widget-timepicker

Enhanced Yii2 wrapper for the bootstrap timepicker plugin (sub repo split from yii2-widgets)

404.9M14](/packages/kartik-v-yii2-widget-timepicker)[kartik-v/yii2-widget-touchspin

A Yii2 wrapper widget for the Bootstrap Switch plugin to use checkboxes &amp; radios as toggle touchspines (sub repo split from yii2-widgets)

184.1M6](/packages/kartik-v-yii2-widget-touchspin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
