A Framework for Building Multicraft Scripts in PHP