PHPackages                             odannyc/laravel-alertify - 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. odannyc/laravel-alertify

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

odannyc/laravel-alertify
========================

An alertify package for Laravel

1.0.0(8y ago)76.2k3[3 issues](https://github.com/odannyc/laravel-alertify/issues)[1 PRs](https://github.com/odannyc/laravel-alertify/pulls)PHPCI failing

Since Jul 17Pushed 3y ago2 watchersCompare

[ Source](https://github.com/odannyc/laravel-alertify)[ Packagist](https://packagist.org/packages/odannyc/laravel-alertify)[ RSS](/packages/odannyc-laravel-alertify/feed)WikiDiscussions master Synced today

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

laravel-alertify
================

[](#laravel-alertify)

An alerts library for Laravel using alertify

```
alertify()->success("The laravel-alertify package is awesome!");
```

[![laravel-alertify](/assets/images/main.png?raw=true)](/assets/images/main.png?raw=true)

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

[](#installation)

This package uses composer, so require it like so:

```
composer require odannyc/laravel-alertify

```

You'll also need to pull in the `alertify.js` project. This is located here:

You can use NPM:

```
npm install --save alertify.js

```

Or include the CDN version of it in your `app.blade.php` template. (File may vary on your Laravel installation):

```

```

Include the service provider in `config/app.php`:

```
'providers' => [
    odannyc\Alertify\AlertifyServiceProvider::class,
];
```

Also, include the Alias in `config/app.php`

```
'aliases' => [
    'Alertify' => odannyc\Alertify\Alertify::class,
];
```

Then, in the template of your Laravel installation, include the view anywhere in the body of your HTML:

```
@include('alertify::alertify')
```

Usage
-----

[](#usage)

**Make sure you include `alertify.js` prior to using this package. (See installation instructions above)**

You can call the `alertify()` helper function before returning/redirecting to a view:

```
/**
 * Update the specified resource in storage.
 *
 * @param  \Illuminate\Http\Request  $request
 * @return \Illuminate\Http\Response
 */
public function update(Request $request)
{
    alertify()->success('Updated record successfully');

    // You can also add multiple alerts!
    alertify('You are awesome!');

    return redirect()->back();
}
```

You can either use the `alertify()` helper or use the static Facade:

```
Alertify::standard('I like alerts')
```

There are 3 types of alerts:

[![laravel-alertify](/assets/images/types.png?raw=true)](/assets/images/types.png?raw=true)

```
alertify('this is a standard alert (shows black)');
alertify()->success('this is a success alert (shows green)');
alertify()->error('this is an error alert (shows red)');
```

You can also show multiple alerts by calling that function multiple times:

```
alertify('alert 1');
alertify('alert 2');
```

You can save the alert and edit it based on logic:

```
$alert = alertify('i am an alert');
if ($error) {
    $alert->error();
} else {
    $alert->success();
}
```

There's many options you can add per alert:

```
// Show the alert for 5000 milliseconds and then dismisses itself (default: 4000)
alertify('delayed 5 seconds')->delay(5000);

// Alert stays displayed with no timeout
alertify('i stay displayed on the screen')->persistent();

// Alert can be clicked to be dismissed
alertify('i can be clicked to be dismissed')->clickToClose();

// You can position alerts (default: 'top right')
alertify('i am on the bottom left')->position('bottom left');

// You can attach the alert to some other HTML element (default: 'document.body')
alertify('i am displayed on a different parent')->attach('.some-html-accessor')
```

You can also daisy chain options:

```
alertify()->success('i am daisychained')->delay(10000)->clickToClose()->position('bottom right');
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance11

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

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

3273d ago

### Community

Maintainers

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

---

Top Contributors

[![odannyc](https://avatars.githubusercontent.com/u/12864641?v=4)](https://github.com/odannyc "odannyc (19 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

alertifyalertslaravellaravel-5-packagelaravel-alerts

### Embed Badge

![Health badge](/badges/odannyc-laravel-alertify/health.svg)

```
[![Health](https://phpackages.com/badges/odannyc-laravel-alertify/health.svg)](https://phpackages.com/packages/odannyc-laravel-alertify)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[illuminate/routing

The Illuminate Routing package.

1419.2M3.0k](/packages/illuminate-routing)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)

PHPackages © 2026

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