YouTubestream· Oct 18, 2025· 47:56· 464 views on YouTube

Let's Make Some Videos (Form Components, State of PHP, Giveaway App)

Watch on YouTube ↗
0:00

React at a moment you like. The best moments light up here.

transcript

99 moments
  1. Yeah, that's weird on YouTube. Was it Was it public? Like, could you see it when it was live there, Mr. Manifon? There we go. Yo yo.

  2. All right, I think we're back on everything now. Let's see. Let's see. Let's see. All right, I think we're back. Once I dropped it disappeared. Okay, it was public. Once I dropped it disappeared. That's good to know. I I I need to I think I'm fine like if it's I'm debating on keeping these up like

  3. public. Um it's funny that this message came up again. Um I'm debating on keeping these uh public after I after I push things out or if I should just keep things uh I don't know because I'm going to make videos of everything that I do. I guess it doesn't really matter too much, but yeah. Okay, we're back. Those just

  4. joining, glad to have you here. Um, I'm trying something new where I am recording videos as I stream. So hopefully it's engaging. Hopefully it's a little bit uh um entertaining to say the least. But, uh, we're we're in the middle of recording a form component video and I, uh, popped this up and I have

  5. Wavefinder. So, I should, if I'm using my dashboard, I should have a form with a method of, and I should be able to see like a chirp. Um I don't have this running though. Composer

  6. rundev. That should run types generate for actions. So that runs the actions for wayfinder. So now we should have a form with a method of chirp. Let's go ahead and import

  7. chirp store. So I want store from except I need to add it to a to a route first that's why. So we'll go ahead and say route resource and then we'll go ahead and say chirp and that'll be the chirp controller.

  8. Okay. So that should give us a new type. Yeah. So we should be able to in our dashboard now have this method of chirp except I need to want the store method from chirp controller. There we go.

  9. dot store. Perfect. Do I need a method there? How do we do this? I always forget how it is within uh so the user controller is or I guess in register.tsx we're just grabbing the registered user

  10. controller as a full action and then it's passing it in like this. That's what I need to do in the dashboard. I don't need method. I'm just passing it in like dot chirp form.

  11. [Music] All right. And that looks good. All right. Are we still live now that I uh kind of second guess myself? Hello. I don't know any PHP people, but I love watching your videos. More Darth Darth Vader. Glad to have you here. Um I think you pel nice. I appreciate seeing the

  12. struggle. Makes me not feel so bad for issues I run into. Good to know. Yeah, I probably will keep those public. There's no big down

  13. I don't know. Twitch died. I don't know why I'm keeping keeping getting uh Camilo, kids are ready for the weekend to start. This is great. Glad to have you here. I don't know why I keep getting dropouts from uh from the internet. I'll have to figure that out. I don't usually. So, must be something something interesting.

  14. Um so, I think we're still live everywhere. Live there. I think we're still live on Twitch. Oh, nope. Not live on Twitch.

  15. I don't know why it keeps doing that. I keep getting this error on um on OBS. I am I'm using um yeah, I'm I'm currently using PHP actor in Zed. I have switched back and forth between Intellofense and PHP actor. Um, PHP actor is a little bit more strict, I found, which I kind of like in some

  16. ways, but Intellofense usually is more accurate, if that makes sense. Been trying PHP tools is has a bit more level support. Interesting. Does PHP tools have a zed plugin?

  17. PHP tools. I have not tried that. Um, do I need a license key? Yeah, I have not tried PHP tools. So, let me know how that works. Well, not PHP Storm though. mostly because I've just never I never got into PHP Storm. That is that is the main

  18. reason I never I never was on PHP Storm. So I I don't know what I'm missing if that makes sense. Um okay. So we have everything looks good there.

  19. might I just put a errors message and I just have this be a input and a label

  20. I think that should be good. I don't know how register does it for the button. Just trying to make this the same as this. That's probably what I'll do. Just uh

  21. bring that in. Bring the spinner in the button in. Perfect. So, we should take a look here. We should have

  22. user chirps. That's because we didn't add it to the model. Perfect. And then why don't we add some fillable? Perfect. Bam. So we should have

  23. Oops. Um, we'll go to sites and we'll look up inertia form.

  24. Open up this database. We should have the chirps in there. And chirps. There's our new message. Perfect. So, we got a form. Uh, I don't I don't write inertia that much, which is why it took me a little bit longer to do this, but I do want to I I mostly just want to show that this is just like I want it to be the same

  25. exact thing. So, I want to say um I want to work backwards from here. Undo that. Put error input

  26. label form. Okay. So now I can start recording the next piece here.

  27. How's everyone doing? Add a disabled state to the submit button while processing. Good point. Do we have a disabled state for the I wonder if we have one. Uh zed looks nice and seems fast. It is nice. I like it. It's not, you know, it's not specifically built for Laravel and PHP. So there's some stuff that you have to just deal with, but especially if you're using inertia, it's great. Like every I I have I have

  28. made it so that I it works great with live wire for me. But yeah, input component special. Can we control any HTML? Uh yes, you can control any HTML inputs. Um those are just the the components that we have already in the starter kits are just uh shad CN UI. So all the ones that we have in here like this button is just um shadm UI and yeah

  29. looks like we have processing. Um so I imagine the spinner might have disabled. I'd be I'm curious why we don't have it disabled there. But yeah, you're right. We don't have it disabled. That's good to know.

  30. Okay. So, this is one thing I like to do within videos, especially if I don't want to type it out all the time. Instead of just having, hey, here, let me walk through this code, I'm going to walk backwards. So, I you saw me like delete pieces of it, then I saved it. Now, I'm going to walk it backwards. So, I'm gonna un unrecord or unpause. I've been paused this whole time while recording.

  31. So, what does this look like in an actual form?

  32. Now in a real world example, I want this user Now in a real world Now in a real world example, I want my users to be able to submit a form, create a chirp in their database. Now, for an incredibly simple example, a form that most of you might have created

  33. at some point in time in your Laravel journey. I want my users to be able to submit a message to the database. I have a chirp controller that takes in a message and then with the authenticated user, I need to create a new chirp. That's a model in my database. So having the form component means that

  34. we just need to pass it a method. A method of if that is a post or a patch or a delete. This is a form, an HTML form after all, just with some added nicities. Now, if you Now, if you have not used Wavefinder, you can find a video up here talking about what WFinder is and what it might look like to use it in your

  35. projects. But we're going to use Wfinder instead of passing it a specific route as a method. So, instead of that route path and a method, I'm just going to pass it in. So, I'm not passing it a method. So, I'm not passing in a method. I'm not passing in a route.

  36. So, I'm not passing in a method. I'm not passing in a route path. Instead, I'm just passing in this wayfinder action, and it does the rest. Now, inertia does have some additional options that we can use if we wanted to keep the uh let's say scroll bar where it is. But in this in case, I'm just going to reset the message.

  37. But in this case, I'm just going to reset on successful submission of this form the message parameter. Next, we can pass in any kind of processing or errors. These are the data that we have within the form component method. so that we can use that within our form maybe to show that this form is processing or any errors that we might have within the validated submission. So now we have access to this processing

  38. method as well as this errors parameter so that we can either show that in our form or get the errors back and display them to our user. Since this is our starter kit, we're using shaden UI for things like label as well as an input to say, hey, here's the particular message that we have. And again, the only thing that is required for this foreign component is a name for each field that we are passing into the data options.

  39. Here's where we can grab that errors. And since this is type safe, we do have the option of saying, hey, this is the errors for I think it's type safe. Here's where we pass in that errors parameter, the errors of the message.

  40. And then we have our button. This is just going to submit that form method. It's weird that it died again. I don't know why it does that.

  41. I wonder if I can put it in Twitch. One second. Wonder if I can put in Twitch that it doesn't that we shouldn't like immediately cancel it. like it should wait for it to be um

  42. settings stream disconnection protection. So, I do have disconnect protection up. That's weird. Oh, well.

  43. Hey, AJ. Glad to have you here. Um, use PHP. Oh, is this guy from Larville? Yeah, I am from Larville. How's it going, Dominic? Uh, used PHP on my last job. It's all right, but also very broken, at least for me in terms of reading. See, I've never used it, so I can't speak too much. I know a lot of people love it. Um, I just don't use it like it it every time I've opened it, it feels slow, and I'm used to VS Code. I'm used to now mostly Zed.

  44. YouTube came back after 30 seconds. I twitched in. Yeah, I don't know why I keep dropping connection. Honestly, I never have. Like even for like the riff and refine show I just did. I haven't dropped I mean that was going through Streamyard instead of OBS, but I'm going to have to figure that out. And I don't know if it's just I do need to get Ethernet connection in here somehow, but I apologize. Thank you all for

  45. sticking around. Um, so I'm going to show off the dashboard. It's not the prettiest looking, but it does its job. We have that form and everything just works as it would expect. It's not the prettiest looking, but it just does its job. Uh, it's a

  46. form that works as we would expect. When I type in a message, because I'm authenticated as that user, it is hitting that action in our controller and then saving it to the database as one of our users chirps. And there we go. That's that message that we just created.

  47. I think that's good for the full thing. There's there's not too much. I I'm going to give an extra actual adaption um for like the docs because we can't walk through everything. So let's go ahead and in the docs we'll say

  48. Now there now there are a lot of extra utility functions, accessors and Now there, now there are a lot of extra utility functions. And now there are a lot of extra utility functions, additional state that you

  49. might need, as well as an incredible amount of useful options within the form component that it's almost impossible to be able to share with you on this video here. There's a few that I want to make note of. Everything from events.

  50. Everything from events. Uh if it's cancelled while it's in progress, on error on finish, and then

  51. Where's the one I want? As well as particular options to preserve the scroll or preserve the URL or which particular fields you might want to only use and accept data from. Overall,

  52. Inertia's form helper gives you that extra Overall, Inertia's form helper just gives overall Inertia's form helper makes it that much easier to work with forms. everything that you do every single day in a layerable application and it just makes it effortless. Overall, a nurious form helper just

  53. makes things that you do every single day within a application that much easier and a lot cleaner, too. I think that's good for that one. Um,

  54. that one took a lot longer than I expected. That's okay. Uh, mostly because I I didn't know where I wanted to go with that one. It's It's tough to do like a full um I'll bring up the chat again for you all. stuff to do a full video in the sense like I don't want to it's not about forms in inertia. We've done that before and there's probably better options to do a full

  55. form submission. It's more of like what the form component looks like rather than rather than building out forms within Laravel. I do have a video that I want to do uh next week and so I'll kind of mark this one as um to edit. Um so I do have a video that I want to do next week uh about um

  56. uh what building with inertia actually looks like that I'm going to do for Laravel. And that one would be more of like a hey here's how you might use actions wayfinder um use echo like what a full stack application actually looks like. So that's the one that uh this one is more this one was supposed more just like a

  57. quick look at the form component and how it makes things a lot easier because you don't have to do too much other than pass it HTML fields and a method and a route like that's that's all you have to do. Um it's fine to go long. This is a muscle you train. Yeah. Thank you. I appreciate it.

  58. Um, use speech perform at my last job. Okay. Yes. I think the next one once I figure out like I quite like recording these videos. I mean, I didn't I only did one so far, but I also once I figure out not having the internet cut out on me, we should be looking a lot better. Let's do one of my videos

  59. for my channel. So, I have I either want to build a random lottery machine. And this one I'm curious of like if I can do it without AI. That would be fun. I also just want to look at the state of PHP. So let's do that one first. So

  60. um I think of specific intros. Pull this up. Use prefer and rely on PHP. I think like the goal with this one is more just

  61. to show like how is PHP changed. I want to like read through it. I'm actually pull up my iPad to read this one. I started setting this up last night so that I can have an easy way of um marking things as I go. So, I'm gonna pull up my thing there.

  62. I want to share this with the iPad.

  63. All right. So, now we should have the iPad be able to be here, which is great. Raise this up a little bit. Bam. Perfect. Okay. So, the goal downside is like I can't you you guys won't be able

  64. to see your own chat. I guess I can pull it up on the iPad itself. Um but yeah, the goal with this video I think is to walk through state of PHP and just share my own thoughts to what I have learned and seen as someone who came from the JavaScript world as well as um being I guess on the inside of things

  65. within the PHP ecosystem as a team member team member of Laravel. So let's let's record an intro.

  66. So, PHP is here to stay. is not dead as a lot of people think that. So PHP is here to stay. But what does that mean for us as developers? Especially if you have been working with Nope. So PHP is here to stay. What does that mean for us as developers? Especially if you have been working within PHP for any

  67. amount of time. How have things how have things changed and what's up and coming in the PHP world and what can we do about it? In this video, what I want to talk about is the state of PHP, the new survey that just came out. I want to share my thoughts as someone who moved from the JavaScript ecosystem into the PHP world and is now someone who works for Laravel, one of the strongest PHP frameworks out there.

  68. So, why don't we dive in? And we probably don't need that part. Let's cut to screencast. All right. State of PHP 2025. If you don't know what the survey is, it's a survey put on by Jet Brains, one of the

  69. If you don't know what the survey is, it's a survey put on by Jet Brains, the creator of things like PHP Storm. Uh, what else? What are the other ones called? What are the Jet Brains IDs?

  70. Weaponstorm PyCharm. The state of PHP survey is put on by the Jet Brains company, the company behind PHP storm, WebStorm, PyCharm, and other ids across a variety of spectrum of languages.

  71. And in this survey, the developer ecosystem survey 2025. Nope. And in this survey from the developer ecosystem survey of 2025 they go they and in this survey from the developer ecosystem survey 2025 they walk through the findings of what the current state of PHP actually looks like for developers who actually use PHP or who

  72. are familiar with PHP or maybe just adjacent to PHP. I want to point out how many developers. Now, I do want to point out this is a rather small sample size for a survey like this. So, it's not in any way,

  73. shape, or form indicative of what the PHP ecosystem actually looks like because it is only collecting responses from 1720 developers. 1,720. That's not a lot, but it is enough to get us maybe a head start of okay, how out of a good sample size of 1,720 people does PHP actually look like across the world?

  74. I think the vast majority of I think it also helps that the developers that were surveyed are from all over the place. It's not just strictly US or strictly other countries. So, how many full years of professional coding experience do you have? When I took this survey, I answered six to 10

  75. because that is about what I have. And that's a little bit different because I technically don't have six years of professional coding. I was coding in a professional job first six years, but that wasn't what I was paid to do. So, it's a little iffy. And for this, it's hard to say because I don't think they took specific, if I recall correctly, I don't think they said specific job title. For example,

  76. But the part that I am interested in specifically people who are taking PHP surveys like this obviously they probably have worked with PHP are probably not taking this Jet Brains PHP survey if you haven't worked with PHP and the amount of people that are in this category is incredibly surprising but also just encouraging in a lot of ways to know that PHP is growing. for new developers.

  77. How many people work in your project team? More than half of PHP developers work in small teams of 2 to seven people while 12% work independently. This I think is interesting because it is vastly different from the majority of JavaScript setups as well. If you are working in like a JavaScript, C#, Java, whatever that might look like, typically you're working in larger teams for this 56% working in small teams of 2 to 7 and

  78. 12% working independently. I think that speaks to the volumes of one maybe PHP not spreading directly into the professional landscape as much and two talking to the volume of what can be done or is maybe just expected to be done within the PHP world. And by that I mean just shipping more

  79. with less even if that's less finance less uh financial backing for those teams language adoption and usage. Majority of PHP developers do not plan to migrate to other languages in the next year. For

  80. those who do, Go and Python are the most attractive alternatives. Now, uh, Go does not surprise me. I know a lot of people who are using Go and who have used PHP in the past. Python does surprise me a little bit and that makes me think if that is more AIdriven than just language driven specifically. I know that within machine learning, Python is the way to go. I don't think anything is going to beat that in the

  81. near future. Even NodeJS, I think Python is still the best way to go for something like machine learning, AI, uh, LLMs, if you will. I am curious without even seeing the graph below this fold. How and where maybe

  82. I am curious without even seeing the rest of the languages because on my screen right here I can see Go, Python and Rust. What the other languages are I would imagine just a wild guess. I would imagine Cotlin and I would imagine I don't know Swift.

  83. Okay. TypeScript and Cotlin. So, no Swift. Uh TypeScript I just imagine kind of falls inside with PHP. You're probably using something like TypeScript alongside everything else. But the not planning to adopt or migrate I think is a good indicator. Most surveys that I've seen again this is such a small sample size. So don't take

  84. this with any or do take this I guess with a grain of salt. Most other surveys I've seen in the JavaScript ecosystem and just in the developer landscape as a whole most people are looking for the next best thing. So to have 58% say I'm not planning to adopt or migrate, I do think that speaks to maybe the stability within the PHP world.

  85. So here's a note from Brent. Important to note these numbers aren't talking about people leaving PHP. They are about adopting languages besides PHP. I think it's great to see so many PHP developers who are adding other languages to their tool belt. PHP has areas where it shines, but there are also problems that are better solved with languages like Go or Rust. Working together across these languages barriers leads to great results. The share of newcomers is slowly growing. 4% have been using PHP for less than 6 months uh from 2% last

  86. year. Okay, so that is a good thing to note. The whole emphasis of the growing number of people using PHP up from 2% last year. 4% have been using PHP for less than 6 months and 6% for less than one year in such a small sample size. Now, of course, one might say, okay, people who are going to be taking surveys are probably a little bit more excited to be sharing, even if they're new, they're excited to be sharing with

  87. as much people as possible. Those who are using the language for a long period of time, maybe they're like, I can't be bothered to take a survey like this. So that might be part of it, but the fact that there are people who are taking it out of 1,720 and 6% of those 1,720, let's pull up that math. What is that math right now? 6% of 1,720,

  88. 103 people out of 720, which is rather large sample size of less than one year have been using PHP who are taking this survey. I think I don't know. I think that's pretty incredible. I like it. As someone who is advocating for PHP in a professional instance within Laravel, the more people that I see who are coming to learn about the language as

  89. beginners, I think is great. I started learning PHP in 8.1 maybe 8.0. I did not learn PHP 7. Anything below eight. How long have you been using PHP? So this would mean I put from 2 years to less than four years. And you can see

  90. here that these people, it's interesting that it kind of coincides with the 6% graph of people who are new to the language in the last year. Uh but then more than four years, 72%. And this is not a huge shift from 2024 to 2025. I don't know what the sample size was in 2024 versus 2025. Maybe a bigger sample size, maybe less, I don't know. Um, but

  91. the fact that most of it stayed pretty still. Again, mostly just because it's part of my job and I like to know that these things are actually happening. It's not just all in my

  92. a little frustrating still that I'm having internet issues. I apologize everyone. Looks like we're back on YouTube.

  93. Yeah, for some reason. Hey, no. No. For some reason, the camera keeps failing with the no signal thing. Yeah, I don't know. I have had issues today. I don't know if it's just the weather where I'm living at or if there's something weird with maybe OBS or something like I I I am dropping connection pretty consistently or like every 15 minutes or so. So, I apologize everyone. Uh, Mr. Manifon, it's quite

  94. interesting there's no E elixir on the list. That is interesting. I find it interesting that it's not um that there isn't Elixir or like Swift, I guess, would have would have been interesting for me to see. Um, but I think we're think we're back up again. Again, sorry everyone that uh we keep hitting. I'm going to try to figure that out for the next stream. Um,

  95. but it is frustrating. Let's go ahead and jump back into it. So, which version of PHP do you regularly use? Again, just trending up again. PHP 8.x looks like 81% in 2023 to 89% 2025 and PHP 7.x falling off. So like for the most part it seems like

  96. that is a good trend because a lot of people it's it's better to be upgrading and get those security benefits but then also the benefits for having different language features as well just in the fact alone from PHP 82 to 8.4 for there's a ton of different language benefits that I, you know, I didn't have when I started, which was just a PHP 8.1

  97. that now are possible, which PHP 8.4 and 8.5 is going to be even even more PHP frameworks and CMSs. Okay, this is awesome to see. 61 61 64. I I don't I wonder what this jump was in between 67% and 58% 2021 22 22 maybe just sample

  98. size of survey takers um I'm curious what that actually looks like but regardless then the fact that it is going up between that 61 61 64% in 2025 while and here's one thing I want to make note of Just because Laravel is going up also. WordPress is going up,

  99. Symphony is going up, code igniter was the only one that slightly trended down and everything else is either staying stagnant or trending a little bit up for like things like other. So that means more and more people are adopting everything, not just Laravel, not just WordPress. And again, in such a small sample size, it's crazy that these

just you here