How to Convert a PHP Web App into a Mobile App
We'll show you how to turn a PHP web app into a mobile app, and compare five ways to get it into the App Store and Google Play.
PHP runs a huge share of the web’s working software: customer portals, booking systems, member areas and back offices built over years in Symfony, CodeIgniter or plain PHP. Many of them were written long before anyone asked for an app.
When someone does ask, two things get in the way. Most of these apps render HTML on the server and have no API for a mobile app to call. And the steps to publish an app, from developer accounts to store review, are new to most web teams.
This guide explains how a PHP app can become a mobile app, compares five ways to get there and covers what it takes to launch one. It also shows how MobiLoud turns a PHP app into native iOS and Android apps without a rewrite.
Can a PHP app become a mobile app?
A PHP app can power a mobile app, but it can’t run as one. PHP runs on your server and sends HTML to a browser, while iOS and Android apps are built in Swift and Kotlin, or in Flutter or React Native.
The one way to run PHP on a phone is NativePHP, which bundles PHP into the app. It’s built on Laravel, so it only helps apps that already run on Laravel.
For most PHP apps, the question is what the mobile app builds on: the pages your server renders today, or an API you’d write for it.
-
MobiLoud
Your PHP app, as it is
Your server
- Your PHP app and templates
- Your database and sessions
Your pagesThe phone
- Native iOS and Android app
- Native navigation, push and login
-
API + Flutter or React Native
An API first, then a second app
Your server
- Your PHP app
- A REST API, written for the app
JSONThe phone
- A separate Flutter or React Native app
- Every screen built again
-
NativePHP
Your app, moved to Laravel
Your server
- An API for syncing data
SyncThe phone
- A Laravel copy of your app
- PHP and a local database
If your app has no API today, only the first approach works without writing one.
5 ways to turn a PHP app into a mobile app
For an established PHP app, the five routes differ in whether your current code is enough, which stores you can reach and how much new work comes with each one.
| Compared | PWA + TWA | WebView wrapper | REST API + Flutter or React Native | NativePHP | MobiLoud |
|---|---|---|---|---|---|
| Your existing pages and code | Yes | Yes | No An API and a new app | Partly After a move to Laravel | Yes |
| In the App Store | No | Partly Apple often rejects basic wrappers | Yes | Yes | Yes |
| On Google Play | Yes Through a TWA | Yes | Yes | Yes | Yes |
| Push notifications on iPhone | Partly Only from the Home Screen | Partly Yours to add and maintain | Yes | Yes | Yes |
| Shipping a change | Deploy as usual | Deploy as usual | A store release | A store release | Deploy as usual |
| Time to launch | Days | Days, plus app review | Months | Months, with the move to Laravel | 2 to 4 weeks |
| Cost | Your developers' time | Developer time, or $25 to $125/month for a converter | The highest: an API, a second app and a team | A rewrite, plus paid builds and plugins | From $639/month |
-
PWA + TWA
- Your existing pages and code
- Yes Yes
- In the App Store
- No No
- On Google Play
- Yes Through a TWA
- Push notifications on iPhone
- Partly Only from the Home Screen
- Shipping a change
- Deploy as usual
- Time to launch
- Days
- Cost
- Your developers' time
-
WebView wrapper
- Your existing pages and code
- Yes Yes
- In the App Store
- Partly Apple often rejects basic wrappers
- On Google Play
- Yes Yes
- Push notifications on iPhone
- Partly Yours to add and maintain
- Shipping a change
- Deploy as usual
- Time to launch
- Days, plus app review
- Cost
- Developer time, or $25 to $125/month for a converter
-
REST API + Flutter or React Native
- Your existing pages and code
- No An API and a new app
- In the App Store
- Yes Yes
- On Google Play
- Yes Yes
- Push notifications on iPhone
- Yes Yes
- Shipping a change
- A store release
- Time to launch
- Months
- Cost
- The highest: an API, a second app and a team
-
NativePHP
- Your existing pages and code
- Partly After a move to Laravel
- In the App Store
- Yes Yes
- On Google Play
- Yes Yes
- Push notifications on iPhone
- Yes Yes
- Shipping a change
- A store release
- Time to launch
- Months, with the move to Laravel
- Cost
- A rewrite, plus paid builds and plugins
-
MobiLoud
- Your existing pages and code
- Yes Yes
- In the App Store
- Yes Yes
- On Google Play
- Yes Yes
- Push notifications on iPhone
- Yes Yes
- Shipping a change
- Deploy as usual
- Time to launch
- 2 to 4 weeks
- Cost
- From $639/month
1. A progressive web app, with a TWA for Google Play
A progressive web app is your PHP site with a web app manifest and a service worker. Any PHP app can serve both, as two static files and a few lines in the page header, and people can then add it to their Home Screen like an app.
Your server
Your PHP app
- A web app manifest
- A service worker
- Your site's own header and menu
- Your PHP pages, in the browser engine
Google Play through a TWA, not the App Store
On Android, a Trusted Web Activity can list that PWA on Google Play. Tools like Bubblewrap and PWABuilder package it, and a Digital Asset Links file on your server proves the site is yours.
Apple has no equivalent, so a PWA can’t be listed in the App Store. On iPhone, it can only send push notifications once someone has added it to their Home Screen.
2. A WebView wrapper
A WebView app is a small native project that loads your site full screen. It’s how most “PHP to APK” converters work, and a developer can build one in Android Studio or with Capacitor in an afternoon.
Your server
Your PHP app
- Your site's own header and menu
- Your PHP site, in a WebView
- A small native project around it
Apple often rejects basic wrappers
Your sessions and forms keep working, because it’s still your site. Getting it into the App Store is harder: Apple’s Guideline 4.2 rejects apps that are only a website in a frame.
A basic wrapper also comes without push notifications or native navigation, and every new iOS and Android version is yours to test.
3. A REST API with a Flutter or React Native app
This route starts with the API most PHP apps don’t have. You build endpoints for every screen, with API Platform on Symfony, resource controllers in CodeIgniter or by hand, and add token auth for the app.
Then a mobile team builds a separate app in Flutter or React Native. Every screen is designed again, every feature ships twice, and the first version takes months.
The API and the app stay in your care from then on, alongside the web app. This route fits when mobile is a product of its own, with its own team and roadmap.
4. NativePHP
NativePHP runs PHP inside a native iOS and Android app, with a copy of your app and a local database on each phone. It’s built on Laravel, so a Symfony, CodeIgniter or plain PHP app would have to move to Laravel first.
Even then, it’s a second app. Screens are rebuilt with NativePHP’s native components, your data syncs through an API you write, and every change ships as a store release.
5. MobiLoud
MobiLoud builds native iOS and Android apps on the PHP app you already run, whatever it’s written in, from Symfony to a WordPress site. Your templates, sessions, forms and database are in the app from the first build. The app then adds native navigation, push notifications and a listing in both stores.
Your server
Your PHP app
- Templates, sessions and data as they are
- Push notifications
- Native navigation
- A PHP page
- Native components
- Another PHP page
- Native tab bar
In the App Store and Google Play
Older code is fine. The app builds on whatever your server sends, so an older PHP version, a jQuery front end or a module nobody wants to touch all work as they are. The same goes for a PHP API with a JavaScript front end on top, because the app builds on whatever renders your pages.
When you deploy, the app has the change. Our team builds the apps, gets them through review and keeps them current with each new iOS and Android version.
What does it take to publish an app?
If your deploys are a git pull or an upload to the server, app releases work very differently. Every route that ends in the App Store or Google Play runs into the same requirements:
- Two developer accounts. Apple charges $99 a year, and a company needs a D-U-N-S number to enroll. Google Play is a one-time $25, but a new personal account has to run a 14-day closed test with 12 testers before it can publish.
- Review before every release. Apple and Google check each version against their rules on content, privacy and how the app works. If people can create an account in your app, they also need a way to delete it there.
- Listings and privacy forms. Each store needs screenshots, a description, a privacy policy and answers about the data your app collects.
- Signing keys. Builds are signed with certificates and keys, and whoever holds them controls your releases.
- Push setup. iPhones need an Apple push key and Android needs a Firebase project, plus a service like OneSignal to send the messages.
- Keeping up. A new iOS and Android version arrives every year, and Google Play won’t accept updates that target an old Android release.
MobiLoud takes care of the builds, listings, review and yearly updates under your accounts, and works with you on push. We’ve taken more than 2,000 apps through store review since 2013, and your deploys keep reaching the app without a store release.
How to turn a PHP app into a mobile app with MobiLoud
Your team joins us for the kickoff and the sign-off, and we do the native work in between. Most apps are live in both stores within a few weeks of kickoff.
-
Kickoff Week 1
We go through your site with your team: the pages for the tab bar, how login works and anything to hide or change in the app. Then you add us to your Apple and Google developer accounts.
-
Build and integrate Weeks 1 to 2
We build the apps on your production site, add the tab bar and push notifications, and map your URLs for deep links, query strings included. You'll have a test build on your phone in week two.
-
Customize and test Weeks 1 to 2
Real-device testing covers login, forms and payments. We finish the splash screen, icons and back button, connect GA4 and Firebase, and hand over the build for sign-off.
-
Launch Weeks 2 to 4
Apple and Google review both apps, usually within one to two weeks, and we handle the submissions from your accounts and any questions. Once live, your PHP deploys update the app.
What carries over from your PHP app
The app shows your live pages, so the work you’ve already done is in it from the first build:
- Your Twig, Smarty or plain PHP templates, with nothing rebuilt for mobile
- PHP sessions and login cookies, so people stay signed in
- Forms that post to the same scripts and controllers
- Your database, Composer packages and PHP extensions, right where they are
- Payment forms, chat widgets and analytics tags, with native handling for the few that need it
- Your hosting, whether that’s shared hosting, a VPS or containers
Your team keeps working on the PHP app as it does now, and the app keeps up without a release process of its own.
How your PHP code can tell it’s in the app
The MobiLoud app adds canvas to its user agent, so one small function can tell when a page opens in the app:
includes/app.php<?php
// The MobiLoud app adds "canvas" to its user agent
function is_mobiloud_app(): bool
{
$agent = strtolower($_SERVER['HTTP_USER_AGENT'] ?? '');
return str_contains($agent, 'canvas');
} Any template can then show app users something different, such as hiding the footer that the app’s tab bar replaces:
templates/layout.php<?php // The app has its own tab bar, so it skips the site footer ?>
<?php if (!is_mobiloud_app()): ?>
<?php include 'partials/footer.php'; ?>
<?php endif; ?> The same check fits a Symfony event subscriber, a CodeIgniter filter or a WordPress hook. It also lets you add pages just for app users and close the app’s login screen once someone signs in.
After login, one JavaScript call links the device to the user’s ID in OneSignal, so your PHP code can send that user a native push notification through OneSignal’s API.
Choosing the right route for your PHP app
The best route depends on what your PHP app is today, and how much new work you’re ready to take on to get it into the stores.
A progressive web app is the cheapest choice for internal tools, and a Trusted Web Activity can put it on Google Play. A WebView wrapper does a similar job for Android devices your company manages.
A REST API with a Flutter or React Native app is worth its cost when mobile has its own team and its own roadmap. NativePHP makes sense for teams already on Laravel who are starting a new app that has to work offline.
Most PHP apps that people already rely on are in a different spot. The code works, there’s no API, and nobody wants to rebuild it to get into the App Store.
That’s where MobiLoud fits, on the PHP app you run today. You can get a free preview of your app to see it first.
Case studies
Their developers kept building the website
Each of these companies launched its own app in the App Store and Google Play without hiring a mobile team. Their web developers kept working on the site, and every update reached the app too.
Kazderni
Travel booking app
>400,000 Downloads
MobiLoud Helped Kazderni Generate 400k Downloads and Dominate their Market
8:32
Average Session Time
TradeZing
Trading education platform
4.7/5 App Store Rating
TradeZing Replaced Their Mobile App With a Headache-Free App Built with MobiLoud
Read the case study
JF Petro
Fuel equipment supplier
JF Petroleum Achieves 40% Adoption From Their MobiLoud Apps
Read the case study"We literally had a dev team of about 30 people. We were able to cut the entire head count down to just a couple of core people working on our web tech stack."
"When we want to change something, we only have to change our mobile website and boom, it's live on the app."
PHP questions, answered
Have any more questions we didn't answer? Book a 30-minute call or send us a message to clear it all up.
Book a callDo we need to build an API first?
You only need an API if you build a separate app in Flutter or React Native. A MobiLoud app works with the pages your server renders, so your existing controllers and templates are enough, and pages that already call an API keep doing so.
Does MobiLoud work with our PHP framework?
MobiLoud works with Symfony, CodeIgniter, CakePHP, Laminas, Yii and plain PHP, and with platforms like WordPress, WooCommerce, Magento and Drupal. Whatever renders your pages, everything on them works in your app.
Will it work with an older PHP app?
An older PHP app works as well as a new one, because the app works with whatever your server sends. You can keep upgrading PHP and your framework on your own schedule.
Can we convert a PHP website into an app for free?
You can convert a PHP website into a basic app for free, as a progressive web app or an Android Studio project that shows your site. Publishing still costs $25 once for Google Play and $99 a year for Apple's developer program, and Apple often rejects an app that only shows a website under Guideline 4.2.
Can we send push notifications from the PHP app?
Yes. Push notifications are native and included on every plan: Growth uses OneSignal, and Business and Enterprise add Klaviyo push. Your team sends campaigns, segments and automated messages from those tools, and can trigger a notification from your PHP code through their APIs. A progressive web app can't match this on iPhone, where web push only reaches people who add it to their Home Screen.
Will Apple approve the app?
Yes. Apple's Guideline 4.2 rejects apps that only repackage a website, so MobiLoud adds the native features reviewers look for, including native navigation, push notifications and persistent login, then handles submission and review under your own developer accounts. JF Petroleum Group had struggled to get apps from other app builders approved, and launched its iOS and Android apps with MobiLoud.
Does the app work offline?
Not by default. Like your website, the app loads live pages from your PHP app, so it needs a connection to show new content. Full offline mode is custom native work that our team scopes and quotes for your app.
How much does it cost to turn a PHP app into a mobile app with MobiLoud?
MobiLoud starts at $639 a month on a 12 month term, or $799 month to month, with the build, App Store publishing and native maintenance included and no share of your revenue. Most apps go live in 2 to 4 weeks. A separate Flutter or React Native app means a second codebase and a mobile team, which typically takes 6 to 12 months to launch and $250K to $1M+ a year to run. TradeZing cut a development team of about 30 people down to a couple of core people working on its web stack after moving its app to MobiLoud.
Who owns the app and the code?
You own your app listings and every line of your PHP. The listings sit under your own Apple and Google developer accounts, so if you ever leave MobiLoud, your listings and your users go with you. MobiLoud owns the platform that builds the native apps.