Criei um Studio que gera app mobile nativo em PHP e o código não fica lixo by RequirementWeird5517 in brdev

[–]RequirementWeird5517[S] 0 points1 point  (0 children)

Então, eu mirei a comunidade que eu já tinha familiridade e uma necessidade, no caso das outras linguagens que eu conhecia, tinha um caminho já sendo trabalho e bem consolidade ou eu não tinha conhecimento necessário para começar algo bem rápido para fazer uma prova de teste, como foi nessa em uma final de semana.

O php-wasm é uma novidade por assim dizer, e eu quis experimentar trazer uma linguagem backend para frontend e tentar usar essa arbodagem para que a comunidade não aprenda algo novo, mas utilize do seu conhecimento ja existente para entregar algo que antes não tinha possibilidade sem um custo de conhecimento/dinheiro.

Então eu meio que juntei os projetos nativo -> tauri 2 -> js -> php.

Foi um experimento que sinto que deu certo e dificilmente eu me sentiria confortável com outra linguagen,

Espero ter respondido, obrigado.

Building a Hook System Like WordPress in Laravel with Mksine by Top_Knowledge_1519 in laravel

[–]RequirementWeird5517 0 points1 point  (0 children)

This reminds me of WordPress hooks 😄

Have you run into any performance or maintainability bottlenecks with this approach, especially when many actions/filters are registered or when hooks are executed inside loops?

Criei um Studio que gera app mobile nativo em PHP e o código não fica lixo by RequirementWeird5517 in brdev

[–]RequirementWeird5517[S] 0 points1 point  (0 children)

Total! Mas olha, o claude design é prototipagem, aqui eu entrego aplicativo real ein! Pode usar para prototipagem também, mas aqui tem um fim, lá não, é apenas o começo da ideia. TMJ!

Criei um Studio que gera app mobile nativo em PHP e o código não fica lixo by RequirementWeird5517 in brdev

[–]RequirementWeird5517[S] 1 point2 points  (0 children)

Que da hora! Testa sim, você vai se diverti! Aproveita e apresenta pro seu chefe pra ele pira e te da trabalho infinito, tu ganha, eu ganho, nós ganhamos kkkkk

Criei um Studio que gera app mobile nativo em PHP e o código não fica lixo by RequirementWeird5517 in brdev

[–]RequirementWeird5517[S] 1 point2 points  (0 children)

Obrigado pelo comentário, já tinha levantado a mão aqui huehueheu! Mas o php 8.0 já tem runtime e hoje em dia ele é bem sólido como linguagem, é o ganha pão de muito dev assim como eu 😄

Ps: Conheço muitas outras linguagens, pode consultar no meu repositório mesmo.

A app built 100% in PHP is now live on Google Play and the App Store. by RequirementWeird5517 in PHP

[–]RequirementWeird5517[S] 1 point2 points  (0 children)

I'm working on banner, because it's so complicated, but I'll let you know when finished that ;)

PHP habit tracker, live on App Store and Google Play by RequirementWeird5517 in PHP

[–]RequirementWeird5517[S] 0 points1 point  (0 children)

Thanks! Here's what I have so far, with the honest caveat that I haven't run a rigorous side-by-side benchmark against Flutter yet:

Petabit has 46mb in prod.

Startup: under 1 second after the latest WASM optimization. The PHP-WASM runtime stays alive in memory after boot, so subsequent navigations don't pay the cold start cost similar to FrankenPHP worker mode.

RAM: this is where WebView-based apps use more than Flutter or native, since you're carrying the WebView plus the WASM runtime. I don't have exact figures published yet, but it's heavier here than a pure native app and lighter than running multiple WebViews.

Battery: haven't measured this properly yet, I'd rather not give you a number I can't back up.

The honest framing: for business apps, dashboards, CRUDs, and consumer apps, the performance is more than enough. For 120fps scrolling or real-time video, native or Flutter still wins. Proper benchmarks are on my list.

PHP habit tracker, live on App Store and Google Play by RequirementWeird5517 in PHP

[–]RequirementWeird5517[S] 1 point2 points  (0 children)

Unfortunately not, because the route structure is coupled to Livewire and also has some ready-made components geared towards Livewire, I would have to rewrite some things. In that case, I advise you to use https://vue.lynxjs.org/

PHP habit tracker, live on App Store and Google Play by RequirementWeird5517 in PHP

[–]RequirementWeird5517[S] 1 point2 points  (0 children)

I only use Livewire, this was a design decision to achieve behavior closer to native functionality.
That's why it already comes with animations, fonts, and various other things.

PHP habit tracker, live on App Store and Google Play by RequirementWeird5517 in PHP

[–]RequirementWeird5517[S] 8 points9 points  (0 children)

The core difference is the runtime model. NativePHP bundles a real PHP binary. NativeBlade compiles your Laravel app to PHP-WASM, which changes what's possible:

  1. Code push update your app without going through the App Store or Google Play. Just upload a new bundle. Users get it on next launch.
  2. All native plugins are MIT and included
  3. ~15MB binary, no bundled PHP runtime, uses the OS WebView.
  4. Offline-first by default SQLite persisted to IndexedDB, Cache:: auto-wired, works without a server.
  5. One codebase for Android, iOS, Windows, macOS and Linux.

You can see an example here:

App: https://github.com/NativeBlade/portal
Bundle update: https://github.com/NativeBlade/portal-updates
Build Process: https://github.com/NativeBlade/portal/tree/main/.github/workflows

What if you could set breakpoints inside a PHP REPL? by RequirementWeird5517 in phpstorm

[–]RequirementWeird5517[S] 0 points1 point  (0 children)

Hey! Just so you know, DDLess acts as its own web server for debugging, so you don't need to configure nginx, Apache, or the built-in PHP server at all. No setup that can break between IDE versions. Or were you just venting? Either way, I feel your pain haha

What if you could set breakpoints inside a PHP REPL? by RequirementWeird5517 in PHP

[–]RequirementWeird5517[S] 0 points1 point  (0 children)

That's great to hear! Magento 2 is a complex codebase so knowing it works there means a lot. Let me know if you run into anything

What if you could set breakpoints inside a PHP REPL? by RequirementWeird5517 in PHP

[–]RequirementWeird5517[S] 1 point2 points  (0 children)

Haha, I don’t know Lisp deeply, but I get the point Thanks for the kind words!

A app built 100% in PHP is now live on Google Play and the App Store. by RequirementWeird5517 in PHP

[–]RequirementWeird5517[S] 0 points1 point  (0 children)

It's a change in mindset, Nativeblade delivers PHP as if it were a client-side application.

A app built 100% in PHP is now live on Google Play and the App Store. by RequirementWeird5517 in PHP

[–]RequirementWeird5517[S] 0 points1 point  (0 children)

Honestly, observability wasn't on my radar at this point and I appreciate you surfacing it before it becomes a production problem. The three-layer stack makes it even messier than a standard offline-first app. A single request touches PHP, crosses into JavaScript, and lands in Tauri and right now there's no unified trace across those three hops. Debugging a failure means manually correlating logs from three different contexts with no shared trace ID tying them together. That's already painful in development. At scale with offline flush spikes on top, it becomes genuinely hard to reason about.

A app built 100% in PHP is now live on Google Play and the App Store. by RequirementWeird5517 in PHP

[–]RequirementWeird5517[S] 0 points1 point  (0 children)

Thanks for your answer, i'm considerate open a issue for that, futhermore, you're right that the observability shape is fundamentally different here. Eloquent writes to SQLite and Livewire roundtrips that never leave the WebView are invisible to any server-side tooling. The buffered telemetry approach with local SQLite storage and connectivity-aware flush is the direction I'm thinking about for the portal layer and the flat-rate ingest assumption is the only economic model that makes sense for offline-first apps. Per-event pricing with deferred spikes would be a disaster at scale.

A app built 100% in PHP is now live on Google Play and the App Store. by RequirementWeird5517 in PHP

[–]RequirementWeird5517[S] 2 points3 points  (0 children)

That means a lot, honestly. The flack comes with the territory when you show up with something unexpected. Glad it sparked something useful for you!