Download the PHP package alleyinteractive/wp-psr16 without Composer

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

PSR-16 Implementations for WordPress

This library provides PSR-16 implementations for WordPress projects. It includes adapters for caching data in the object cache, as transients, as options, and as post, term, or other object metadata.

Installation

Install the latest version with:

Basic usage

All the adapters in this library implement the \Psr\SimpleCache\CacheInterface interface and have no other public API apart from their static constructors.

Implementation details

WordPress returns scalar values in the option and metadata database tables as strings, which is incompatible with PSR-16's requirement that data be returned from the cache "exactly as passed [including] the variable type."

This library works around the default behavior of the database by serializing and unserializing values when they are saved to and retrieved from storage, which has some side effects:

The \Alley\WP\SimpleCache\PSR16_Compliant decorator class is responsible for ensuring PSR-16 compatibility with respect to data types, expiration times, legal cache keys, and other requirements of the specification. You are free to use this decorator with your own cache adapters or with those of another library.

Limitations

About

License

GPL-2.0-or-later

Maintainers

Alley Interactive


All versions of wp-psr16 with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
alleyinteractive/composer-wordpress-autoloader Version ^1.0
psr/simple-cache Version ^2.0 || ^3.0
symfony/clock Version ^6.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 alleyinteractive/wp-psr16 contains the following files

Loading the files please wait ....