Download the PHP package rumur/wp-notice without Composer

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

wp-notice

The small OOP wrapper that allows working with WordPress notices nice and clean.

Minimum Requirements:

Installation

Themosis 2.x

Sage 10.x

Register into WordPress

It registers the renderer functionality, that will display all notifications added by the package.

How to use?

There are several types that could be used. Notice::info(...), Notice::error(...), Notice::warning(...), Notice::success(...).

Each of these methods could take as a param either a string or Noticeable or \WP_Error instances or regular callable function rmr_notice_as_function that returns a string.

Available methods

Recurrence Description
->nag(); Makes nag notice
->dismissible(); Makes be closable/dismissible
->showWhenRole(...string); Tells to show when the current user role is mentioned
->showWhenRoleNot(...string); Tells to show when the current user role is not in a mentioned list
->showWhenPage(...string); Tells to show when the current screen page is mentioned
->showWhenPageNot(...string); Tells to show when the current screen page is not in a mentioned list
->showWhenTaxonomy(...string); Tells to show when the current screen is for specific taxonomies
->showWhenTaxonomyNot(...string); Tells to show when the current screen is not for taxonomies mentioned in a list
->showWhenPostType(...string); Tells to show when the current screen is for specific post types
->showWhenPostTypeNot(...string); Tells to show when the current screen is not for post types mentioned in a list
->showWhenUser(...int/WP_User); Tells to show when the current user is mentioned
->showWhenUserNot(...int/WP_User); Tells to show when the current user is not in a mentioned list
->showLater(...string/int(timestamp)/DateTimeInterface); Tells to show the notice later when it's time
->showUntil(...string/int(timestamp)/DateTimeInterface); Tells to show the notice until it's time

Note, that all conditions are using OR operator to check, but if there is a time condition than it'll switch to AND instead.

To delete all traces when uninstalling plugin/theme which is used the package.

In order to delete all traces just call the flush method, like this Notice::flush().

License

This package is licensed under the MIT License - see the LICENSE.md file for details.


All versions of wp-notice with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
ext-json Version *
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 rumur/wp-notice contains the following files

Loading the files please wait ....