WP Manifestindependent plugin directory
manifest / developer / wordpress-simple-queries

Simple Queries WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

WordPress plugin that allows to use WordpressInterop lib to query the database

★ 1stars
18release downloads
≈10active sites
latestlatest · 4 years ago

Install

Download simple-queries-1.0.1.1.11.3.zip From the latest release on GitHub, Aug 6, 2022

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/williarin/wordpress-simple-queries/releases/download/latest/simple-queries-1.0.1.1.11.3.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Introduction

This WordPress plugin integrates williarin/wordpress-interop in WordPress.

Requirements

You must have WordPress 5.6 or later running on PHP 8.0 or later.

Installation

Download the latest release on this page and extract it in yourproject/wp-content/plugins/simple-queries/.

Warning: WordPress Plugin Directory doesn't host plugins made for developers anymore. This is to avoid that an admin user deactivate or delete the plugin as he doesn't see the use of it.

Ideally, you would require the library directly using composer, so you wouldn't have to install this plugin. However, there are some cases where this plugin might come in useful, particularly if you don't have composer in your WordPress installation.

Usage

Once the plugin is activated, you'll be able to use the SimpleQuery() function which gives you the EntityManager. For more details, see williarin/wordpress-interop documentation.

Example:

use Williarin\SimpleQueries\Vendor\Williarin\WordpressInterop\Bridge\Entity\Product;

if (!defined('SIMPLE_QUERIES_ENABLED') || !SIMPLE_QUERIES_ENABLED) {
    return;
}

// Fetch all products with id and sku columns only
$products = SimpleQuery()->getRepository(Product::class)
    ->findBy([new SelectColumns(['id', 'sku'])]);

License

GPL 3.0

Copyright (c) 2022, William Arin

Releases

2 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
latest latest
Aug 6, 2022 4 years ago
simple-queries-1.0.1.1.11.3.zip
9
Jul 24, 2022 4 years ago
simple-queries-1.0.0.1.10.0.zip
9

Active-site estimate ≈10 comes from the median of recent superseded releases. Method.

A grade

Security

Simple Queries 1.0.1.1.11.3 · audited by WP Registry

No security issues found.

Audited release
1.0.1.1.11.3
Findings
none
Worst severity
—
Content hash
2366d156df7e1f37a08d848c…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.