I was wondering given the learning curve of PHP, it would be really helpful if we can create better and performant mobile apps using PHP.
Is it possible today? Has anyone done it?
to unify @amir_anwar and @mgiambanco .
PHP can be used as an API or you can use a container to make it look like it's "an app" but in the end PHP runs on the sever not the client.
So in short -> NO atm you cannot use PHP for a native APP.
What you can do is -> write the app in angular or react or vue or cycle or another javascript framework of your choice and use PHP as the server cloud API backend.
that's for example how whatsapp was built it was a dumb PHP script that grew and grew :)
you can take a look into phonegap / cordova or react native or the ionic framework.
In Android I have deeply searched this issue before My findings are: If you want to create a professional application, you don't have any option but java but still there are other options available like c++ , python, kotlin , react native, ionic,.. Never heard that PHP can be used though, I might be wrong off course But again, all of those options can never be compared to native Java Sdk
Mario Giambanco
Director of User Experience Development
This SO conversation leads to this article which ultimately leads to Zend Studio 10
So it looks like any other JS to Objective-C / Swift interpreter / compiler.
That said - I'm a big long time PHP user (over 15 years) - 2 weeks ago I started writing my first iPhone app in Swift 3 and I really didn't find it difficult at all - there are a ton of posts on SO, examples around the net, etc... to get you going in any aspect of it. There is a learning curve for sure, but nothing trumps a pure, native iOS app IMO.