Try ORM: idiorm, paris and phpmig.
Create a Color management class.
Enable to route /api/path+ URI.
Create a mock of photo gallery.
Create the photo gallery.
Enable to show photos on the Web.