YouTubestream· Oct 18, 2025· 47:56

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

Watch on YouTube ↗

transcript

104 moments
  1. Yeah, that's weird on YouTube. Was it public? Could you see it when it was live there, Mr. Manifon? There we go.

  2. Yo, yo. Alright, I think we're back on everything now. Let's see, let's see, let's see. Alright, I think we're back.

  3. 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 public. Um, it's funny that this message came up again.

  4. 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 gonna make videos of everything that i do i guess it doesn't really matter too much but yeah okay we're back those just joining glad to have you here i'm

  5. try something new where I am recording videos as I stream. So hopefully it's engaging. Hopefully it's a little bit entertaining to say the least, but we're in the middle of recording a form component video. And I plopped this up and I have Wayfinder. So I should, if I'm using my dashboard,

  6. I should have a form with the method of, and I should be able to see like a chirp. I don't have this running though. Composer, run dev. That should run. Yeah, types generate for actions.

  7. so that runs the actions for wayfinder so now we should have a form with the method of chirp let's go ahead and import Chirp store so I want store from

  8. except I need to add it 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. Okay, so that should give us a new type.

  9. Yeah, so we should be able to in our dashboard. Now, have this method of chirp. Do I need to want the store method from chirp controller? there we go

  10. 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 controller as a full action and then it's

  11. 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 dot chirp dot form.

  12. 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 peach people I love watching videos Darth Vader glad to have you here um I think you'll be a pilot going nice I appreciate seeing the struggle makes me not feel so bad for issues I run through good to know yeah I probably will keep those public

  13. There's no big downside.

  14. I don't know. Twitch died. I don't know why I'm keeping getting... Camillo, 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 the internet. I'll have to figure that out. I don't usually. So it must be something interesting.

  15. um so i think we're still live everywhere live there i think we're still live on twitch oh no not live on twitch

  16. I don't know why it keeps doing that. It could be in this error on OBS. I am, I'm using, yeah, I'm currently using PHP Actor. in Zed, I have

  17. switched back and forth between Intellifence and PHP Actor. PHP Actor is a little bit more strict, I've found, which I kind of like in some ways. But Intellifence usually is more accurate, if that makes sense. And trying PHP Tools has a bit more level support. Interesting. Does PHP Tools have a Zed plugin?

  18. PHP tools. I've not tried that. Do I need a license key? Yeah, I have not tried PHP tools. Let me know how that works.

  19. why not php storm though mostly because i've just never i never got into php storm that is that is the main reason i never i never was on php storm so i don't know what i'm missing if that makes sense um okay so we have

  20. everything looks good there might just put a

  21. And I just have this be a input and a label. Okay. so

  22. 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 bring that in spinner in

  23. button in perfect so we should take a look here we should have

  24. user chirps that's because we didn't add it to the model

  25. perfect and then why don't we add some fillable perfect bam so we should have oops

  26. We'll go to sites and we'll look up inertia form. Open up this database. We should have the chirps in there.

  27. And chirps, there's our new message. Perfect. So we got a form. 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 mostly just want to show that this is just like, I want it to be the same exact thing. So I want to say, I want to work backwards from here.

  28. So I'll do that. Put error. Input. Label. Okay.

  29. So now I can start recording the next piece here. 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

  30. 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 made it so that i it works great with live wire for me but yeah input component special can we control any html inputs 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

  31. shad cnui so all the ones that we have in here like this button is just um shad cnui and yeah it 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 a disabled. That's good to know.

  32. 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 you saw me delete pieces of it, then I saved it. Now I'm going to walk it backwards. So I'm going to un-record or un-pause. I've been paused this whole time while recording.

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

  34. Now in a real world example, I want this user.

  35. 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 at some point in time in your Laravel journey, I want my users to be able to submit a message to the database.

  36. 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 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 niceties.

  37. Now if you have not used Wayfinder, you can find a video up here talking about what Wayfinder is and what it might look like to use it in your projects. But we're going to use Wayfinder instead of passing it a specific route as a method.

  38. 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. 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.

  39. now inertia does have some additional options that we can use if we wanted to keep the let's say scroll bar where it is but in this case i'm just going to reset the message 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

  40. 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 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,

  41. we're using shadc and 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 form component is a name for each field that we are passing into the data options. 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.

  42. I think it's type safe. Here's where we pass in that errors parameter, the errors of the message. And then we have our button. This is just going to submit that form method.

  43. it's weird that it died again i don't know why it does that i wonder if i can put it in twitch one second i wonder if i can put it in twitch that it doesn't that we shouldn't like immediately cancel it like it should wait for it to be

  44. settings stream disconnection protect so i do have disconnect protection up

  45. That's weird. Oh well. Hey, AJ. Glad to have you here. Use PHP. Oh, is this guy from Laravel? Yeah, I am from Laravel. How's it going, Dominic? Use PHP somewhere in my last job. It's all right, but also very broken,

  46. 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 every time i've opened it it feels slow and i'm used to vs code i'm used to now mostly zed 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 stream yard instead of obs

  47. but I'm going to have to figure that out. 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 sticking around. So I'm going to show off the dashboard.

  48. 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 it's a 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 into the database as one of our users chirps

  49. and there we go that's that message that we just created i think that's good for the full thing there's there's not too much i'm going to give an extra actual adaption um for like the docs because we can't walk through everything

  50. so let's go ahead and in the docs we'll say

  51. now there now there are a lot of extra utility functions accessors and

  52. now there are a lot of extra utility functions and now there are a lot of extra utility functions additional state that you might need as well as an incredible amount of useful options within the form component that it's almost impossible to be

  53. to share with you on this video here. There's a few that I want to make note of. Everything from events. If it's canceled while it's in progress. On error. On finish. And then...

  54. 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.

  55. Overall, Inertia's Form Helper gives you that extra.

  56. 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 Laravel application, and it just makes it ever... Overall, Inertia's Form Helper just makes things that you do every single day within a Laravel application that much easier. And a lot cleaner, too.

  57. I think that's good for that one. Um, 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

  58. a full um i'll bring up the chat again for you all so i have 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 form submission it's more of like what the form component looks like rather than rather than building out forms within level i do have a video that i want to do

  59. next week and so I'll kind of mark this one as to edit so I do a video that I want to do next week about what's building with inertia actually looks like that I'm going to do for Laravel and that one would be more of like a

  60. hey, here's how you might use actions, Wayfinder, use Echo, like what a full stack application actually looks like. So that's the one that, this one was more just like a 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 all you have to do.

  61. um it's fine to go long this is a muscle you train yeah thank you i appreciate it um use peach perform my last job oh yeah yes i think the next one once i figure out like i 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

  62. videos 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

  63. um I think of specific intros pull this up use prefer and rely on PHP I think

  64. um like the goal with this one is more just to show like how has 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

  65. as I go. So I'm going to pull up my thing there. I want to share this with the iPad.

  66. all right so So now we shouldn't have the iPad be able to be here, which is great.

  67. Raise this up a little bit. Bam. Perfect. Okay. So the goal downsides, like I can't, you guys won't be able to see your own chat because I can pull it up on the iPad itself. but yeah the goal with this video i think is to walk through say a php and just share my own

  68. 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 within the php ecosystem as a team member team member of laravel so let's let's record an intro

  69. so So PHP is here to stay.

  70. It's 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, but what does that mean for us as developers, especially if you have been working within PHP for any amount of time?

  71. 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. So why don't we dive in?

  72. 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 JetBrains, one of the... If you don't know what the survey is, it's a survey put on by JetBrains, the creator of things like PHPStorm.

  73. What else? What are the other ones called? What are the JetBrains IDs? do do weapon storm pie charm

  74. the state of php survey is put on by the jet brains company and the company behind PHPStorm, WebStorm, PyCharm, and other IDEs across a variety of spectrum of languages.

  75. And in this survey, the Developer Ecosystem Survey 2025... Nope. And in this survey, from the Developer Ecosystem Survey of 2025, they got what they... And in this survey, from the Developer Ecosystem Survey 2025, they walked through the findings of what the current state of PHP actually looks like for developers who actually use PHP,

  76. or who 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,

  77. so it's not in any way, shape, or form indicative of what the PHP ecosystem actually looks like because it is only collecting responses from 1,720 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 a thousand seven hundred twenty people does php actually look like across the

  78. world 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.

  79. So how many full years of professional coding experience do you have? When I took this survey, I answered six to 10 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 for six years, but that wasn't what I was paid to do. So it's a little iffy.

  80. 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. But the part that I am interested in, specifically people who are taking PHP surveys like this, obviously they probably have worked with PHP.

  81. You're probably not taking this JetBrains 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. How many people work in your project team?

  82. More than half of PHP developers work in small teams of two 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 Sharp, Java, whatever that might look like, typically you're working in larger teams. for this 56% working in small teams of two to seven and 12% working independently I think that

  83. 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 with less, even if that's less finance, less financial backing for those teams.

  84. language adoption and usage the majority of php developers do not plan to migrate to other languages in the next year for those who do go and python are the most attractive alternatives now Now, Go does not surprise me.

  85. 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 AI-driven 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 near future, even Node.js. I think Python is still the best way to go for something like machine learning AI LLMs, if you will.

  86. I am curious without even seeing the graph below this fold how and where maybe 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 C sharp

  87. I would imagine Kotlin and I would imagine, I don't know, Swift. Okay, TypeScript and Kotlin. So no Swift. TypeScript, I just imagine kind of falls inside with PHP. You're probably using something like TypeScript alongside everything else.

  88. 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 this with any, or do take this, I guess, with a grain of salt. Most other surveys that 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

  89. 58% say I'm not planning to adopt or migrate, I do think that speaks to maybe the stability within the PHP world. 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 built. PHP has areas where it shines, but there are also problems that are better solved with

  90. languages like dough 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 six months from 2% last 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 six months and 6%

  91. 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 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

  92. 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, 103 people out of 720, which is rather large sample size, if 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

  93. instance within Laravel. The more people that I see who are coming to learn about the language as beginners, I think is great. I started learning PHP in 8.1, maybe 8.0. I did not learn PHP 7, anything below 8. How long have you been using PHP? So this would mean I put from two years to less

  94. than four years. And you can see 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, 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. But the fact that

  95. So 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 head.

  96. A little bit frustrating still that I'm having internet issues, so I apologize everyone.

  97. Looks like we're back on YouTube. Yeah, for some reason... Hang on, no. For some reason, the camera keeps failing with the no signal thing.

  98. 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. I am dropping connection pretty consistently every 15 minutes or so, so I apologize to everyone. Mr. Manifon, it's quite interesting. There's no elixir on the list. That is interesting.

  99. I find it interesting that it's not, that there isn't Elixir or like Swift, I guess, would have been interesting for me to see. But I think we're back up again. Again. Sorry, everyone, that we keep hitting lines. I'm going to try to figure that out for the next stream. But it is frustrating. Let's go ahead and jump back into it.

  100. so which version of php do you regularly use again just trending up again php 8.x looks like 81 percent 2023 to 89 percent 2025 and php 7.x falling off so like for the most part it seems like that is a good trend because a lot of people it's it's better to be upgrading and get

  101. those security benefits but then also the benefits for having different language features as well just in the fact of loan from php 8.2 to 8.4 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 that now are possible which php 8.4 and 8.5 is going to be even even more php frameworks and cms's okay this is awesome

  102. to see 61 61 64 i i don't i wonder what this jump was in between 67 percent and 58 percent 2021 22 22 maybe just sample size of survey takers um i'm curious what that actually looks like but

  103. But regardless, the fact that it is going up between that 61, 61, 64% in 2025, wow. And here's one thing I want to make note of. Just because Laravel is going up, also WordPress is going up. Symfony is going up. Codeignior was the only one that slightly trended down. and everything else is either staying stagnant

  104. 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 numbers

just you here