Skip to content

Run PHP from a web server running in an iOS application.

Notifications You must be signed in to change notification settings

ilendemli/PHPTest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHPTest

PHPTest is a proof of concept for running PHP from a webserver that's embedded in an iOS application. The server runs on port 3000, and there's a script at /test.php that prints phpinfo();.

This was a fun little project to get working, however, I don't think I'll be doing any more development on it. If you want to continue messing around with it, check out the build-for-ios.sh script for how to compile a PHP static library that will run in your iOS app. This is optional as there's already a multi-architecture (meaning armv7, armv7s, and i386) library included in PHPTest/. However, if you do want to compile it yourself, remember to build multiple versions for each architecture (all the different variables are included in the bash script), as well as using libtool to merge them into one library so you don't have to juggle managing which library you're using for which target.

Output from phpinfo();

About

Run PHP from a web server running in an iOS application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 65.5%
  • PHP 32.0%
  • Objective-C 0.9%
  • C++ 0.7%
  • Shell 0.4%
  • JavaScript 0.3%
  • Other 0.2%