PHP Updates

A little more organization for the PHP part. The maps component is the same. Also, an important note for this update is that the functionality has not yet been fully tested.