wpdesk/wp-persistence

There is no license information available for the latest version (3.0.2) of this package.

3.0.2 2022-04-09 12:21 UTC

README

pipeline status coverage report Latest Stable Version Total Downloads Latest Unstable Version License

WordPress Library to facilitate access to various persistence possibilities

Requirements

PHP 7.0 or later.

Composer

You can install the bindings via Composer. Run the following command:

composer require wpdesk/wp-persistence

To use the bindings, use Composer's autoload:

require_once 'vendor/autoload.php';

Compatiblity between plugins

To ensure that always the latest and valid version of composer libraries are loaded in WP env you should use a solution that ensure support between plugins and at least decreases the change that something would break. At the moment we recommend using wpdesk/wp-autoloader.

Manual instalation

If you do not wish to use Composer and wpdesk/wp-autoloader, you probably should stop using any existing library as it breaks compatibility between plugins.

When has() is true and when get() will throw an exception

ValueGetHas
'test''test'true
[][]true
''''true
99'99' or 99true
0'0' or 0true
truetrue or '1'true
falsefalse or ''true
not setexceptionfalse
nullexceptionfalse