Youtube-yap-app is a project mainly written in PHP and JAVASCRIPT, it's free.
YouTube YAP Application
This is the YAP App for browsing YouTube Videos based on Top Rated, Top Favorites, Most Viewed and Tending Videos