PHPackages                             cngmc/dialogboxbslw - 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. cngmc/dialogboxbslw

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

cngmc/dialogboxbslw
===================

Dialog Box Bootstrap Livewire

01PHP

Since Aug 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/cngmc/DialogBoxBsLw)[ Packagist](https://packagist.org/packages/cngmc/dialogboxbslw)[ RSS](/packages/cngmc-dialogboxbslw/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Dialog Box Bs(Bootstrap) Lw(Livewire)
=====================================

[](#dialog-box-bsbootstrap-lwlivewire)

- version: 1.0 beta

    bla bla..

Installation, Requirements and Usage Instructions
-------------------------------------------------

[](#installation-requirements-and-usage-instructions)

### Installation

[](#installation)

```
composer require cngmc/dialogboxbslw

```

### Requirements

[](#requirements)

- [Livewire](https://livewire.laravel.com/)
- Bootstrap 5
- jQuery

### Basic Usage Instructions

[](#basic-usage-instructions)

Sample Livewire component (livewire/sample.php)

```
    public function boot(): void
    {
        $dialogBox = [
            "box" => [
                'name' => 'sample',
                'id' => 'dialogbox-sample', // Bootstrap modal ID
                "contents" => [
                    'title' => 'Sample Title',
                    'body' => "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
                    'cancelButtonText' => "Cancel",
                    'actionButtonText' => "Accept"
                ],
            ],
            'acceptFn' => function () {
                return $this->accept($this->dialogBoxes['sample']['box']['params'][0], $this->dialogBoxes['sample']['box']['params'][1]);
            },
            'cancelFn' => function () {
                return $this->cancel($this->dialogBoxes['sample']['box']['params'][0], $this->dialogBoxes['sample']['box']['params'][1]);
            }
        ];

        $this->setDialogBox('sample', $dialogBox);
    }

    private function accept($param1, $param2)
    {
        return 'accepted';
    }

    private function cancel($param1, $param2)
    {
        return 'canceled';
    }
```

Sample Livewire component blade file (livewire/sample.blade.php)

```
    Open Dialog

```

Advanced Usage
--------------

[](#advanced-usage)

### Customization View

[](#customization-view)

```
php artisan vendor:publish --tag=dialogboxbslw --force

```

You can make the necessary adjustments for customized component design in the resources/views/vendor/dialogboxbslw/components/dialog.blade.php

### Using dynamic data in dialog

[](#using-dynamic-data-in-dialog)

Sample Livewire component (sample.php)

```
    use DialogBox {
        DialogBox::dialogBoxOpenFn as private parentDialogBoxOpenFn;
    }

    private function dialogBoxOpenFn($name, $params): bool
    {
        $this->dialogBoxes[$name]['box']['contents']['title'] = 'Custom Title Params 0: ' . $params[0]. ' Params 1: ' . $params[1];        $this->dialogBoxes[$name]['box']['contents']['title'] = 'Custom Title Params 0: ' . $params[0]. ' Params 1: ' . $params[1];

        $this->parentDialogBoxOpenFn($name);
    }

```

### Testing

[](#testing)

```
vendor/bin/phpunit
```

### License

[](#license)

The DialogBoxBsLw package is open-sourced software licensed under the [MIT license](./license).

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1929189?v=4)[Can](/maintainers/cngmc)[@cngmc](https://github.com/cngmc)

---

Top Contributors

[![cngmc](https://avatars.githubusercontent.com/u/1929189?v=4)](https://github.com/cngmc "cngmc (3 commits)")[![goemec](https://avatars.githubusercontent.com/u/129772132?v=4)](https://github.com/goemec "goemec (1 commits)")

### Embed Badge

![Health badge](/badges/cngmc-dialogboxbslw/health.svg)

```
[![Health](https://phpackages.com/badges/cngmc-dialogboxbslw/health.svg)](https://phpackages.com/packages/cngmc-dialogboxbslw)
```

###  Alternatives

[bornfreee/tactician-domain-events

A Plugin for Tactician command bus library to work with the recorded Domain Events

25195.9k1](/packages/bornfreee-tactician-domain-events)

PHPackages © 2026

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