Download the PHP package cooperaj/laravel-redis-sentinel without Composer

On this page you can find all versions of the php package cooperaj/laravel-redis-sentinel. 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 laravel-redis-sentinel

Laravel Redis Sentinel

Build Status Scrutinizer Code Quality

This provides a Sentinel aware driver for Laravel. A Redis cluster with Sentinels supports a high availability Master/Slave architecture that provides automatic failover should a node stop working.

It's simple code and merely allows you to configure Sentinels correctly by changing some assumptions Laravel makes about how you're using Redis.

Compatibility

Version Supported Laravel Version
^0.0 ^5.2
^1.0 ^5.3

Installation

Add the Service provider to your config/app.php, you should also comment out (or remove) the default illuminate Redis driver:

Point your Redis database at a set of Redis Sentinels. Change the redis part of your config/database.php to something like:

Optionally you can add a configuration option that causes Predis to interrogate a given Sentinel for a complete list of Sentinels. If you do this then you only need to provide a single Sentinel in the configuration. Predis will ensure that the Sentinel list is kept up to date on subsequent queries.

Queue

Add a connection to your config/queue.php file:

Configure your env file to use the new driver:

Cache

Laravel will quite happily use Redis as a cache location. What they don't tell you is that clearing your cache does a simplistic FLUSHDB command. Something you don't want to use if you're also using queues in Redis. "Oh no, all my queued jobs have disappeared".

To fix this setup a cache database configuration as shown in the example config/database.php snippet above, ensuring that you use a different database number and change the Redis section of config/cache.php to read:


All versions of laravel-redis-sentinel with dependencies

PHP Build Version
Package Version
Requires php Version >5.5.0
illuminate/contracts Version ^5.3.0
illuminate/redis Version ^5.3.0
illuminate/support Version ^5.3.0
illuminate/queue Version ^5.3.0
predis/predis Version ~1.0
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 cooperaj/laravel-redis-sentinel contains the following files

Loading the files please wait ....