I'm pretty new to Swift and I'm trying to create an GUI application that parses PHP code and return the output (for study purpose).
In other words, what I'm trying to ask is: how to reach PHP from Swift? I have a snippet and I want to get the resulting output, but I'm inside an OSX application.
My first idea was to "bundle" PHP in my app, but I really don't have a clue on how (or even if it's possible) to do that.
I'm also thinking on taking the code and sending it to the shell and just wait for the response.
Well, any thoughts?
Thank you very much!