Mac enable memcached PHP with homebrew?

  1. lists all memcached related packages
brew search memcached

# install memcached as well as memcached extension for PHP

brew install memcached
brew install php54-memcached

# start memcached daemon with 24MB on port 11211 (default)

memcached -d -m 24 -p 11211

Add to your php.ini file to add:

extension=memcached.so
Restart php or php5-fpm and your server.

php -i | grep memcached
  1. should show memcached version, etc.

Source: osx – How to enable the memcached PHP extension after installing with homebrew? – Stack Overflow