Download the PHP package cornford/alerter without Composer

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

Fast Alerting in Laravel With Templates

Latest Stable Version Total Downloads Build Status Scrutinizer Code Quality

For Laravel 4.x, check version 1.0.0

Think of Alerter as an easy way to manage user alerting, providing a variety of alert options to speed up user alerting. These include:

It comes with a variety of template pre-built for some of the most popular CSS Frameworks. These include:

It is also full customisable, allowing new templates to be created, along with new alert types too.

Installation

Begin by installing this package through Composer. Edit your project's composer.json file to require cornford/alerter.

"require-dev": {
    "cornford/alerter": "2.*"
}

Next, update Composer from the Terminal:

composer update --dev

Once this operation completes, the final step is to add the service provider. Open app/config/app.php, and add a new item to the providers array.

'Cornford\Alerter\AlerterServiceProvider'

That's it! You're all set to go.

Usage

It's really as simple as using the Alerter class in any Controller / Model / File you see fit with:

use Cornford\Alerter\Alert;

This will give you access to

Create

The create method allows you to create a new Alert with any of the pre-built types, or specify your own.

Alert::create(Alert::TYPE_ERROR, 'This is an error message!')->display();
Alert::create('Custom', 'This is a custom message!')->display();

Both the type and content options are required.

Error

The error method allows you to create a new Alert Error without specifying type.

Alert::error('This is an error message!')->display();

The content option is required.

Info

The info method allows you to create a new Alert Info without specifying type.

Alert::info('This is an info message!')->display();

The content option is required.

Warning

The warning method allows you to create a new Alert Warning without specifying type.

Alert::warning('This is a warning message!')->display();

The content option is required.

Success

The success method allows you to create a new Alert Success without specifying type.

Alert::Success('This is a success message!')->display();

The content option is required.

None

The none method allows you to create a new Alert None without specifying type.

Alert::None('This is a none message!')->display();

The content option is required.

License

Alerter is open-sourced software licensed under the MIT license


All versions of alerter with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
illuminate/support Version 5.*
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 cornford/alerter contains the following files

Loading the files please wait ....