PHP on the frontend! No more Javascript!

Поділитися
Вставка
  • Опубліковано 6 лип 2023
  • Laravel Livewire allows you to write PHP on the frontend (kind of!) so you don't have to futz about with Javascript anymore (mostly!)
    Looking for PHP jobs or looking to hire PHP devs? Check out Larajobs: larajobs.com/?partner=108.
    Check out the docs at laravel-livewire.com
    01:44 Installing Livewire
    02:26 Updating our default views
    03:28 Making a Livewire component
    04:37 Adding state
    05:08 Binding state
    06:45 Inspecting the network tab
    09:35 Calling methods
    11:28 Events, nested components, file uploads
    12:16 Alpine.js
    13:30 Livewire V3
  • Наука та технологія

КОМЕНТАРІ • 752

  • @teej_dv
    @teej_dv 11 місяців тому +217

    aaron makes me love php

    • @aarondfrancis
      @aarondfrancis  11 місяців тому +8

      Pinned it

    • @orenders
      @orenders 10 місяців тому +2

      Laravel is NOT php.

    • @dputra
      @dputra 10 місяців тому +9

      ​@@orenders you can't run laravel on c#

    • @mihajlocolic01
      @mihajlocolic01 10 місяців тому +2

      @@dputra goteem

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

      Aaron is an incompetent. JavaScript support Unicode (think foreign language). PHP no not support. Unless you want to limit yourself to the anglophone market. PHP is a waste of your time.

  • @dmdboi
    @dmdboi 11 місяців тому +48

    "Have you ever had a thought..". None, I have a zero thought policy.
    Even thought I don't use PHP, your videos are entertaining!

    • @aarondfrancis
      @aarondfrancis  11 місяців тому +10

      Zero thoughts, zero suffering. You may be onto something here

  • @isurujn
    @isurujn 10 місяців тому +71

    I've been a mobile developer for the past 10 years but PHP has a soft spot in my heart, no matter how much hate it gets. I built a little backend for a mobile app I developed for a software competition way back in 2012 (and won 3rd place!). All vanilla PHP, no frameworks. I wasn't aware of Laravel back then. I tried it here and there but my career took me elsewhere. Your videos on PHP makes me wanna learn Laravel again.

    • @ryanlak1234
      @ryanlak1234 7 місяців тому

      What tech stack do you use for your career now?

    • @isurujn
      @isurujn 7 місяців тому

      @@ryanlak1234 I'm in mobile development now. Mostly iOS development with Swift.

  • @Icodestuff
    @Icodestuff 10 місяців тому +20

    Fellow Laravel content creator here, absolutely love your style of video.
    You have really nice personality & charisma in this video, keep it up man!

    • @aarondfrancis
      @aarondfrancis  10 місяців тому +3

      That means a lot to me, thank you so much!

  • @carloslfu
    @carloslfu 8 місяців тому +4

    I started watching PHP content again after 6 years of working with other languages, all because of your videos. I was surprised to see PHP added types! Also, Laravel and all of the PHP ecosystem have advanced a ton! Great content Aaron!

  • @David-ng9qh
    @David-ng9qh 11 місяців тому +14

    Another great video! Livewire is honestly so cool and magical.
    Keep up the great PHP/Laravel content!

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

    Your style of explanation makes the topic more interesting. Great !!!

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

      That's nice of you to say, thank you!

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

    After each video that I watch from you, I have a big smile on my face. ❤

  • @V3LOXy
    @V3LOXy 10 місяців тому +16

    For anyone using Symfony, Symfony UX works similarly and has support for vue/svelt/react components too

  • @holonaut
    @holonaut 9 місяців тому +5

    Great video!
    One thing worth explaining in the counter example: Every time you click the increment button, you not only send to the server that the "increment" function should be called, but also send the entire previous state of the component in the "memo" field. First the component gets hydrated, e.g. $counter gets set to 22 or whatever the "memo" says, and then the function is applied. The backend then increments it to 23 and sends the new view out, but also the new memo which is then stored by the frontend.
    Took me a day or two to figure this out. Before that, I thought some cache or db sorcery is going on.

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

    been waiting for Livewire v3.0 so long...
    Your videos are the best. :)

  • @MrNichuya
    @MrNichuya 11 місяців тому +9

    I've been using Livewire since version 1 and have never thought to use anything else since then, even started my first open source package for the TALL stack called tall-kit components

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

    Been watching your videos for the past week. It's this weekend that I'm building something with Laravel. I've been skimming through the docs a lot, and I'm hopeful

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

      I too am hopeful! Best of luck

  • @patricknelson
    @patricknelson 9 місяців тому +24

    Also worth a look for backend lovers: HTMX. Its functions very similarly, but is not tightly coupled to any particular backend language.

    • @elementxyz
      @elementxyz 9 місяців тому +6

      That was the first thing that came in my mind. Is it similar to htmx. 😊

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

      @patricknelson Laravel + htmx is my next experiment, full-on!

  • @Rikco.337
    @Rikco.337 3 місяці тому +1

    Life changing :D Great video .. thanks a lot ! *Loving PHP for 20 years now.

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

    i just found your channel and subbed to it. ive been using php for the past 9 years. ive known live wire for the past year but havent dared to try it. i will try this now.

  • @throbicon
    @throbicon Місяць тому

    I just fell in love with PHP. Thank you Aaron!

  • @janedawg09
    @janedawg09 25 днів тому

    cool. just watched two of your vids. contents' both entertaining and educative. your explanation's very easy to follow too

  • @timebroua
    @timebroua 9 місяців тому

    I love PHP!
    Thanks for loving even more!

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

    I'll re-watch this video many times because I just searching this, a way to use php on front-end. I don't know if is the best pratice but I'll exercise my code this way! Thaks a lot!

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

    Great!!! I wanna start to learn php and your videos helps a lot! tks man =D

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

    i been using Laravel + Vue for several years and its been great! The one off time I need some SSR or related thing I just use Blade. I haven’t really found the need for Livewire (because my experience with Vue has been so good) but this makes me want to give it a shot and mess around

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

    You speak with so much conviction😃.
    I would like to see an overview of PHP for backends/APIs

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

    I remember in the early days of the web that you could install a DLL or a plugin in your browser which made it possible to interpret any language you wanted (as long as that language was designed for the web, of course).
    So there were websites that were made with VB or Java or JS.
    Or you could write the plugin yourself and interpret your own favorite programming language (not an easy job, but the possibility was there).
    All thanks to a property of the tab script: type.
    All that is over.
    I miss those times.

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

      You can still kind of do that with wasm. Like PyScript does to execute python in the front end instead of javascript.

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

      you could also use JS on the server side in the early days of web programming (IIS supported it. ).
      You could also write STYLESHEETS with JS.
      Those were called JSS instead of CSS (Javascript Style Sheet).

    • @folkrav
      @folkrav 10 місяців тому +2

      Those often came with the very "fun" caveats that security was abysmal and compatibility with different OSes/browsers was crap. From a developer perspective, they may have been fun, but from a user perspective, I can safely say I don't miss this _at all_.

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

      @@folkrav Well, although what you say is true for the general public, there are specific cases where it has practical application and is even desirable, for example in a backend application for a company's intranet.

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

      @@jamesrosemary2932 Then you end up with situations like at some Fortune 100 place I did consulting at, where most developers outside those working on said internal tools used Linux. Pretty much all had to keep a Windows VM around just to run IE cause that intranet software relied on Silverlight 🤷

  • @ernestharuna
    @ernestharuna 10 місяців тому +3

    I've been on this path for a long time. I used Blade previously, but now, I'd use Livewire instead, it has some interesting features found in other Javascript frameworks

  • @igorskyflyer
    @igorskyflyer 10 місяців тому +2

    Oh, wow, this is like PHP and JavaScript had a child, love it 😙

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

    This is the first time i feel like hitting the like button more than once on a UA-cam video 😊

  • @SiteStudio
    @SiteStudio 3 місяці тому

    HTMX was the first thing that popped into my head when you mentioned Livewire. Love seeing Hypermedia-driven technologies pushing back on the React stuff.

  • @imqqmi
    @imqqmi 10 місяців тому +5

    Wow, looks like such an elegant way of reducing js frameworks! In my next php project I'll be sure to check it out. I've been ripping out react and angular from projects and replacing it with vanilla javascript and server side code as much as possible. Made a tremendous improvement in speed and maintenance and readibility.
    Haters of php haven't used php 7.4 onwards and all the new features it provides.
    And lets be honest, many who use async, dependency injection and inheritance in C# or java make an absolute mess of things, including myself.

    • @orenders
      @orenders 10 місяців тому +2

      very strange comment, we allready as several years use php 8

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

    Thank you so much for this. I would love more tutorials of maybe building a project from start to finish

  • @ronaldbarcat
    @ronaldbarcat 10 місяців тому +18

    I think this is good for quick prototyping or showing quick mvp and for relatively smallish projects. Since I started with API driven development with Laravel, I never wanted to go back to tightly coupled monolithic web development. As fullstack web dev, embrace the new tech stack, frontend frameworks are there for a reason and it's inevitable if you want your skillset to be marketable.

  • @tinpa1756
    @tinpa1756 23 дні тому

    Bro this guy talks to me like I'm a toddler and I'm here for it, love the vibes

  • @str2254
    @str2254 5 місяців тому

    This is actually mindblowing. I cant believe i'm hyped to learn php

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

    I am an "anything but JavaScript" type of guy. I welcome this.

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

    great stuff. livewire is fun. now, more devs can have fun with livewire. keep it up

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

    Wow you're a really good teacher!

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

    The advantage of PHP is that hosting is so cheap. With this technology it becomes even more interesting! Thank you

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

    I still haven't got around to programming with PHP, but after watching this video, I was curious about this 'Livewire'.
    I'm going to send this video to my friend who loves PHP and Laravel

  • @dsuess
    @dsuess 10 місяців тому +6

    I love PHP!! Hands down, I'd prefer to do more of the code in PHP and less in React/Angular, especially if this is going to execute faster than JS.
    Great breakdown, thank you!

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

      this framework built on top JS. So it never execute faster than JS. This framework hides JS implementation. Like Blazor.

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

      @@davidstephen7070 blazor wasm is different if I understand correctly, they have their own "shadow DOM"

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

    I actually like PHP, it was my very first backend technology which I dabbled with for about 2 months and afterwards jumped into Django with Python which is OK. There is so much you can learn with PHP as your first programming language. I only wish there were jobs for PHP developers in NYC, there are barely no jobs here.

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

      Yeah I wish there were more PHP jobs as well. You might check out larajobs.com if you're open to remote!

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

      @@aarondfrancis Thank you I will check out the site.

  • @heyalejandro175
    @heyalejandro175 Місяць тому

    That was awesome! Thanks Aaron!

  • @krtirtho
    @krtirtho 11 місяців тому +33

    As a svelte fanboy this thing burns my soul
    Just imagine storing state in server
    It breaks REST, frontend and abuses HTTP requests
    I thought Angular was the worst. This is beyond Angular 😂
    Btw, nice video ❤

    • @aarondfrancis
      @aarondfrancis  11 місяців тому +14

      Nah state is on the frontend it just gets sent to the backend to rehydrate the state on the backend. PHP builds and destroys the world on every request, so there's no stored state

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

      Ah yes. This is a typical post-2020 frontend developer saying bullshit about a mature tech they never tried. PHP is stateless by design. It never stores states beyond a lifetime of a request.

    • @thedailycutline278
      @thedailycutline278 10 місяців тому +4

      As a nextjs dev, Angular aint bad, php is on its own level of being bad

    • @MrSandvich03
      @MrSandvich03 10 місяців тому +7

      @@thedailycutline278 It's still better than JS

    • @liquidsnake6879
      @liquidsnake6879 10 місяців тому +16

      You do realise most roundtrip applications are vastly outperforming "modern" SPA crap right? We deal with network latency, you deal with 30 megabytes of javascript bundles and tons of nonsense from libraries you don't even understand blocking your thread.

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

    Thanks Aaron for share useful content👍👏👏

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

    I have done in a project last year and i was quiet surprised how good that was , still have some improvements buts its great .

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

    The fact that livewire is made with tailwind too is the bomb

  • @chriscjjones8182
    @chriscjjones8182 9 місяців тому

    Very interesting. Might have to finally check out laravel properly now

    • @aarondfrancis
      @aarondfrancis  9 місяців тому +1

      Ladies and gentlemen... we got him! ❤️

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

    Your videos are awesome! Would love more Laravel+Livewire content :D

  • @grim.reaper
    @grim.reaper 11 місяців тому +1

    Very interesting, I don’t know php but this is pretty neat concept

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

    Laravel Blade has this for some time, great to see expanded in livewire!

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

    Been using Livewire for an year now - its fantastic!

  • @christianlembke3410
    @christianlembke3410 3 місяці тому

    Omg that's amazing, thanks for sharing 😊

  • @ditzdee1
    @ditzdee1 10 місяців тому +2

    been an fullstack and backend developer but, currently more interested in backend. PHP is my first language in this industry. while trying other language, I find it's simpler not to think how to manage garbage collector (PHP only keep it until the request is done), and to manipulate array and more of them. Only it's sytax take longer than other few languages. I love this language, but still the market job requrements in my country is rare for this language for backend.

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

    I love this livewire thing!

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

    No way!!!! I just finished your mysql course! It was epic! Really happy that I found your personal channel! Can't wait to see more videos from you!

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

      You made it! I'm here! Glad you enjoyed the course 🤗

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

    I love Livewire it’s all a php dev needs!!

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

    Really i liked your video 💖💖

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

    As a php developer who now does Angular, this looks so familiar.

  • @sidatsuarezgarcia5062
    @sidatsuarezgarcia5062 5 місяців тому

    Please just make a course on PHP and Laravel, your way of explaining things it´s awesome man!!!!!

  • @TheJobCompany
    @TheJobCompany 10 місяців тому +29

    My only problem with the "HTML over the wire" pattern is that it makes it too easy to build applications that require too much server interactions for trivial state changes that can just as easily take place on the client entirely. This results in poor design, such as the way GitHub has to make a request just to render a markdown preview. That's why I prefer how React Server Components by design make it so you cannot, for instance, use state on a server component, forcing you to make it clientside.

    • @aarondfrancis
      @aarondfrancis  10 місяців тому +12

      Servers are great though! Super powerful, very awesome. And I'm not sure using GitHub as the negative example is very compelling. I get it though, HTML over the wire isn't right for every situation. It is right for more situations than it gets credit for though!

    • @Stopinvadingmyhardware
      @Stopinvadingmyhardware 9 місяців тому

      That’s what WASM is for.

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

      @@Stopinvadingmyhardware What does that mean? Are you saying use WASM for managing state?

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

      @@TheSaintsVEVO Why are you managing state machines in browsers? That’s the opposite of secure

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

      @@Stopinvadingmyhardware UI state

  • @Xcombo
    @Xcombo 10 місяців тому +19

    It seems like it works very well, but I am concerned about the excessive http requests.
    It may be fine for small sites, but if you scale to a couple thousands of users, you are going to want as little backend requests as possible in order to not crash your server.

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

      laravel protect it.

    • @loicknsenda673
      @loicknsenda673 10 місяців тому +7

      @@yoskokleng3658 How ? can you tell us more about that ?

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

      @@loicknsenda673 go to larvae’s document and find it. In code we will found it in config of laravel project. Laravel project protect too many request from the same ip and we can set how many request that allow user request per minute in the same ip.
      Remember -> in the same ip
      Laravel can handle thousands request.
      Your service won’t crash at all.

  • @dfrontierit2114
    @dfrontierit2114 8 місяців тому +1

    I have been using pure PHP for the past 12 years. All modern frameworks seem so complicated and just reinventing the wheels, by the way these frame works just come and go with the trends. Also the frameworks seem to just cater to the capabilities of the moment whereas all the modern cool features yet work best and simple on pure codes. Also I am literally able to code out a project by the time a person tries to setup and configure frameworks. The long way worked well for me after all than the shortcuts and trends.

  • @MrShaheer
    @MrShaheer 10 місяців тому +6

    You could also use JS on the SERVER SIDE in the early days of web programming in 1999! long before NODE.JS was a thing (IIS supported it. ).
    You could also write STYLESHEETS with JS.
    Those were called JSS instead of CSS (Javascript Style Sheet).

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

      JSS is a bad thing !

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

      an all frontend and backend in vanilla javascript would be 🔥

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

      @@jefestar oh yeah. It could have been that, but the support wasnt good enough, only Microsoft supported it and their version wasnt as powerful as Node.

    • @eugrus
      @eugrus 9 місяців тому +1

      ​@@jefestarif that emoji stands for hell 😂

    • @jefestar
      @jefestar 9 місяців тому

      @@eugrus 😂

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

    Looks good for simple pages.

  • @ariaieboy_ir
    @ariaieboy_ir 11 місяців тому +22

    TALL STACK for eveeeeeer

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

      Calm down fascist…😂
      Just kidding TALL stack is pretty cool even though I’m a VILT stack kinda guy

  • @jasper2virtual
    @jasper2virtual 8 місяців тому +1

    I always don’t know should I implement spa backend (php page routing), or spa frontend (restful api + JavaScript routing)? Can anyone suggest a good article or book to guide me the designs decision. Thanks

  • @lagcisco
    @lagcisco 11 місяців тому +25

    So much happier our team got rid of NextJS/React/GraphQL/MaterialUI for regular boring vanilla Rails+HotWire+Tailwind+AlpineJS. So much code was deleted and accumulated cruft to support the graphql api and the entire massive React app. We can put out features a lot faster now and even performance improved, less complex deployments as well, wins all around.

    • @aarondfrancis
      @aarondfrancis  11 місяців тому +6

      The vibes are shifting. We're so back!

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

      Turbo frame are something incredible!

    • @mikopiko
      @mikopiko 9 місяців тому

      @@americanhero3881 What is it you don't enjoy with Rails?

    • @mikopiko
      @mikopiko 9 місяців тому

      @@americanhero3881 Oh okey, their design regarding the "convention over configuration" can be hard to work with if you don't fully grasp it.

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

    Awesome! Way overdue.

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

    That was very intresting! But i have one question. The section that you showing that the input updates the ouput via http post request like the ngModel in angular. So my question is if this is secure or not. Because everyone has access to the dev tools and they can easily see those updates and i assume that can lead to an html injection or more am I right or am i missing something?

  • @celebritydev1
    @celebritydev1 9 місяців тому

    I use livewire but when performance matters, I use react.
    Between, great content.

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

    Not a php dev but I still think this is pretty awesome

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

    This is the first time that PHP makes me excited.

  • @adolfomoram
    @adolfomoram 10 місяців тому +3

    I tried for one year, maybe more, I think SPAs are a bit complicated to implement with livewire I also found it hard to work with JavaScript libraries like tagify or file pond, when it reloads it overwrites the state messed up the library. I then changed to Inertiajs and Vue and I am loving it so far...

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

      Inertia is great! I'm a big Inertia fan

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

    "No more javascript" made me subscribe.

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

    We are about to start several new projects. I was going to use laravel+Reactjs. But this option is very interesting.

    • @aarondfrancis
      @aarondfrancis  10 місяців тому +2

      If you're looking at Laravel + React, do look at Inertia.js for that too

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

      @@aarondfrancis thanks, I will do.

  • @user-ks2ic5nk2y
    @user-ks2ic5nk2y 10 місяців тому +1

    i just love PHP
    , i never understand why it doesn't get the glory it deserves,

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

      That's why I'm here! 🫡🫡🫡 We'll return PHP to its rightful place at the top

    • @user-ks2ic5nk2y
      @user-ks2ic5nk2y 10 місяців тому

      @@aarondfrancis with you all the way
      sir,

  • @DharmikGohil-bw2ug
    @DharmikGohil-bw2ug Місяць тому

    Great Video

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

    I'm really loving what HTMX's doing...

  • @kewltune4683
    @kewltune4683 9 місяців тому +1

    Totally love the “hit the dislike button twice” part! Thank you for the great video on this topic!

    • @windyhen2567
      @windyhen2567 Місяць тому

      and the poker face while saying it - niceeee

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

    Great video

  • @yousufameer
    @yousufameer 9 місяців тому

    Best Explanation

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

    I haven't used php (laravel and stuff) for almost 4 years now, apparently i switched to react and node.. but man, vite replacing CRA and webpack, next.js replacing react, deno and bun replacing node, even during my typing may something had replaced already..
    my motivation to learn some stable tech-steck was a lightning talk about JS by Gary Bernhardt from CodeMash on 2012

  • @LanceBryantGrigg
    @LanceBryantGrigg 9 місяців тому +1

    This could really catch on for the right app.
    I suspect people will prefer not to have the automagic for some cases; I am curious too see what happens.

  • @lpanebr
    @lpanebr 9 місяців тому

    This is awesome.

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

    Thank you very much!🙏

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

    it's really a nice information

  • @kamalkamals
    @kamalkamals 9 місяців тому

    Finally php team weak up , but i guess it still limited and the data binding already exist on other language programming like c# with reactivity value of each variables like in your video, hope in the future php team make more changes :) good video keep up.

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

    I don't think it would be any faster than svelte, but thanks for the insight. Nice to try

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

    Keep up the good work!
    We should be able to use any programming language in the browser. LiveWire for C++ or Fortran? Why not? 🤭

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

    what is the advantage of making multiple http requests to change an input value instead of using javascript to do that ?

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

      All depends on the use case! You can defer or debounce the input like I mentioned. In reality, you'd be using it for things you would normally need ajax for.

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

    After writing a hell of a lot in other frameworks, even in Laravel, after discovering livewire the productivity boost is incredible!

  • @mycreativecode
    @mycreativecode 7 місяців тому

    my man love u for PHP

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

    "I wish I could write more PHP" got me good xD

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

    Love it .. I would rather go full circle with php that react.

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

    Awesome video Aaron! I wonder if there is any way to write PHP that runs in the browser?

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

      nevermind, I watched till the end and I quite like the alpine.js approach.

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

    God its so nice to hear someone talk good about PHP. I work with Java developers who only ever talk shit about PHP and I'm so over it.

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

      Honestly I got tired of people talking trash all the time so I decided to start a counter-influence campaign

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

      ⁠@@aarondfrancis I was wondering if you were being serious or sarcastic when you said “never hearing anyone say anything bad about PHP.” Lol!
      Personally, after 10 years of working with PHP and a few years on the PHP Internals mailing list seeing how the sausage gets made I then discovered GoLang and experienced how great it is to be able to re-factor knowing that type safety has your back. Also, with finding my new skills in high $$$ demand like they never were when working with PHP, I cannot imagine ever doing PHP work again.
      Not saying you are wrong to work with it or like it, just that I am enjoying coding again in a way I haven’t after my first few years with PHP. #fwiw
      P.S. I watched your video not to slag No PHP but instead because I wanted to see how it was possible to do PHP on the front end. My take away is that it is not! The PHP is still running on the server and not in the browser. But, it is an interesting approach even though the title was click-baity! 😄

  • @agiliteach
    @agiliteach 5 місяців тому

    So gorgeous, I think I'll switch form Symfony to Laravel...

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

    hell yea can't get enough of php!!

  • @lostcarpark
    @lostcarpark 9 місяців тому

    I came to PHP for back end web development, but have since done a lot of shell scripting with. Now we can use it for web front end too! We just need PHP for desktop development...

    • @aarondfrancis
      @aarondfrancis  9 місяців тому

      Boy do I have good news for you. Check out Native PHP

  • @victorpinasarnault9135
    @victorpinasarnault9135 9 місяців тому +1

    Did you saw PHP in a sandbox enviroment with WebAssembly?
    They did that a few weeks ago.

  • @pkop4
    @pkop4 9 місяців тому

    hard to tell if the livewire namspacing on some of your files and components is due to app name or livewire feature itself. seems using a more unique app name would avoid that confusion.