Download the PHP package sciactive/pnotify without Composer

On this page you can find all versions of the php package sciactive/pnotify. 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 pnotify

v4:
v5:

A JavaScript/TypeScript notification, confirmation, and prompt library.

Notifications can display as toast style, snackbar style, banners, dialogs, alerts, or desktop notifications (using the Web Notifications spec) with fall back to an in-browser notice.

PNotify provides a unique notification flow called modalish that provides a good user experience, even when many notifications are shown at once.

Demos

Latest Stable - http://sciactive.com/pnotify/

Development - https://sciactive.github.io/pnotify/

Table of Contents

Getting Started

You can get PNotify using NPM or Yarn. (You can also use jsDelivr.)

You should install the packages you need individually. Alternatively, you can install all of them at once with the pnotify package.

Documentation for Old Versions

Migrating from PNotify 4

Installation

In addition to the JS and CSS, be sure to include a PNotify style.

Svelte

PNotify in Svelte.

React

PNotify in React.

Angular

PNotify in Angular.

For IE support, see this issue.

Angular (Injectable)

PNotify in Angular (Injectable)

AngularJS

PNotify in AngularJS.

Vanilla JS (ES5)

PNotify in vanilla ES5

Vanilla JS (ES6)

PNotify in vanilla ES6+

Styles

Bright Theme

The default theme, Bright Theme. Supports dark mode. Include the CSS file in your page:

Or if you're using a packager that imports CSS:

Material

The Material theme. Supports dark mode. Requires material-design-icons and optionally the Roboto font. Include the CSS file in your page:

Or if you're using a packager that imports CSS:

Then set the default styling and icons to 'material':

Material Icons

To use the Material Style icons, include the Material Design Icons Font in your page.

Or if you're using a packager that imports CSS:

Alternatively, you can use the Google Fonts CDN:

Or a clone from jsDelivr:

Roboto Font

The Material style uses the "400" and "500" weights of Roboto. It will fall back to "sans-serif".

You can use the Google Font CDN:

Angeler

The Angeler theme. Supports dark mode. Include the CSS file in your page:

Or if you're using a packager that imports CSS:

It's recommended that you set the close button to not hide by default, as that is how Angela designed the theme to look best.

You can use the angeler-extended class to use the alternate, more spacious styling for the Angeler theme. This works great for big, center of the page notices, like page errors.

:info: It's named after Angela Murrell, who designed it, and it's pronounced like An-jel-er.

Bootstrap

Styling for the popular Bootstrap library. Doesn't support dark mode (but you can use a Bootstrap theme).

Include the CSS:

Or if you're using a packager that imports CSS:

Include the appropriate line(s) from below:

Then set it as a default module:

Change the "4" to "3" for Bootstrap 3, and also import and set PNotifyGlyphicon to use Bootstrap 3's glyphicons. PNotifyGlyphicon doesn't have any CSS to import.

Font Awesome 4 (Icons)

To set Font Awesome 4 as the default icons, include the appropriate line from below:

Then set it as a default module:

Font Awesome 5 (Icons)

To set Font Awesome 5 as the default icons, include the appropriate line from below:

Then set them as default modules:

If you don't want to use Font Awesome 5 as your default icons, but you still want support for them in your notices, you should include only the @pnotify/font-awesome5-fix package. Font Awesome 5 does some mysterious magic in its code that breaks PNotify. This module has a workaround for it.

Creating Notices

To make a notice, use the factory functions. Each one takes an options object as its only argument. It will return a PNotify notice instance.

Options

PNotify options and default values.

defaults = {

}

Learn more about stacks.

Changing Defaults

Adding/removing a module to the defaults:

Changing a module's defaults:

Modules

Creating Notices with Modules

Besides using the default modules, you can remove or add modules and set their options when you call a notice. The modules Map has modules themselves as keys, and an options object as values.

TypeScript

Using modules with TypeScript requires types assertions for module entries, and possibly the downlevelIteration TypeScript option.

Desktop Module

Notifications that display even when the web page is not visible. Implements the Web Notifications spec.

If the user's browser doesn't support Web Notifications, or they deny permission to show them, they will see regular in-browser notices, unless fallback is false.

PNotifyDesktop.defaults = {

}

Mobile Module

Notices on mobile phones and tablets.

PNotifyMobile.defaults = {

}

Countdown Module

Give an indication of how much time is left.

PNotifyCountdown.defaults = {

}

Animate Module

Fluid CSS animations using Animate.css.

PNotifyAnimate.defaults = {

}

The Animate module also creates a method, attention(aniClass, callback), on notices which accepts an attention grabber class and an animation completed callback.

Confirm Module

Confirmation dialogs and prompts.

PNotifyConfirm.defaults = {

}

Because the default buttons fire notice events on confirmation and cancellation, you can listen for them like this:

Paginate Module

Provide an index and count of the notices in the stack, and/or buttons to let the user page through them.

PNotifyPaginate.defaults = {

}

Exported Methods and Properties

Instance Methods and Properties

Events

Event objects have a detail property that contains information about the event, including a reference to the notice itself.

From the Svelte Component API.

Don't use these. I'm putting them in here to document that you should not use them. That way, if you do, and you file a bug report, I can point to this section in the README, and tell you that you did a bad.

Stacks

A stack is an instance of the Stack class used to determine where to position notices and how they interact with each other.

Stack options and their defaults:

Stack behavior:

Stack methods:

There are other methods on the stack class, but you shouldn't use them. They're meant to be internal, so they begin with an underscore.

Stack properties:

All of the options are properties as well.

Stack events and event.detail contents:

:warning: Calling something like alert({text: 'notice', stack: new Stack({dir1: 'down', firstpos1: 25})}); may not do what you want. It will create a notice, but that notice will be in its own stack and will overlap other notices.

Example Stack

Here is an example stack with comments to explain. You can play with it here.

If you just want to position a single notice programmatically, and don't want to add any other notices into the stack, you can use something like this:

Features

Browser Compatibility and Build Size

PNotify provides prebuilt JS files, and those files are run through Babel to provide compatibility with older browsers. As such, their build size grows to maintain compatibility. If this is not acceptable, you can build much smaller (~80% of original) files yourself with:

You should now have dist folders in all the packages with smaller (but only compatible with newer browsers) build files. Note that this doesn't apply to Svelte projects, because they build the PNotify *.svelte source files anyway.

Licensing and Additional Info

Copyright 2009-2020 Hunter Perrin Copyright 2015 Google, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

See http://sciactive.com/pnotify/ for more information, and demos.


All versions of pnotify 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 sciactive/pnotify contains the following files

Loading the files please wait ....