Download the PHP package plugin/yard-page-guard without Composer

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

Yard Page Guard

Description

Assign content owners to WordPress pages (or other post types), allowing them to mark pages as 'verified' and receive automated review reminders based on user-defined dates.

Installation through /wp-admin

  1. Upload plugin .zip through the 'Upload plugin' button
  2. Activate the plugin

Installation through Composer

  1. Install this package with Composer:

  2. Activate the plugin through the 'Plugins' menu in WordPress

Security

Access to the metaboxes is granted to all users with the edit_pages capability initially. Once an author and content owner are connected to a post object, only these two entities will have access. Besides that, admin roles (see item #3 under the Hooks paragraph) also have access to the metaboxes. As well as the admin overview

Configuration

Add the following constants to wp-config.php as needed. All constants fall back to $_ENV equivalents.

Authentication salt

Used to sign review tokens. For a cross-site PDC/Pub connection this value must be identical on all connected sites.

Falls back to $_ENV['YPG_AUTH_SALT'], then the WordPress core AUTH_SALT constant, and then $_ENV['AUTH_SALT'].

External endpoint URLs (Fusion PDC / OpenPub)

Required when this site connects to an external Fusion PDC or OpenPub installation.

Falls back to $_ENV['OPENPDC_ENDPOINT'] / $_ENV['OPENPUB_ENDPOINT'].

Hooks

  1. Post types which will have the page guard metaboxes registered:

  2. Post statuses that will be used to find posts and the associated content owners who need to receive a notification:

  3. Roles that are allowed to bypass (in addition to the post author and content owner):

  4. Override the login name of the dummy WordPress user whose admin bar is hidden on the review modal:

  5. Disable writing content owner information to internal data fields (Fusion Portal, Fusion PDC, Brave/ACF):

  6. Fires after content owner information has been written to internal data fields:

  7. Fires after content owner information has been removed from internal data fields:

Local Development

The scheduled event ypg_site_cron is executed once a day, which can make testing a bit difficult. However, you can temporarily alter the code in your local development environment to make testing easier. Inside the register method of the Yard\PageGuard\WPCron\WPCronServiceProvider class, the event is scheduled as follows:

To make testing easier, first ensure you use the filter below before scheduling the event:

Then schedule the event like this:

The event will be executed every 5 seconds. Make sure your local development environment intercepts the sent emails. Don't forget to configure a post so that a notification is sent to the configured content owner.

About us

banner


All versions of yard-page-guard 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 plugin/yard-page-guard contains the following files

Loading the files please wait ...