Although none of them work with PHP as they are now, they are both fairly reliable HTTP servers that work fine on iOS and therefore take you at least partially:
CocoaHTTPServer : A significantly improved version of Apple, a simpler example of cocoahttpserver.
SimpleHTTPServer : The main Cocoa web server with cultural code.
I do not believe that something will be interpreted on the market by PHP under iOS. Nevertheless, since Apache and PHP work fine on OS X, and iOS is an extension / modification of OS X, most likely, it will not be difficult for them to transfer them.
Of course, this will require access to several private APIs, but, as you say, you are not trying to sell it in the App Store, so at least within the possibilities.
source share