Download the PHP package arkraft/alerts without Composer

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

alerts

Laravel 4 Alerts provider to add bootstrap alerts from controllers using the great bootstrap-growl jquery plugin by Nick Larson.

Installation

Install with composer

Register the service provicer in app/config/app.php in the providers array

Add an alias under the alias array in app/config/app.php

And the last step ist to publish the assets. Execute the following command in the root of your project

This will add the jquery.bootstrap-growl.min.js to your public/packages/jquery directory. Usage

Now you can add alerts from your controller. The following message types are possible

All methods have the same parameters:

will an the following message example info message

Displaying the alerts

Add

to your sites javascripts.

Configuration

You can export the default configuration with

This will export the following array to 'config/packages/arkraft/alerts/config.php'

The configuration values:

The changes on this configuration file are global for all boxe. To change the configuration for a single alert you can use the configuration parameter like this

This will show a message wich will stay in the center of the screen until it is closed with the close button on the right. Configurations passed as a parameter will overwrite the default configuration.


All versions of alerts with dependencies

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

Loading the files please wait ....