mock trading platform in PHP