Download the PHP package takshak/alertt without Composer

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

Introduction

This package has HTML, CSS and some lines of JS and can be used to display notifications / alerts in frontend. This will work without any css frameworks like: Bootstrap, Materialize, etc.

Quick Start

Use given command to import the package in your project

composer require takshak/alertt

You can use it with a helper function or via facade:

alertt()->info('Your notification message goes here');

In via Alertt facade

\Alertt::info('Your notification message goes here');

You can set the parameters during rediretion as well:

return redirect('any/url')->withInfo('Your notification message goes here');

OR

return to_route('any/url')->withErrors('Your error message goes here');

To display the alertt box you need to add <x-alertt-alert /> component in you layout or any other blade file where required.

Available methods

Method Default Description
info() Display your message in light blue color
danger() Displays message in red color
success() Displays message in light green color
primary() Displays message in blue color
dark() Displays message in black color
warning() Displays message in yellow color
title() depends on alert type Setup the message in header / title section of alert box
footer() curent timestamp Setup the message in footer section of alert box
timeout() 6000 Duration in miliseconds, how long will it be displayed to screen

An example of alertt snippent via facade and helper. All the functions need not to be called. You can setup your own default values and pass only the message.

\Alertt::title('You have a new notification')
        ->info('Content of message goes here')
        ->footer('link of the target page')
        ->timeout(6000);
// or
alert()->title('You have a new notification')
        ->info('Content of message goes here')
        ->footer('link of the target page')
        ->timeout(6000);

You can setup the parameters during redirection without using alertt() or \Alertt. You need to chain all the functions prepending 'with', like:- withSuccess(), withTitle(), withFooter() and so on. Example:

return redirect()->route('name.of.route')
            ->withTitle('You have a new notification')
            ->withSuccess('Content of message goes here')
            ->withFooter('link of the target page')
            ->withTimeout(6000);

Setting default values

To settup your default header. footer messages, default timeout, positions, will can set it via config file. Or in cany case if you want to change the html / css code you will find the blade file in resources/views/components/alertt.blade.php. First off all publish the configuration file or view file or may be both and try to settup you values.

You will able to change position, font size. colors and other stuffs from configuration file.


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

Loading the files please wait ....