NativePHP - Desktop Apps with Laravel

  Рет қаралды 41,992

Andre Madarang

Andre Madarang

Күн бұрын

NativePHP is a framework for building native desktop applications using Laravel and the tools you're already familiar with. It has support for bundling your application with Electron with support for Tauri coming soon. In this video, we'll take a look at some of the basics of NativePHP and build an example desktop application that pulls data from the Reddit API.
NativePHP: nativephp.com/
Marcel's talk at Laracon: • Marcel Pociot "Native ...
GitHub Repo: github.com/drehimself/nativep...
0:00 - Intro and Show Demo App
1:16 - Installation and setup with Vite
7:05 - Opening New Window
11:37 - Native Notifications
13:57 - Application Menu
21:39 - Menu Bar
23:31 - Database was SQLite
27:39 - Settings - Light and Dark Theme
35:54 - Demo App Reddit API
LINKS
My courses: codewithdre.com
Sign up for my newsletter: andremadarang.com/newsletter
My website: andremadarang.com
Twitter: / drehimself
GitHub: github.com/drehimself
CodePen: codepen.io/drehimself

Пікірлер: 102
@JacquesvanWyk
@JacquesvanWyk Жыл бұрын
wow what a great surprise. Nice to see your videos up again
@RakibulIslam-rj2yw
@RakibulIslam-rj2yw Жыл бұрын
Andre, very good explanation, thanks. I will appreciate another video regarding how to package and publish this app to distribute to end users.
@drehimself
@drehimself Жыл бұрын
I wanted to show the packaging and publishing of the app but I wasn't sure how to do it myself. Hopefully the docs are updated soon.
@moneyisenergy
@moneyisenergy Жыл бұрын
Andre, nice! Thanks to you I learned TailwindCSS which I love. I migrated from PHP to NodeJs/TS and never looked backand it was the best decision in my life. Do you plan to do any NodeJS maybe with the AdonisJS framework which is Laravel for NodeJs world? Keep it UP! :D
@drehimself
@drehimself Жыл бұрын
I have a few videos on Adonis from maybe 4 years ago but I plan to stick with Laravel-related content since it's what I mostly use and am familiar with.
@MuetzeOfficial
@MuetzeOfficial Жыл бұрын
With NativePHP a little dream of me comes true. Thank You for the video.
@ahmadalmabhoh4785
@ahmadalmabhoh4785 Жыл бұрын
Andre, awesome. ❤❤
@AMoktar
@AMoktar Жыл бұрын
Amazing 🎉 thanks
@Stoney_Eagle
@Stoney_Eagle Жыл бұрын
I am sooo exited for this!!!, It still doesn't work for windows yet so I have to be patient. Been eagerly watching all activity on the repo since laracon 😊
@w3hacker
@w3hacker Жыл бұрын
Why not use electron?
@nightlifeking
@nightlifeking 2 ай бұрын
It works for Windows now.
@Stoney_Eagle
@Stoney_Eagle 2 ай бұрын
@@nightlifeking a build still doesn't run properly, at least dev now starts without tinkering.
@vinsmokesanji9485
@vinsmokesanji9485 Жыл бұрын
Hello Thank u a lot for your tutorial I just want to know if I can to minimize app to try icons or for example to set up app start when os start up etc ....
@eclipse4049
@eclipse4049 6 ай бұрын
Hey andre, thanks for that great video. I want to ask, is NativePHP can scan and read all file in local directory client?
@jhoanborges6574
@jhoanborges6574 7 ай бұрын
You're my master!!!
@s.joseph406
@s.joseph406 Жыл бұрын
Great indeed, but i havent seen how tauri comes in here, i like the way tauri bundles its final .exe, do we have that power here? how does tauri play here and whats the bundle size of the final application ?
@question-du-temps
@question-du-temps Жыл бұрын
Thanks !
@FujimaruR
@FujimaruR Жыл бұрын
wow that's good news,, finnaly have an alternative beside electron
@eunardayangco2987
@eunardayangco2987 Жыл бұрын
Good Day. May I know if this is consumes lot of memory usage as well like ElectronJS?
@Oprekode
@Oprekode 11 ай бұрын
nice tutorial
@alimosbah
@alimosbah Жыл бұрын
There is something missing in the documentation of nativePHP , a mechanism or a way to build an application after completing its design
@lucasnascimento1036
@lucasnascimento1036 2 ай бұрын
Excellent video, can you tell me if it works normally without internet on the computer??
@paulholsters7932
@paulholsters7932 3 ай бұрын
any idea when it will be in bèta? Love this product!!
@fradanloparv
@fradanloparv Жыл бұрын
brilliant! You have explained it wonderfully! Could you make a video showing how to publish the app? I have not been able to publish the demo and in theory I have all the requirements, it compiles and only shows the app in the dock, also, when I do it for windows it does not open either but it shows at least 3 processes of the same name, any ideas? Thanks in advance.
@drehimself
@drehimself Жыл бұрын
I'm not exactly sure what the process is for publishing the app. I tried myself, the build works but I don't know where to find the .dmg or .exe file. Hopefully, the docs are updated soon!
@yacinehamiane8203
@yacinehamiane8203 8 ай бұрын
can I use nativePHP on windows? or only on linux and macos?
@HamadAbdulla_7
@HamadAbdulla_7 Жыл бұрын
thanks
@easyvideott7505
@easyvideott7505 Жыл бұрын
Can this tool be used with Linux? I mean can you develop an app on Ubuntu and then the final product to be *.AppImage file which can be used on Ubuntu?
@drehimself
@drehimself Жыл бұрын
Yes, a native app should be generated and available to install on all platforms via Electron (or eventually Tauri). It might be buggy right now, but I have seen some Linux/Ubuntu users in the GitHub issues.
@sword6012
@sword6012 Жыл бұрын
Great!! What is the name of your VSCode theme?
@drehimself
@drehimself Жыл бұрын
Material theme
@rhejiearanez9951
@rhejiearanez9951 Жыл бұрын
Nice Andre, but is possible to work with Vuejs?
@drehimself
@drehimself Жыл бұрын
Yeah should work fine with Inertia + Vue.
@afzaalhussain3620
@afzaalhussain3620 Жыл бұрын
can we create widow app?
@s.joseph406
@s.joseph406 Жыл бұрын
KIndly also talk about building a .exe file after building, portability , installation eg: securing exe with passwords and secretes ad finally auto updating using CI/CD. Thanks
@ObviouslyProgrammer
@ObviouslyProgrammer Жыл бұрын
Nice! What is that VSCode template?
@drehimself
@drehimself Жыл бұрын
Material Theme
@duongvankhai726
@duongvankhai726 Жыл бұрын
Can we develop an app with nativePHP ?
@0O0day
@0O0day Жыл бұрын
Can you make a simple tutorial with Vue please. Thanks
@toufiqulislam8575
@toufiqulislam8575 Жыл бұрын
Is it expected that mobile apps can be made with PHP in the near future?
@drehimself
@drehimself Жыл бұрын
If you watch the end of Marcel's talk, someone asked the same question. He said he had a proof of concept working but was unlikely to take it further.
@MrDragos360
@MrDragos360 Жыл бұрын
What's the advantaje of nativephp over using vue3 with electron ?
@rutgerhoutdijk3547
@rutgerhoutdijk3547 Жыл бұрын
If you have an existing laravel app, you don't have to rewrite everything. Many people prefer PHP over JS. Also PHP is more powerful in many ways, with JS you still need some backend to do the complex stuff. And of course you can still use inertia+vue/livewire on the frontend.
@aarkgaming-ur4ex
@aarkgaming-ur4ex Жыл бұрын
@@rutgerhoutdijk3547 true, until now i am still confused why JS(FE/client-side) don't have built-in method for removing image background you still need 3rd-party library which sometimes doesn't work and PHP(BE/Server-side) has built-in method for it which works perfectly.
@maelstrom57
@maelstrom57 11 ай бұрын
​@@rutgerhoutdijk3547 There's infinitely more things you can do with JS than with PHP.
@djhyll1
@djhyll1 10 ай бұрын
Excellent, but the menu, the menubar in Linux does not work let's hope it works soon
@Bright-Great
@Bright-Great Ай бұрын
can you do a video on how to make it an executable file and package it with database?
@ninjabuzz
@ninjabuzz Жыл бұрын
Man this is amazing ,now what is left native mobile app with laravel
@ninjabuzz
@ninjabuzz Жыл бұрын
@Andre I know this is out of the box question but what do you prefer AWS or digitalocean for laravel deployment
@principe.borodin
@principe.borodin 11 ай бұрын
How to build it?
@alimosbah
@alimosbah Жыл бұрын
Is tauri supported or only electron js ?
@drehimself
@drehimself Жыл бұрын
Only electron for now... But Tauri support should be coming soon
@alimosbah
@alimosbah Жыл бұрын
@@drehimself It's great. I hope to support Tauri as soon as possible. The scales will change with Tauri. There will be opportunities for desktop application workers with web applications.💯💯💯💯
@Bevallalom
@Bevallalom Жыл бұрын
It s still not clear how a user can install it, for example on Windows or Linux etc. User needs to run "php artisan native:serve" in CLI? How is it "native desktop application"? I went thru' the Doc but I dont get it...
@drehimself
@drehimself Жыл бұрын
There might be bugs still on Windows/Linux but generally it's just installing the composer package with `composer require nativephp/electron` and then running the installer with `php artisan native:install`. After that you can run the dev server with `php artisan native:serve`
@resin01
@resin01 Жыл бұрын
As the page says, it isnt production ready. So I dont think there is a command to compile it to an executable yet
@Bevallalom
@Bevallalom Жыл бұрын
@resin01 yes, I know. Probably that is something they need to include... we will see. The project looks promising. 👌
@resin01
@resin01 Жыл бұрын
@@BevallalomYeah. I assume it might take a bit as they need to figure out how to manage certificates. Each platform has their own requirements. Linux has none, mac needs a dev certificate I think, and windows needs a bought certificate (or none)
@JuriBinturong
@JuriBinturong Жыл бұрын
I like laravel, vue, and nuxt.
@TomisaburoRMizugawa
@TomisaburoRMizugawa Жыл бұрын
So, it's Mac / Linux only? Would be useful to mention right at the beginning that Windows users need not apply ...
@drehimself
@drehimself Жыл бұрын
It looks like Windows is supported now (with some bugs). Check out: github.com/NativePHP/laravel/issues/96
@AbdulRehman-pz4rr
@AbdulRehman-pz4rr 11 ай бұрын
Can you setup on ubuntu? make tutorial for ubuntu linux
@0O0day
@0O0day Жыл бұрын
Is it possible to use vue js? Thanks
@drehimself
@drehimself Жыл бұрын
Yup, you can use Vue the same way you would use it in a traditional Laravel app. For example, using Inertia with Vue should work perfectly fine.
@0O0day
@0O0day Жыл бұрын
@@drehimself Thank you
@yoskokleng3658
@yoskokleng3658 Жыл бұрын
@@drehimself wow, now i love Inertia vue laravel native. 😍😍 but sir how about hosting it?
@yoskokleng3658
@yoskokleng3658 4 ай бұрын
Now NativePHP is currently still an alpha
@israeliloba
@israeliloba Жыл бұрын
With this I'm so confused now, I have already moved to python for desktop development
@aarkgaming-ur4ex
@aarkgaming-ur4ex Жыл бұрын
PHP is great for DB compatibility but limited range of what you can build with it unlike python.
@Conten619
@Conten619 11 ай бұрын
are this can developmen in windows
@atlantic_love
@atlantic_love 10 ай бұрын
No troll be need to a
@bahrambayramli4343
@bahrambayramli4343 Жыл бұрын
NODEJS❤
@constantine9074
@constantine9074 Жыл бұрын
Whaaaaat? I😮😮😮
@DEBUGENTITY
@DEBUGENTITY 11 ай бұрын
If PHP can make cross platform mobile apps..
@z-root8955
@z-root8955 Жыл бұрын
This will have space and resources problems For example a 100MB app that takes a screenshot
@drehimself
@drehimself Жыл бұрын
Yeah, electron apps are known for being huge but I honestly don't think it's too much of an issue with most modern desktops having large amounts of disk space available. Plus, support for Tauri should come eventually which should help as well.
@MikeNugget
@MikeNugget Жыл бұрын
I thought this video would be about Tauri
@JACKoPL
@JACKoPL Жыл бұрын
Windows missing? ;)
@uanaocomchocapphatchetluon4759
@uanaocomchocapphatchetluon4759 Жыл бұрын
i hope someone build a framework for game apps with php 😅😅
@drehimself
@drehimself Жыл бұрын
Haha... that would blow my mind.
@savire.ergheiz
@savire.ergheiz Жыл бұрын
So native means running html UI on native OS now 😂
@rutgerhoutdijk3547
@rutgerhoutdijk3547 Жыл бұрын
In the end, it will produce machine code, it just needs a ton of abstraction layers to get there 😂 Anyway, you can sell it as an application, the end user doesn't care..
@thebirdhasbeencharged
@thebirdhasbeencharged Жыл бұрын
React Native, Electron?
@sur2548
@sur2548 11 ай бұрын
😂
@knives1212121
@knives1212121 Жыл бұрын
why did they name it nativephp? it will be confusing for a job interview lol
@drehimself
@drehimself Жыл бұрын
Naming things is hard 😅
@ilhamprabuzakys
@ilhamprabuzakys 10 ай бұрын
they should change it to smth like "Laravel Desktop"?
@aArcziMetin2
@aArcziMetin2 Жыл бұрын
Its basically a webview
@techEdunsights
@techEdunsights 9 ай бұрын
How i can make .exe
@greendsnow
@greendsnow Жыл бұрын
why?!
@bahrambayramli4343
@bahrambayramli4343 Жыл бұрын
ELECTRONJS
@leedoped6795
@leedoped6795 Жыл бұрын
naivephp?
@atlantic_love
@atlantic_love 10 ай бұрын
Way, way too much configuration just to get a simple example running. True "native PHP" would be to install a PHP executable in a folder, and simply be able to run everything from there.
@JulioMunoz-ty6dx
@JulioMunoz-ty6dx 11 ай бұрын
I have a problem, when I try to install it on windows it gives me this error message: a javascript error ocurred in the main process uncaught exception: error: spawn: x:\xampp\htdoc\morfyTPV\vendor ativephp\electron esources\js esources\php\phpenoent at childprocess.?handke.onexit(nodeÑinternal/child?processÑ283Ñ19) at onerrornt(nodeÑinternal/child_process
@mindtaker299
@mindtaker299 Жыл бұрын
cute. php is becoming powerful
@bahrambayramli4343
@bahrambayramli4343 Жыл бұрын
nope it's not
PHP on the frontend! No more Javascript!
14:47
Aaron Francis
Рет қаралды 120 М.
EVOLUTION OF ICE CREAM 😱 #shorts
00:11
Savage Vlogs
Рет қаралды 7 МЛН
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 50 МЛН
路飞太过分了,自己游泳。#海贼王#路飞
00:28
路飞与唐舞桐
Рет қаралды 29 МЛН
Building desktop apps with PHP - Marcel Pociot
47:40
PHP UK Conference
Рет қаралды 7 М.
How to make a GREAT Tutorial
14:37
Blender Guru
Рет қаралды 147 М.
NativePHP  - Create Reminder Application
1:22:19
Bitfumes
Рет қаралды 7 М.
Radix UI Overview
8:03
WorkOS
Рет қаралды 33 М.
HTMX in Laravel - AJAX calls with HTML
29:09
Andre Madarang
Рет қаралды 15 М.
The secret behind FrankenPHP: Will it revolutionize PHP?
12:40
Chris Fidao
Рет қаралды 40 М.
Laravel Folio - Page-based Routing
19:15
Andre Madarang
Рет қаралды 4,9 М.
Laravel Origins: A PHP Documentary
33:27
OfferZen Origins
Рет қаралды 156 М.
Marcel Pociot "Native PHP" - Laracon US 2023 Nashville
30:13
PHP is the future
34:27
Aaron Francis
Рет қаралды 171 М.
Kumanda İle Bilgisayarı Yönetmek #shorts
0:29
Osman Kabadayı
Рет қаралды 2,1 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 63 МЛН
ВАЖНО! Не проверяйте на своем iPhone после установки на экран!
0:19
ГЛАЗУРЬ СТЕКЛО для iPhone и аксессуары OTU
Рет қаралды 6 МЛН
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 468 М.