Download the PHP package wp-kit/flash without Composer

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

wp-kit/flash

This is a wp-kit component that handles both frontend and admin flash notifications.

This component was built to run within an so is perfect for frameworks such as , and .

Often, Wordpress developers want to be able to use a single component the handle flashes stored in the session and their output to the client, usually after a redirect.

In Wordpress we do have the ability to forge admin notices via some hooks but there a few hoops to jump through in that you have to write quite a bit of code to handle the session storage and the output, and currently there are no hooks for front-end flashes.

Installation

If you're using , install via in the route folder, otherwise install in your driven theme folder:

Setup

Add Service Provider

Just register the service provider and facade in your providers config:

Add Facade

If you are using Themosis or another driven framework, you may want to add , simply add them to your aliases:

Add Config & View File(s)

Although a config file is not required for , we do need to publish view files and a config is needed for your .

The recommended method of installing config files for components is via command.

First, install WP CLI, and then install this component, will automatically be installed with , once installed you can run:

For more information, please visit .

Alternatively, you can place the view file(s) in your and directories manually.

Usage

Note: automatically outputs notices in admin area using the hook .

Important Don't forget to use the middleware to ensure flashes persist.

Using Facades

Using Helper Function

Looping through messages

This is just a guide of how you use use when looping through a load of flashes where you need to output markup around each flash:

Get Involved

To learn more about how to use check out the docs:

View the Docs

Any help is appreciated. The project is open-source and we encourage you to participate. You can contribute to the project in multiple ways by:

For details about contributing to the framework, please check the contribution guide.

Requirements

Wordpress 4+

PHP 5.6+

License

wp-kit/flash is open-sourced software licensed under the MIT License.


All versions of flash with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
wp-kit/config Version 2.*
illuminate/session Version ^6.0
illuminate/view Version ^6.0
wp-kit/utils Version 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 wp-kit/flash contains the following files

Loading the files please wait ....