http://data.mapguide.com/mapguide/devguide/index.php already explains the PHP version quite well
This page lists some code samples for the MapGuide API and AJAX viewer.