title: How to install and use PHP on macOS via brew
body: <p>it seems like a little bit stupid question, but Google for one hour and cannot find it:</p>
  
  <p>How to install php on macOS via brew and use in in shell.</p>
  
  <p>Install is simple (if you have brew already installed):</p>
  
  <pre><code>brew install php
  </code></pre>
  
  <p>But after installation, when i use php -v i still see default php on mac os and not the brew's one. Shoud I Add brew php binary into PATH, bash profile, or what?</p>
  
  <p>Thank you!</p>