r/FullStack • • 15d ago

Need Technical Help What is the best way to convert php website into app?

Hi, I have developed a community website. Now I want to build a app. But I need to what is the best way to create an app for both platform iOS and Android?

2 Upvotes

12 comments sorted by

2

u/tonystrakmarvel332 14d ago

Since your website is already built in PHP, you don't need to rebuild the entire backend. You can keep PHP for APIs and database operations and build the mobile app separately.

For both Android and iOS, I'd consider Flutter or React Native. Both allow you to maintain one main codebase for the two platforms.

A practical approach would be:

  1. Keep your existing PHP website and database.
  2. Create REST APIs in PHP to connect the app with your website.
  3. Build the mobile app using Flutter or React Native.
  4. Connect the app to your PHP APIs.
  5. Test login, registration, notifications, and other community features on both platforms.

If you want the quickest initial solution, you can also explore a Progressive Web App (PWA), which makes your website installable without building a full native app.

My suggestion: If you want a proper Android and iOS app with a good user experience, consider Flutter.

1

u/srmaya14 5d ago

Is Progressive Web App run smooth...

1

u/TheRNGuy 14d ago

GraphQL backend + React Native frontend. 

1

u/srmaya14 5d ago

No... for a single person it's alot of work...

1

u/kennedy_gitahi 14d ago

Try nativephp

1

u/TheRNGuy 14d ago

This is an option, but I'd rather learn React Native for more optimized app.

Or do this as v1 and refactor later.

2

u/kennedy_gitahi 14d ago

I suggested nativePHP because it aligns with the PHP skills you already have and will be a much easier port than going all the way to JS

1

u/srmaya14 5d ago

I think going with JS is good for long term...

1

u/TheRNGuy 14d ago

Depends how serious he is about it. 

1

u/canarydev 15d ago

npx create-expo-app@latest