Wpfb-album is a project mainly written in PHP, it's free.
wpfb-album
This is going to use as my plugin template for next project at Axcoto!