Generate MongoDB completenesses from PHP