Download the PHP
package shibo/redis without Composer
On this page you can find all versions of the php package
shibo/redis. 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.
Redis client for php, which supports single redis server, or redis Master-Slave clusters.
Install
1.composer is recommended
composer require shibo/redis
or in your composer.json
2.if you do not use composer, you should include 'Autoload.php' in your code
Example
1.single redis server
read & write operations are all executed in the single serve.
2.redis cluster without slaves
read & write operations executed in the same one server of the cluster.
3.redis cluster with slaves
read & write operations executed in the different servers, read from the slave servers, write from the master servers
(You should config it right for 'm' & 's', such as 6381 is slave of 6379, 6382 is slave of 6380).
Attentions
When you use the 'weight' in the config, it works only in the cluster mode, and when in the Master-Slave mode, you should config in the 'm' arrays but not 's' arrays.
The different clients are implemented by polymorphism, so it is simple and efficient, but you need to new a client yourself.
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 shibo/redis contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.