PHPackages                             tolrac/cakephp-5-sweet-alert-helper - 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. tolrac/cakephp-5-sweet-alert-helper

ActiveCakephp-plugin

tolrac/cakephp-5-sweet-alert-helper
===================================

SweetAlertHelper plugin for CakePHP

1.0.0(1y ago)02MITPHP

Since Feb 21Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/Tolrac/sweet-alert-cakephp)[ Packagist](https://packagist.org/packages/tolrac/cakephp-5-sweet-alert-helper)[ RSS](/packages/tolrac-cakephp-5-sweet-alert-helper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

SweetAlertHelper plugin for CakePHP
===================================

[](#sweetalerthelper-plugin-for-cakephp)

Requirements
============

[](#requirements)

- CakePHP 5.x

Installation
------------

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require tolrac/cakephp-5-sweet-alert-helper

```

Usage
=====

[](#usage)

In your `src/View/AppView.php`, put the helpers

```
public function initialize()
{
	...
	$this->loadHelper('SweetAlertHelper.Form');
	$this->loadHelper('SweetAlertHelper.Html');
	...
}

```

In your 'src/Application.php', load the plugin in the `bootstrap()` method:

```
public function bootstrap(): void
{
	...
	$this->addPlugin('SweetAlertHelper');
	...
}

```

and in the template layout (or in the views), load the js file:

```

```

Then you can use the `confirm` option of

- `postLink` method of `FormHelper`
- `link` method of `HtmlHelper`to show a Sweet Alert at the place of a normal alert, with your message:

```

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance48

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

446d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/70d1acca7f7875d090e44fea0c8915fb053147ef6838dc9c38bbdcfac05338b0?d=identicon)[Tolrac](/maintainers/Tolrac)

---

Top Contributors

[![Tolrac](https://avatars.githubusercontent.com/u/4431340?v=4)](https://github.com/Tolrac "Tolrac (19 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tolrac-cakephp-5-sweet-alert-helper/health.svg)

```
[![Health](https://phpackages.com/badges/tolrac-cakephp-5-sweet-alert-helper/health.svg)](https://phpackages.com/packages/tolrac-cakephp-5-sweet-alert-helper)
```

###  Alternatives

[friendsofcake/cakepdf

CakePHP plugin for creating and/or rendering Pdfs, several Pdf engines supported.

3752.1M3](/packages/friendsofcake-cakepdf)[cakephp/bake

Bake plugin for CakePHP

11211.2M158](/packages/cakephp-bake)[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

338920.1k32](/packages/dereuromark-cakephp-tools)[dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

308850.3k14](/packages/dereuromark-cakephp-queue)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1862.1M27](/packages/dereuromark-cakephp-ide-helper)[dereuromark/cakephp-tinyauth

A CakePHP plugin to handle user authentication and authorization the easy way.

129228.6k10](/packages/dereuromark-cakephp-tinyauth)

PHPackages © 2026

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