Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Libs

The following is a collection of Libraries which while not been explicitly created for Perique, can be used or are often used as dependencies for Perique Modules

Pixie WPDB

An expressive, query builder for WordPRess it can also be referred as a Database Abstraction Layer. Pixie WPDB supports WPDB ONLY and it takes care of query sanitization, table prefixing and many other things with a unified API.
Docs | Github

Collection

A classic PHP Collection class which allows for working with Indexed and Sequential arrays with an OOP approach. Also allows for basic Generic’s with use of Typed Collections.
Docs | Github

Table Builder

A table schema definition and an extendable table builder. Comes with a WPDB and DB_Delta() implementation for WordPress. used in Perique Migrations
Docs | Github

Enqueue

A simple, fluent API for enqueueing and registering scripts and styles. Allows for simpler enqueuing, inline rendering and denoting for either deferred or async loading.
Docs | Github

Nonce

An OOP representation of a WP Nonce
Docs | Github

Hook Loader

A class based loader for WP Hooks and Shortcodes. This is used as part of Periques core and used as part of the registration process.
Docs | Github

PSR16 Cache

Provides both WP Transient and WP FileSystem (Direct) implementation to PSR16`s CacheInterface.
Docs | Github

HTTP

acts a wrapper for the Nyholm\Psr7 and Nyholm\Psr7Server libraries and gives a few helper methods. You can easily create and emit either Responses that extend WP_HTTP_RESPONSE or implements ResponseInterface
Docs | Github

Rest Schema

Defining valid JSON rest schema in WordPress is a little messy and easy to make a mistake with it being lots of nested arrays. This library attempts to make this process cleaner and simpler with a fully fluent, object driven interface.
Docs | Github

WPUnit Helpers

Collection of helper functions, classes and traits for using WPUnit.
Docs | Github

Function Constructors

This library provides a small selection of functions for making functional programming a little cleaner and easier in php.
Docs | Github