Download the PHP package mkorkmaz/redislabs-common without Composer

On this page you can find all versions of the php package mkorkmaz/redislabs-common. 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 redislabs-common

Common library for Redislabs Modules.

Contains Interfaces, General Exceptions, Abstracts and Traits

CI Coverage Status Scrutinizer Code Quality Latest Stable Version Total Downloads Latest Unstable Version License

PhpRedis Cluster

The PhpRedis adapter accepts Redis and RedisCluster. For cluster commands, it supplies the first command argument as the routing key without removing it from the command. JSON.DEBUG MEMORY uses the second argument; JSON.DEBUG HELP and commands without arguments use an empty routing key to select one node. Node commands are not broadcast to all masters.

Raw commands with other key positions (for example, EVAL) need the native RedisCluster API with an explicit routing key. Multi-key commands must use keys in the same hash slot. This change does not add Predis cluster routing.

Run the adapter regression tests without a server:

Release the cluster routing fix as 2.0.0 before releasing the corresponding redislabs-rejson dependency update.

PHP 8.5 migration

PHP 8.5 or later in the 8.x series is required (^8.5). Development tools and CI now target PHP 8.5. This is a breaking release; publish it as a new major version. The common package must be released as 2.0.0 before the corresponding rejson release.

Command properties now have native types: string $command, array $arguments, and ?Closure $responseCallback. Custom command subclasses must use compatible property types. Convert callable arrays or strings with Closure::fromCallable() before assigning a response callback. Module client references are readonly; create a new module instance to replace its connection.

The refactor uses PHP 8.5 property #[Override] checks, first-class callables in property defaults, and clone($object, $properties) for debug command copies. See the PHP 8.5 migration guide.

Standalone integration tests use REDIS_PORT (default 6379). Run them only against a disposable Redis instance: the existing standalone suite uses FLUSHALL.

createWithPredis() now requires Predis\Client (including subclasses), because it uses executeRaw(), which is not part of Predis\ClientInterface. For a custom transport, implement Redislabs\Interfaces\RedisClientInterface and pass that adapter to the module constructor.


All versions of redislabs-common with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
ext-json 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 mkorkmaz/redislabs-common contains the following files

Loading the files please wait ...