PHPackages                             joshuachinemezu/ci-toastr - 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. joshuachinemezu/ci-toastr

ActiveCodeigniter-library[Utility &amp; Helpers](/categories/utility)

joshuachinemezu/ci-toastr
=========================

Codeigniter library for integrating javascript toastr

153311PHP

Since Oct 29Pushed 7y ago2 watchersCompare

[ Source](https://github.com/joshuachinemezu/ci-toastr)[ Packagist](https://packagist.org/packages/joshuachinemezu/ci-toastr)[ RSS](/packages/joshuachinemezu-ci-toastr/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

ci-toastr
=========

[](#ci-toastr)

[![Build Status](https://camo.githubusercontent.com/75070e3fa5543deac345a81f05bfefd871c2afec4af476cecf7ddba7ba1706da/68747470733a2f2f7472617669732d63692e6f72672f6a6f736875616368696e656d657a752f63692d746f617374722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/joshuachinemezu/ci-toastr)

A CodeIgniter Library to integrate javascript toastr

Have you ever been in a situation that you need to send timed notifications to your client view, notifications that you want to expire within a certain period of time.

PHP(Codeigniter) allows that feature by flashing messages to the session but in most cases, the issue is to display such messages in a fashionable and user friendly way. Wooooh I got you on this. XD

Example Scenario: You only just want to display the message with custom colors pertaining to each message This library will help you in runing such query in a very easy to use interface.

Requirements
------------

[](#requirements)

- PHP &gt;= 5.2
- CodeIgniter Application
- Valid loading of the session library

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

[](#installation)

The easiest way to install this is to clone the repo in your local disk. Then copy the src/Toaster.php file in your application/libraries Folder.

You can then load it like any other library

```
$this->load->library('toastr');

```

Or if you are using composer run

composer require joshuachinemezu/ci-toastr

Create a file in your application/views folder and name it "alert.php". Paste the following code in it.

```

        toastr.success("");

        toastr.error("");

        toastr.warning("");

        toastr.info("");

```

---

Ooooh it's getting complicated right? Don't worry one more step and we are done here

Create another file in your application/views folder and name it flash.php (Just for consistency but you can name it anything if you know your way around here). Paste the code below in it

```

```

Yeah we are through with installation. lol

Usage
-----

[](#usage)

Using it is very easy

In your controller after a task is completed, you can use any of the codes below in regards to the code flow

\-- for successful message

```
    $this->toastr->success('Your account was created successfully');

```

\-- for info message

```
    $this->toastr->info('Please check your mail to activate account');

```

\-- for warning message

```
    $this->toastr->warning('Email is required');

```

\-- for error message

```
    $this->toastr->error('Error in creating account');

```

\------- In the controller where you want the session(toastr) message to display, add --------the code below:

```
    $this->load->view('flash');

```

\-----\***\* flash is the name of the file you created in application/views folder \*\*\***----

Using the code above will display a toastr message

You see very easy to use

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity39

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.

### Community

Maintainers

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

---

Top Contributors

[![joshuachinemezu](https://avatars.githubusercontent.com/u/17992720?v=4)](https://github.com/joshuachinemezu "joshuachinemezu (11 commits)")

---

Tags

ci-toastrcodeignitercodeigniter-librarycodeigniter-toastrjavascripttoast-notificationstoastr

### Embed Badge

![Health badge](/badges/joshuachinemezu-ci-toastr/health.svg)

```
[![Health](https://phpackages.com/badges/joshuachinemezu-ci-toastr/health.svg)](https://phpackages.com/packages/joshuachinemezu-ci-toastr)
```

###  Alternatives

[alekseon/module-cleanrunningjobs

Mark running cronjobs as error if older than 3 days

2438.6k](/packages/alekseon-module-cleanrunningjobs)[arg/tagcloud

PHP Tag Cloud composer package Implementation of http://lotsofcode.github.io/tag-cloud/

101.9k2](/packages/arg-tagcloud)

PHPackages © 2026

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