Build a sales notification app using NativePHP

Поділитися
Вставка
  • Опубліковано 23 лип 2023
  • NativePHP has been announced at Laracon by Marcel Pociot. A collaboration between Marcel and Simon. With NativePHP, we can build desktop applications with PHP. Let's put it to the test and make a little proof of concept.
    Say hello on Twitter: / philo01
    Make a living selling code via Anystack: d.pr/R8RtNF
    Blog: philo.dev
    Video audio enhancements by clean.audio
  • Наука та технологія

КОМЕНТАРІ • 91

  • @Viveksharmaa
    @Viveksharmaa 11 місяців тому

    I was eagerly waiting for your contribution on UA-cam. Thanks Philo for sharing your knowledge and experiences.

    • @PhiloDev
      @PhiloDev  11 місяців тому

      Thanks for the kind words! 🙏🏻

  • @sunnysk43
    @sunnysk43 11 місяців тому +7

    Absolutely amazing! Waited for a long time! You guys rock!

    • @PhiloDev
      @PhiloDev  11 місяців тому +1

      Hope you enjoyed it!

  • @hakoom_2000
    @hakoom_2000 11 місяців тому +1

    this is my second video and i am middle or less programmer and I enjoy your videos cause I notice many things that I used to write in a long way and you unintentionally solve them for me. Together, you continue to upload the latest updates in laravel, livewier, and things related to php. Knowing that I love livewire too, keep going, legend.swallow Subscribe 😂

    • @PhiloDev
      @PhiloDev  11 місяців тому

      Thanks for the kind words, that's great to hear! 😄

  • @kabirusani4411
    @kabirusani4411 11 місяців тому +4

    This is awesome. Can't wait to use Native php already

  • @KhairulAzmi21
    @KhairulAzmi21 11 місяців тому +1

    Thank you brother for the information , excited to explore NativePHP !

    • @PhiloDev
      @PhiloDev  11 місяців тому

      Any time! 😄

  • @joelmurphy7702
    @joelmurphy7702 11 місяців тому

    Quite a neat example! Thanks for showing us this demo of nativephp.

    • @PhiloDev
      @PhiloDev  11 місяців тому

      Glad you liked it! :)

  • @LenartMlinar
    @LenartMlinar 11 місяців тому +2

    Looks very promising! How does it work with data stored in a database (MySQL in Laravel for example). Is the database located localy on the machine or can you interact with one on a live server?

    • @LenartMlinar
      @LenartMlinar 11 місяців тому

      And a follow up question: if so - can you have multiple apps on different machines with data being in sync and persistent?

    • @PhiloDev
      @PhiloDev  11 місяців тому +3

      By default it will use a SQLite database. You can interact with remote servers but you should be aware that any credentials are public because your code is not encrypted.
      You could build an implement to keep data in sync. Using OAuth and APIs would be the best route.

  • @alaaeddin96
    @alaaeddin96 11 місяців тому +2

    Thank you very much. Really looking forward to using it on Windows

    • @PhiloDev
      @PhiloDev  11 місяців тому

      You're welcome!

  • @biomorphic
    @biomorphic 6 місяців тому +1

    I am a bit confused because in the documentation you mention both Electron and Tauri. Which one does NativePHP use? If I am not mistaken Tauri has been written in Rust.

    • @PhiloDev
      @PhiloDev  6 місяців тому

      The current release uses Electron. I’m not sure what the status is of the Tauri version. They are both wrappers for building apps while PHP is embedded to allow execution of PHP.

  • @mohamednafil8983
    @mohamednafil8983 11 місяців тому

    Great🎉. Waiting for more from you

    • @PhiloDev
      @PhiloDev  11 місяців тому

      More to come! 🎉

  • @eunardayangco2987
    @eunardayangco2987 10 місяців тому

    Good Day. I was recently watching your video and I was curious if this Native PHP consume a lot of memory on your computer as the same issue on Electron JS?

    • @PhiloDev
      @PhiloDev  10 місяців тому

      Electron has improved over the years, and memory consumption is pretty good! 😄

  • @kibetkiptanui6293
    @kibetkiptanui6293 11 місяців тому +1

    Wooow this is mind blowing..

    • @PhiloDev
      @PhiloDev  11 місяців тому

      It’s really cool! 🎉

  • @DEBUGENTITY
    @DEBUGENTITY 10 місяців тому

    This can make PHP shine again

  • @JSONFX
    @JSONFX 8 місяців тому

    What theme are you using for vscode including the fonts? Thanks!

    • @PhiloDev
      @PhiloDev  8 місяців тому

      I'm using PHPStorm with the default light theme and also the default font.

  • @ronald9137
    @ronald9137 11 місяців тому

    Thank you for sharing

    • @PhiloDev
      @PhiloDev  11 місяців тому

      My pleasure! 😄

  • @Sahrokh
    @Sahrokh 11 місяців тому +2

    Can't wait to see it ported over to Windows (without hacks)!

    • @Rapid-eraser
      @Rapid-eraser 11 місяців тому

      The main problem I see is that they are relaying on static-php-cli where there is no binary for windows yet ...

    • @Quadman4853
      @Quadman4853 11 місяців тому

      @@Rapid-eraser Which means the user can just open the source files including secret variables and modify the scripts to his needs

  • @youtubevideos415
    @youtubevideos415 10 місяців тому

    Where can i find some screenshots of how the native apps looks like? I quickly scrolled through this video and the endresult was never shown. Also the nativePHP website doesn't seem to have any screenshots.

    • @PhiloDev
      @PhiloDev  10 місяців тому +1

      You can use HTML and CSS to make the app look like anything you want. The end result is shown in this video but its a sales notification so there isn’t any UI. If you search for native php on Twitter/X you will find various examples.

    • @youtubevideos415
      @youtubevideos415 10 місяців тому

      @@PhiloDev Oh, OK. Thanks. I thought it would be more like wxWidgets or QT or something.

  • @abdalkhalekchamkha3622
    @abdalkhalekchamkha3622 11 місяців тому

    First one , thanks for update

    • @PhiloDev
      @PhiloDev  11 місяців тому

      No problem! 😄

  • @codingzen869
    @codingzen869 11 місяців тому

    Thanks for the video! Larajobs has a bounty for a notification project. Will help.

    • @PhiloDev
      @PhiloDev  11 місяців тому

      Your welcome! :) Good luck with the bounty!

  • @EspenGrimsgaard
    @EspenGrimsgaard 11 місяців тому +1

    I think you could have disabled terminal notifications somewhere in the project config (webpack config for me) to avoid installing rosetta.

  • @lukmauu
    @lukmauu 11 місяців тому +1

    Great to see PHP like this🎉, however, as a PHP dev I think it has its place and it is not like that. Maybe a small project but nothing to serious for this there is far better languages

    • @PhiloDev
      @PhiloDev  11 місяців тому +4

      Agree, for more advanced projects you probably want to go native instead of a wrapper.

  • @samearnoldwamae
    @samearnoldwamae 10 місяців тому

    Assuming a scenario where I`d want a route on the api.php file accessible on the LAN, a use case, print service api, how would one go about it? 😂 I have tried Artisan::call('serve'). Definately didnt work.

  • @MohammadRoshandelpoor
    @MohammadRoshandelpoor 11 місяців тому

    It's such a nice package, wow

  • @koralagemadhushan9937
    @koralagemadhushan9937 11 місяців тому

    what is the color scheme and file icon theme?

    • @PhiloDev
      @PhiloDev  11 місяців тому

      It’s the default PHPStorm light scheme and the new UI option you can enable.

  • @punkygamer7668
    @punkygamer7668 11 місяців тому +2

    Everyone says php is dead from past and Now Laravel is Sick🥰🥰🥰 Loved It ..

    • @PhiloDev
      @PhiloDev  11 місяців тому +2

      PHP and Laravel are alive and kicking 🚀

    • @punkygamer7668
      @punkygamer7668 11 місяців тому

      @@PhiloDev Indeed✌️🔥

    • @cryptoboy1461
      @cryptoboy1461 11 місяців тому

      They don't know that PHP is actually immortal lol.

  • @rsvtech367
    @rsvtech367 11 місяців тому

    Super

  • @KozaKrisz
    @KozaKrisz 11 місяців тому

    Most of the work here is done by Electron. The way I see it, NativePHP is a PHP interface on top of Electron. I think Tauri would have been a better choice, but after all NativePHP is still in alpha status, good decisions could be made even now.

    • @itsme3217
      @itsme3217 11 місяців тому

      Yeah I agree it's could be lot better and more efficient

    • @PhiloDev
      @PhiloDev  11 місяців тому +4

      Tauri support is underway :)

  • @ulrich-tonmoy
    @ulrich-tonmoy 11 місяців тому

    so its electron wrapped for php

    • @PhiloDev
      @PhiloDev  11 місяців тому +1

      Yes! Pretty cool right? 😄

  • @mackynyxz
    @mackynyxz 11 місяців тому +1

    cool! but waiting for windows to test!

    • @PhiloDev
      @PhiloDev  11 місяців тому +1

      I think they are working on it! :)

  • @chhirag
    @chhirag 11 місяців тому

    I tried to run it in linux but didnt work, is it available on linux?

    • @PhiloDev
      @PhiloDev  11 місяців тому

      It should according to the documentation.

  • @gotoslovakia
    @gotoslovakia 11 місяців тому

    How to build it?

    • @PhiloDev
      @PhiloDev  11 місяців тому

      What do you mean? :)

  • @rickybarabba7866
    @rickybarabba7866 11 місяців тому

    NativePHP is a promising project....

    • @PhiloDev
      @PhiloDev  11 місяців тому +1

      Definitely 😄

  • @webtantras
    @webtantras 11 місяців тому

    Unable to make it work on windows 11

  • @saidadz1903
    @saidadz1903 8 місяців тому

    How to get exe file

  • @sahin_ozden
    @sahin_ozden 11 місяців тому

    I think this mic for ASMR. I heart strange tongue voices 😂

  • @haimmm3364
    @haimmm3364 11 місяців тому

    what about androaid and ios application?

    • @PhiloDev
      @PhiloDev  11 місяців тому

      Those are not supported at this time.

  • @SamuelRaynor79
    @SamuelRaynor79 11 місяців тому

    PHP has been able to do "native" apps for a long time. There are widget library bindings for PHP. Electron isn't native...

    • @PhiloDev
      @PhiloDev  11 місяців тому +1

      True it's not really native. Still, it seems to be the first convenient way to start building desktop applications with PHP.

  • @cryptoboy1461
    @cryptoboy1461 11 місяців тому

    How about Mobile Applications?

    • @PhiloDev
      @PhiloDev  11 місяців тому +1

      I think there is a proof of concept but it's unknown if this will ever become available as I heard to Apple doesn't like it when you embed binaries to run code so it might not be possible.

  • @abrotheryourbrother3429
    @abrotheryourbrother3429 11 місяців тому

    Is this a Joke? Can this really be done? First time seeing this and can't wait to even visit the website to read the documentation. (I don't even want to watch the video so as to believe that I'm actually dreaming and it's not real). Someone please reply my comment, wake me up from my dream and tell me building desktop apps can be developed with this PHP...

    • @PhiloDev
      @PhiloDev  11 місяців тому +1

      It can really be done! Watch the video ;) haha next, go and give it a try :D

    • @abrotheryourbrother3429
      @abrotheryourbrother3429 11 місяців тому

      @@PhiloDev Thanks a lot for the video. I've watched the video. It's very informative & insightful. PHP is 🔥...

  •  11 місяців тому

    There is nothing native about it? it looks like a wrapper around a browser (electron)

    • @PhiloDev
      @PhiloDev  11 місяців тому +1

      Correct! It's not really native, but still pretty cool being able to use PHP to build a desktop application 😄

  • @ibnu7942
    @ibnu7942 11 місяців тому +7

    i got bamboozled, i thought they really find a way to build php to machine code. Instead it's just a glorified browser

    • @cardboarddignity
      @cardboarddignity 11 місяців тому +5

      As all native js applications are, like Discord, Telegram and other stuff

    • @genechristiansomoza4931
      @genechristiansomoza4931 11 місяців тому +7

      It does not matter as long as it does it job and provide a useful app.

    • @ortzinator
      @ortzinator 11 місяців тому +4

      End users don't care

    • @codeboy9
      @codeboy9 8 місяців тому

      I was thinking this shit was for mobile application.
      Too much hype

  • @QuintessentialDio
    @QuintessentialDio 11 місяців тому

    the way i clicked this video was too fast

  • @gosnooky
    @gosnooky 10 місяців тому

    Light mode? Not sure if this guy can be trusted 😉

    • @PhiloDev
      @PhiloDev  10 місяців тому +1

      I actually like it during the day haha. In the evenings I switch back to dark mode.

  • @savire.ergheiz
    @savire.ergheiz 11 місяців тому

    Its basically just another electron wrapper 😂
    The app size will be huge as sheed

    • @PhiloDev
      @PhiloDev  11 місяців тому +2

      It's not that bad, and there's also a Tauri version in development which should be significantly smaller. The PHP binary is only 21mb surprisingly.

  • @AhmedOmar-ib3yn
    @AhmedOmar-ib3yn 11 місяців тому +1

    my eyes hurt, a white development environment and no dark mode? really?

    • @PhiloDev
      @PhiloDev  11 місяців тому

      It depends on the time of day 🤓 during bright days; it’s easier to read on a white background; during evenings, I’ll switch to dark mode.

    • @luizeduard0
      @luizeduard0 11 місяців тому

      @@PhiloDev I think the white theme look gorgeous. What theme is it?