Moved PHP to a separate class.