Initial draft of asynchronous PHP API with deferments