Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Swaz's avatar
Level 20

How to use Redis with Valet

I was following this guide but there are recent changes to homebrew so none of the guides work now. https://objectiv.co/using-redis-speed-local-development-laravel-valet/

Does anyone know how to install redis to use with php 7.2 on Valet?

0 likes
4 replies
ejdelmonico's avatar

I have Redis installed via Homebrew and running as a brew service with no issues. I have Homebrew install 7.2.5 working without issue as well. However, if you were relying on PECL prior to the Homebrew changes, you will have issues since it is not included any longer. I am using the most current version of Valet as well.

Try this brew install homebrew/core/php because the other install were deprecated.

1 like
jsonkenyon's avatar

It looks like the homebrew/core/php now includes the PECL installation; See below

→ brew list php | grep pecl
/usr/local/Cellar/php/7.2.5/bin/pecl
/usr/local/Cellar/php/7.2.5/pecl
/usr/local/Cellar/php/7.2.5/share/php/pear/.channels/.alias/pecl.txt
/usr/local/Cellar/php/7.2.5/share/php/pear/.channels/pecl.php.net.reg
/usr/local/Cellar/php/7.2.5/share/php/pear/peclcmd.php

→ pecl version
PEAR Version: 1.10.5
PHP Version: 7.2.5
Zend Engine Version: 3.2.0

→ brew --version
Homebrew 1.6.2
Homebrew/homebrew-core (git revision b4fa; last commit 2018-04-27)

However, I can also confirm installing redis and getting it to work with Valet is very simple;

Swaz's avatar
Level 20

Okay so I restarted my computer and redis is no longer working.

I ran pecl install redis, and it says it's already installed.

So just not sure how to actually "start" redis now.

Please or to participate in this conversation.