Download the PHP package the-muda-organization/notify-bootstrap without Composer

On this page you can find all versions of the php package the-muda-organization/notify-bootstrap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package notify-bootstrap

:exclamation::exclamation::exclamation: Bootstrap 5 update coming soon!:exclamation::exclamation::exclamation:


Notify Bootstrap

Stylish and modern notifications - small jQuery plugin based on Bootstrap and Font Awesome

New version based on Bootstrap 5 coming soon!


Status

GitHub Version License

Github Star Github Fork

CSS gzip size JS gzip size


View DEMO



Table of contents


Quick Start

Several options are available:

What's included

Within the download you'll find the following directories and files, logically grouping common assets and providing both compiled and minified variations. You'll see something like this:

There are several dependencies. See below for How to Use


Bugs and feature requests

Have a bug or a feature request? Before opening a new issue search for existing and closed issues. If your problem or idea is not addressed yet, open a new issue.


Installation

  1. Download and copy files to your project
  2. INSTALL DEPENDENCIES:
    • Bootstrap CSS (required)
    • Bootstrap JS (popper.js NOT required)
    • Font Awesome (recommended - however you can easily customize with your icon set)
  3. You can easily customize CSS and JS (colors, position, time notification is visible, brand icons etc)
  4. Add CSS and JS to your project:

How to Use

Notify is easy to use. Call the function and provide type, title and message:

Example with jQuery:

Example with javascript:

Notify has a style independend from Bootstrap toast. You can use notify and bootstrap toast component at the same time.

Notify javascript rely 100% on Bootstrap. Check out bootstrap toast component


Features

Position:

set in CSS at Line 13 & 14. Use top:0 or bottom:0 AND left:0 or right:0

Type:

You can add as many types as you need and each type can have custom style.

Type is required. If you leave it empty no icon will be displayed but you will see a placeholder from Font Awesome indicating incorrect icon.

Notify has a few types added as default in several categories:

GENERAL:
- info
- warning
- error
- success
- other

BRANDS:
- facebook
- github
- instagram
- linkedin
- paypal
- skype
- twitter
- wikipedia
- youtube

CUSTOM:
- spinner

FONT AWESOME:
- Any icon can be added. Just use icon name as type: 'times', 'ban', 'user' etc.
- If you want to use other icon type (regular, duotone, light or brand) change line 53 in js file.

To add more types add new case 'newCustomType': in javascript switch with custom icon and set custom CSS as .toast[data-type="newCustomType"]{}

Title:

Anything can be added as title but text is recommended. Title CAN be empty.

Message:

Anything can be added as message but text is recommended. Message as well as title CAN be empty.

Autohide:

Notification can hide when you click the close button or after a period of time.

Notify JS Line 60 - autohide - set true or false
Notify JS Line 61 - custom time to hide notification. Currently it's 5000ms.

Animation:

There is no custom animation. Notify uses Bootstrap to show and hide toasts. Feel free to add your own.

Custom toast:

Notify uses custom CSS so it is possible to use Bootstrap. All custom style is based on [data-type] as type should be declared in each notification.

Custom Features:

Notify has only basic options so you can easily customize all the code. You can add custom timing for each notification, images, buttons with links, anything you want. In Notify Line 7 just add more event objects and call them with notify(); function!


CSS Classes

CSS class Explanation
.toast-container main container for stacking toasts. Set position here.
.toast toast - override from bootstrap
.toast[data-type] toast - style for notify not affecting bootstrap toast
.toast[data-type] .toast-content toast content
.toast[data-type] .toast-icon svg toast svg icon
.toast[data-type] .toast-body toast body - it contains title and message
.toast[data-type] .toast-body strong toast title
.toast[data-type] .toast-body div toast message
.toast[data-type] .close toast close button
.toast[data-type="XXXXXXX"] custom style for a specific notification type (success, error, info etc)

Javascript customize


Versioning

Notify Bootstrap will be maintained under the Semantic Versioning guidelines as much as possible. Releases will be numbered with the following format:


Changelog

For last releases see detailed CHANGELOG.


Team


Code of conduct

We will behave ourselves if you behave yourselves. For more details see our CODE_OF_CONDUCT.md.


Copyright and license

Code and documentation copyright 2017-2020 The MUDA Organization.

Code released under the MIT License.



All versions of notify-bootstrap with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package the-muda-organization/notify-bootstrap contains the following files

Loading the files please wait ....