Download the PHP package alleyinteractive/wp-big-pit without Composer

On this page you can find all versions of the php package alleyinteractive/wp-big-pit. 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-big-pit

Big Pit

The Big Pit is a key-value WordPress database table for storing things that don't make sense to store as a post, term, option, or other core data type.

Installation

You can install the package via Composer:

API

The Alley\WP\Big_Pit\Client interface describes the create-read-update-delete operations that can be used with the Big Pit. You can type hint against this interface when using Big Pit as a dependency.

Each item in the Big Pit has a key and a group, much like the WordPress object cache. Each key is unique within a group.

Client extends the Alley\WP\Types\Feature interface from the Type Extensions library, which includes a boot() method for performing side effects.

You must call boot() before using the client. If you are compiling features using the Features instance from Type Extensions, you can include the Big Pit client, and it will be booted with the rest of your feature classes.

Usage

Speculative Client

The Big_Speculative_Pit decorator class tracks the items that are fetched during a given request and preloads those items in a single query the next time the same page is requested.

PSR-16 Cache Adapter

A PSR-16 adapter is available for caching data in The Pit:

Note that the cache adapter will store data in a custom array structure, as described in the wp-psr16 README.

Why Not Use Options?

There's nothing wrong with using options for storing key-value data, but it comes with overhead, including:

Big Pit doesn't have autoloading, filters, or registered keys, so it might work for you if you don't need these features.

Or, you might plan to store thousands of rows, and you don't want to dilute the options table with that amount of data.

About

License

GPL-2.0-or-later

Maintainers

Alley Interactive


All versions of wp-big-pit with dependencies

PHP Build Version
Package Version
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 alleyinteractive/wp-big-pit contains the following files

Loading the files please wait ....