Download the PHP package foxelabs/wp-review-notice without Composer

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

WP Review Notice

Tests PHPCS

A small, opinionated WordPress library that gently asks for a wp.org plugin review after a few days of usage. Built around a tiny set of focused, swappable collaborators so it stays trivially testable and easy to extend.

📖 Full documentation: docs.foxelabs.com

Installation

Requires PHP 7.4+ and WordPress 6.0+.

Quick start

register() is what hooks admin_notices + admin_init and seeds the show-time schedule. Calling create() without register() does nothing — useful for tests or for configuring a notice you want to render manually.

Options

Key Type Default Description
days int 7 Days to wait before showing the notice for the first time.
screens array [] Allowed admin screen IDs. Empty = every admin screen.
cap string manage_options Capability required to see and act on the notice.
classes array [] Extra CSS classes appended to the notice notice-info wrapper.
message string '' (auto-generated) Custom HTML message. Not escaped — sanitise it yourself.
action_labels array bundled labels Keys: review, later, dismiss. Set any to '' to hide that link.
prefix string slug with - → _ Storage namespace. Keys are written as {prefix}_review_{key}.

Filters

Architecture

The library is split into small collaborators, each behind an interface:

Every collaborator is constructor-injectable, so tests (and unusual integrations) can swap any single piece without forking the library.

Custom storage / rendering

Upgrading from v1

v1 → v3 is a clean break — there is no compatibility shim.

[!WARNING] 2.0.0 renamed both storage keys ({prefix}_reviews_* → {prefix}_review_*), and the library does not migrate them for you. Host plugins must move the data themselves, or the timer reseeds and every admin — including those who already dismissed — is prompted again. The 3.0.0 rebrand itself renames no keys; upgrading from 2.x needs no data migration.

See Migrating from 1.x for the migration recipe, including the ordering trap around register() seeding the new timer key.

v1 v3
Notice::get( $slug, $name, $opts ) Notice::create( $slug, $name, $opts )->register()
Constructor auto-registered on is_admin() register() is explicit
Storage keys {prefix}_reviews_time etc. {prefix}_review_time, {prefix}_review_dismissed, {prefix}_review_action
Message echoed raw Message run through wp_kses_post()
is_time() mutated storage isDue() is a pure read; start() seeds on register()
DuckDev\Reviews\ FoxeLabs\Reviews\
duckdev_reviews_notice_message filter foxelabs_reviews_notice_message

Development

CI runs PHPUnit against PHP 7.4 – 8.3 and WPCS on every push.

License

GPL-2.0-or-later — see LICENSE.


All versions of wp-review-notice with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
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 foxelabs/wp-review-notice contains the following files

Loading the files please wait ...