Using DraftCode you can develop and run PHP (as well as HTML, CSS and JavaScript) on your iPad or iPhone without requiring an internet connection.

DraftCode includes the standard PHP stack including all PHP extensions typically available on a webserver (MySQL, SQLite, PDO, Curl, OpenSSL, FTP, XML, JSON, SOAP, GD and more). All code execution happens right inside DraftCode and works if your device is offline. 

DraftCode by default includes PHP 7.3.16. An additional runtime for PHP 8.0.9 is available as an in App purchase.

(A complete phpinfo output of the current available runtime configurations is available on the DraftCode website, please follow the "Developer Website" link below. Please note that you can review current In-App purchase pricing on this App Store page under "Information" by tapping the triangle next to 'In-App Purchases")

- Execute PHP/JS/HTML/CSS without requiring an internet connection
- Runtime behaves like any webserver, supporting sessions, cookies, AJAX etc.
- Session inspector showing state of current session variables
- Inspector showing PHP errors, JavaScript errors and console.log
- Includes and supports Composer for dependency management
- PHP and JavaScript syntax colouring
- Internal keyboard support with coding accessory
- External keyboard support with additional keyboard shortcuts
- Multitasking and split-screen support on iPad
- Includes PHP packages like WordPress, Composer and more.
- Built-in preview browser behaving like Mobile Safari
- File workspace including support to zip, unzip, copy, move or duplicate files or folders
- Code import/export from iCloud Drive, other Apps or iTunes file sharing
- Kiosk mode that runs you PHP code fullscreen
- Script mode to run PHP scripts without a web context or timeout
- Integrates with WorkingCopy to connect with GIT


With just one tap you can run WordPress offline (using the included WordPress SQLite plugin) and develop themes and plugins for the popular platform.

Connect to EXTERNAL MySQL databases (MySQL is NOT included).

Work with local SQLite databases.

Use Composer v.2.1.12 to efficiently manage your dependencies. The package also includes an example project.

For more information and answers to frequently asked questions please head over to DraftCode's website.

Please note:
- DraftCode is not a webserver and running PHP code is not accessible outside of DraftCode
- DraftCode's runtime currently does not support re-write rules
- A MySQL database is NOT included. (We recommend using SQLite when working completely offline.)

What’s New

Version 1.11

- PHP 7.3 including GD is now the included default
- Removed old PHP 5 and PHP 7.2 runtimes
- Updated Composer package to latest version

- Fixes OpenSSL certificate verification issues by updating included root certificates

Ratings and Reviews

4.4 out of 5
66 Ratings

66 Ratings

Lao Tzu Bravo ,

Incredible Possibilities

I love (LOVE) this app.

Only two things prevents a 5-Star review:

1) Scrolling:

When scrolling, the screen snaps back to where you started and you must find your place again. I can't express how frustrating this is when you're trying to flow... This behavior occurs consistently doesn't happen system wide. You have to scroll twice after any change made because of the maddening "SNAP!"

2) Undo

I rarely use this function because it's more destructive than helpful. It doesn't undo one step at a time, it jumps back a seemingly arbitrary number of steps so you have no idea what was undone.

If you've just squashed a bug and then hit undo a few lines later, you have my sympathies…

Fix these and it's practically perfect (and probably one of the most valuable apps in the store)!

[ iPhone 8 • iOS 13.3.1 ]

Developer Response ,

Thanks for your review. I am afraid we cannot reproduce this bug you describe. Reviews are not ideal places to file bugreports because we cannot follow them up. Please get in touch via support, thanks.

ThisOtherPerson ,

Great start but iOS falls short?

Ok, l know this is a huge undertaking and iOS is severely limited so far as a development tool. What issue this app seems to suffer from is as a developer, I can’t really work on a plugin in WordPress while WP is running.

Pretty ineffective to have to start and stop WP each time to edit a file and then see the result rendered.

Update: I contacted the developer and he has been VERY responsive to my concerns. He has provided some ideas for workflow that seem acceptable. Running web apps on iOS is no small feat. My hope is that this app will be well supported and the product will continue to be updated.

Lbrew81 ,

Great for practice

It’s a little buggy. The keyboard gets in the way of me scrolling. Sometimes I can’t scroll at all.

App Privacy

The developer, Solesignal Limited, indicated that the app’s privacy practices may include handling of data as described below. For more information, see the developer’s privacy policy.

Data Not Collected

The developer does not collect any data from this app.

Privacy practices may vary, for example, based on the features you use or your age. Learn More


  • Family Sharing

    With Family Sharing set up, up to six family members can use this app.

You Might Also Like