used composer and implemented api authentication