PHPackages                             bgaze/bootstrap4-dialogs - 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. bgaze/bootstrap4-dialogs

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

bgaze/bootstrap4-dialogs
========================

A collection of flexible dialogs based on Bootstrap 4 modals

2.0.0(6y ago)9504MITHTMLCI failing

Since Mar 17Pushed 5y ago2 watchersCompare

[ Source](https://github.com/bgaze/bootstrap4-dialogs)[ Packagist](https://packagist.org/packages/bgaze/bootstrap4-dialogs)[ Docs](https://www.bgaze.fr/bootstrap4-dialogs)[ RSS](/packages/bgaze-bootstrap4-dialogs/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)DependenciesVersions (11)Used By (0)

Bootstrap 4 dialogs
===================

[](#bootstrap-4-dialogs)

[![GitHub license](https://camo.githubusercontent.com/4b7068c45395c043fa72d0895be64912171a4ae54b2844f7aecb002cc20d3b93/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6267617a652f626f6f747374726170342d6469616c6f6773)](https://github.com/bgaze/bootstrap4-dialogs/blob/master/LICENSE)[![Maintenance](https://camo.githubusercontent.com/9c933c1d3366fecc63fee39b9614520e5362c578c4ef166ccbc1691f6a249cda/68747470733a2f2f696d672e736869656c64732e696f2f6d61696e74656e616e63652f7965732f32303230)](https://camo.githubusercontent.com/9c933c1d3366fecc63fee39b9614520e5362c578c4ef166ccbc1691f6a249cda/68747470733a2f2f696d672e736869656c64732e696f2f6d61696e74656e616e63652f7965732f32303230)[![GitHub release (latest by date)](https://camo.githubusercontent.com/2e9e86629945a0d276b51d82170f9dc0cb2486233ddc054955578a9f974e7c08/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6267617a652f626f6f747374726170342d6469616c6f6773)](https://github.com/bgaze/bootstrap4-dialogs/releases)[![GitHub stars](https://camo.githubusercontent.com/1e4f98949f1d0c671c93e820eed82a383e43fa6fbc986099671bf84d1a34cab5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6267617a652f626f6f747374726170342d6469616c6f6773)](https://github.com/bgaze/bootstrap4-dialogs/stargazers)[![npm](https://camo.githubusercontent.com/037f57c9aac142df7f6ec863eff52597f2c1bb7eb672d6af93bf41c4481b9c9d/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f64742f6267617a652d626f6f747374726170342d6469616c6f6773)](https://www.npmjs.com/package/bgaze-bootstrap4-dialogs)

[![bootstrap4-dialogs](./readme.png)](./readme.png)

BSD is a tiny and flexible collection of dialog popups based on Bootstrap 4 modals.
Custom dialogs can be easily defined, in addition to built-in ones (alert, confirm and prompt).

Documentation
-------------

[](#documentation)

Full documentation and examples are available at

Quick start
-----------

[](#quick-start)

BSD requires jQuery v1.9+ and Bootstrap 4 modal component.

Several quick start options are available:

- Install with npm: `npm i bgaze-bootstrap4-dialogs`
- Install with yarn: `yarn add bgaze-bootstrap4-dialogs`
- Install via CDN: `https://cdn.jsdelivr.net/gh/bgaze/bootstrap4-dialogs@2/dist/bootstrap4-dialogs.min.js`
- Install with Composer: `composer require bgaze/bootstrap4-dialogs`
- Download the latest release:
- Clone the repo: `git clone https://github.com/bgaze/bootstrap4-dialogs.git`

Just make sure to include required dependencies into your app, then include the library:

- If installed as a module, import it: `const bsd = require("bgaze-bootstrap4-dialogs");`
- Otherwise include the script into your page: ``

That's it! Now you can use the globally declared `bsd` object.

```
// Alert
bsd.alert('Lorem ipsum dolor sit amet');

// Confirm
bsd.confirm('Lorem ipsum dolor sit amet', function (confirmed) {
    if (confirmed) {
        // ...
    }
});

// Prompt
bsd.prompt('Lorem ipsum dolor sit amet', function (value) {
    if (value !== null) {
        if (value.trim() === '') {
            // Prevent dialog closing, as provided value is empty.
            return false;
        }

        console.log(value);
    }
});
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~46 days

Recently: every ~103 days

Total

10

Last Release

2204d ago

Major Versions

1.0.8 → 2.0.02020-05-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f4a5f965ee3485d7f2c78450a371d363027a7f10935d6559869874a584d5402?d=identicon)[bgaze](/maintainers/bgaze)

---

Top Contributors

[![bgaze](https://avatars.githubusercontent.com/u/985214?v=4)](https://github.com/bgaze "bgaze (38 commits)")

---

Tags

alertbootstrap4confirmdialogspromptjavascriptjquerybootstrapalertconfirmpromptdialogs

### Embed Badge

![Health badge](/badges/bgaze-bootstrap4-dialogs/health.svg)

```
[![Health](https://phpackages.com/badges/bgaze-bootstrap4-dialogs/health.svg)](https://phpackages.com/packages/bgaze-bootstrap4-dialogs)
```

###  Alternatives

[snapappointments/bootstrap-select

The jQuery plugin that brings select elements into the 21st century with intuitive multiselection, searching, and much more. Now with Bootstrap 4 support.

9.8k480.4k3](/packages/snapappointments-bootstrap-select)[froala/wysiwyg-editor

A beautiful jQuery WYSIWYG HTML rich text editor. High performance and modern design make it easy to use for developers and loved by users.

5.4k306.9k3](/packages/froala-wysiwyg-editor)[onokumus/metismenu

A jQuery menu plugin

2.0k263.3k5](/packages/onokumus-metismenu)[kartik-v/bootstrap-popover-x

Bootstrap Popover Extended - Popover with modal behavior, styling enhancements and more.

1143.4M3](/packages/kartik-v-bootstrap-popover-x)[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-dialog

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

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

PHPackages © 2026

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