Login authentication from database

Hi, I use Slim Framework to create Rest Api using this tutorial http://www.androidhive.info/2014/01/how-to-create-rest-api-for-android-app-using-php-slim-and-mysql-day-12-2/, my problem now is how can I use this rest api to make a login in my ionic app… help me please Thanks…