title: creating Basic authentication in Slim framework
body: <p>I had seen 2 questions on SO and several topics on google but that didn't helped me out</p>
  
  <ol>
  <li><a href="https://stackoverflow.com/questions/14973428/authentication-based-rest-api-with-slim">Authentication Based REST API with Slim</a></li>
  <li><a href="https://stackoverflow.com/questions/13139576/securing-a-rest-api-and-slim-framework">Securing a REST API and Slim Framework</a></li>
  </ol>
  
  <p>Slim provides you different methods like PUT,GET,POST etc. I want to implement basic authorization like being implemented by many API's.
  First question: Is SSL necessay? (I dont have currently)
  Second question: How to implement it? as in i have to send username and password in headers in encrypted form and then after this I have to use this authentication in each API call
  Any help?</p>