Download the PHP package anselmi-dev/flashed without Composer

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

Flashed

Latest Version on Packagist License Total Downloads

Flashed is a tiny solution to deal with the flash session in Laravel. Its aim is to keeping simple and driver based messages styling in your views, controllers, repositories, etc.

Getting started

First of all, you have to install the package through Composer running the following command in your terminal:

Once composer is done, add the package service provider in the providers array in config/app.php:

Second of all, you will have to publish the vendor files shipped within this package. As so,

Third of all, you will have to specify the configuration option you wish to have for working with this package. So far, the package was made to work with Twitter bootstrap, but you can modify this to work with any CSS styling you might need.

After running this command, you will be able to see the partial view shipped with the packages, and the configuration file. Being the second one the most important file in order for the Flashed library to work properly.

You will find a good explanation about what each of the configuration options are about. You can take a look at them clicking on here.

How it to implement it in your controllers

You have to import he flash class, as so:

Then, you can use its method to create a new flash message, as so:

The title and body are optional, so you do not have to pass both to the make method. If you do not pass a title, the default one will be used instead.

Also, you will have the ability to create five different flash messages, for examples: 'primary', 'success', 'warning', 'danger' and 'info'. You only need to invoke them like so:

Note: By default, the message type is

The view shipped out

The views included with this package can be imported like so,

And it was created to work with the default driver which is

Contributing

Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.

License

The MIT License (MIT). Please see License File for more information.

Don't forget to follow me on twitter!

Thanks!

Gustavo Ocanto. [email protected]


All versions of flashed with dependencies

PHP Build Version
Package Version
Requires php Version ~7.0|~7.1
illuminate/support Version ^5.3
illuminate/container Version ^5.3
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 anselmi-dev/flashed contains the following files

Loading the files please wait ....