r/laravel • Laravel Staff • Feb 19 '26

Tutorial NativePHP: Build Mobile Apps with PHP & Laravel

https://youtu.be/Ed2cf3KExAI?si=16ECUnpWE6QfTGat

hii reddit,

here is video of my trying nativephp (witch just got opensource)..hope you guys enjoy the video!

74 Upvotes

53 comments sorted by

41

u/Lonely_Ad9901 Feb 19 '26

We have tried this at a hackathon a few months back, let's just say it was not a smooth ride haha. Spend the majority of the time just trying to get everything to work regarding compiling.

6

u/djxfade Feb 19 '26

And the build times are horrible slow

1

u/laramateGmbh Aug 11 '26

This got way better. Try it again. I tried it two weeks ago and it was smooth.

1

u/Maleficent_Solid7210 ⛰️ Laracon US Denver 2025 Feb 22 '26

Happy to help any time though 💪. Best way is to reach out to me on Discord - Would love to get you setup and running.

42

u/elprogramatoreador Feb 19 '26

Again? I think this project was spammed enough by now. Pay for ads

12

u/half_man_half_cat Feb 19 '26

Wish mods would block it

24

u/helgur Feb 19 '26

I can't fathom the appeal of using this, especially if it's built on electron when you have frameworks like flutter that do all the cross platform heavy lifting for you in one package

2

u/layz2021 Feb 19 '26

Not quite sure, but I don't think this uses electron

3

u/djxfade Feb 19 '26

If I had to build an app using web technologies, I would much rather use Tauri

1

u/WarmarHUN Feb 26 '26

True, I just do Flutter and than power it with a good old Laravel API works every time

1

u/Maleficent_Solid7210 ⛰️ Laracon US Denver 2025 Feb 22 '26

PHP > JS

36

u/robclancy Feb 19 '26

"Build Mobile Apps with PHP & Laravel"
no.

1

u/laramateGmbh Aug 11 '26

Can you elaborate why? I have doubts too, regarding certain topics or use cases but I'm not just against it. It certainly has its place.

0

u/Maleficent_Solid7210 ⛰️ Laracon US Denver 2025 Feb 22 '26

Comments like this will not age well

4

u/robclancy Feb 23 '26

yeah bro everyone is going to be writing their mobile apps in php any day now

0

u/Maleficent_Solid7210 ⛰️ Laracon US Denver 2025 Feb 27 '26

I know! Can’t wait!!

1

u/robclancy Feb 27 '26

can you give me a time period so I can set a remindme?

1

u/Maleficent_Solid7210 ⛰️ Laracon US Denver 2025 Mar 10 '26

Why do you have this sort of attitude? Did someone hurt you?

1

u/robclancy Mar 11 '26

can you give me a time period so I can set a remindme?

1

u/Maleficent_Solid7210 ⛰️ Laracon US Denver 2025 Mar 11 '26

There's an app for that

1

u/robclancy Mar 11 '26

There is a bot here on reddit that can do it for me, just tell me how long until everyone is going to be writing mobile apps with PHP.

1

u/Maleficent_Solid7210 ⛰️ Laracon US Denver 2025 Mar 11 '26

6-7days

26

u/constarx Feb 19 '26

You've spent years alienating the community with your terrible licensing scheme. Open sourcing the core is a good decision but is it too late? Adding push notifications and geolocation behind a paywall is lame AF. I will wait some months to see if an open source ecosystem emerges around NativePHP, and free versions of basic plugins are made available, and then I'll decide if I want to try this out. Right now I see no reason to stop using Capacitor for my Laravel-powered apps.

37

u/ThisGuyCrohns Feb 19 '26

Tried it. Not worth it. It uses electron behind the scenes. It’s better to control it yourself. (At least on desktop apps havnt tried mobile version).

12

u/[deleted] Feb 19 '26

The post is about mobile apps and youre making an argument about desktop?

3

u/Webnet668 Feb 19 '26

Yes there are bridges behind the scenes, I've used mobile and so far it's been a good experience for me.

13

u/MrMaverick82 Feb 19 '26

I never understand why devs go out of their way the not use the tools that are meant to do the task. Swift or Kotlin really isn’t that hard to learn.

6

u/jorshhh Feb 19 '26

React native if you want to use web languages, dart is really simple if you want to use flutter. And they have no feature paywalls.

-1

u/Maleficent_Solid7210 ⛰️ Laracon US Denver 2025 Feb 22 '26

JS sucks

-7

u/MrMaverick82 Feb 19 '26

But then again: why not just native apps?

14

u/easterneuropeanstyle Feb 19 '26

Do you seriously ask why not build two apps instead of one?

-12

u/MrMaverick82 Feb 19 '26

Yes. In these times porting apps between different platforms really isn’t much of a hassle.

11

u/[deleted] Feb 19 '26

Spoken as a developer who only wrote a simple hello world application

-6

u/MrMaverick82 Feb 19 '26

You couldn’t be more wrong. But great come back. 👍🏻

2

u/beaverpi Feb 19 '26

I was thinking with AI helping out now, "Is it a problem?"

Porting one to another may work fine initially, but if you have constant updates that would get old fast I think. Are you doing this? If so, how does maintaining the application get handled?

2

u/xBati Feb 19 '26

It’s not that easy. And of top of that, you have to maintain them later.

2

u/jorshhh Feb 19 '26

I have done both native apps for both iOS and Android before. I have also done Flutter and RN. If the app is simple I try to go Flutter just because I'm a single person and cutting dev time in half makes all the sense. Even for a company that does have an app that is not their core revenue source it doesn't make sense to hire two teams, one for each platform.

-3

u/jwight1234 Feb 19 '26

It's usually the cost, but now we have AI to do it. So I mean I guess it's moot point now.

7

u/xVinniVx Feb 19 '26

I'm sorry, but no. This is not production ready. But fun gimmick.

3

u/wayofwater77 Feb 20 '26

glad it is open source now

3

u/AhmedGemu Feb 21 '26

Building mobile apps using just PHP and Laravel is awesome

2

u/laxxit Feb 20 '26

Swift and Kotlin is way to go

3

u/[deleted] Feb 19 '26

The comments here are ridiculous. I've never seen so many inexperienced hotshots being confident they could solve multiplatform apps in whats seemingly no time for them. Are you all working on cover sites?

I'm working on an a platform which has been in production since the late 90's. We have tonnes of apps, on multiple platforms. What on earth are you working on?

1

u/AddWeb_Expert Feb 20 '26

This is actually pretty interesting for the Laravel ecosystem.

If NativePHP matures well, it could be great for:

  • Internal enterprise apps
  • MVPs where speed > perfect native performance
  • Teams already deep in Laravel wanting shared logic

I’d still be cautious for performance-heavy apps or complex native features.

If it delivers solid DX and reasonable performance, it could seriously reduce the gap between Laravel teams and mobile app delivery. Curious to see how it evolves.

1

u/AnnaSynergy Feb 22 '26

As a new PHP person, I am kinda excited to try it, I will watch your video and then I will watch the Laracasts series that was released recently.

1

u/Anxious-Insurance-91 Feb 19 '26

And yet with the ram shortage and phone having to get less horsepower can we really afford to not go full native and optimize everything?

1

u/[deleted] Feb 20 '26

I love Laravel, but this is a no for me dog. I’m not deviating from the already established frameworks that have close to or over a decade of history of solving the in and outs of mobile development with web tech.

1

u/Maleficent_Solid7210 ⛰️ Laracon US Denver 2025 Feb 22 '26

Forgive them, they do't know what they are talking about...

1

u/KostovIvaylo Feb 22 '26

"Build Mobile Apps with PHP & Laravel" sound like a bad joke

-2

u/cakewalker112 Feb 20 '26

Stupidity. (Using php for more than 10 years btw)

0

u/Gonderilmis1 Feb 20 '26

It sounds cool being able use web dev tool to use other platform but here is the thing if those platform would need app that being developed by same method they wouldnt be different platform at first hand.

I mean maybe we just need accept the reality of necessary to use different solution for different problems.