thanks for this video and code in github. I like the pattern you use, well beyond just a single file script with a shebang at the top. I can see how this could be built out to become a very flexible cli app for things I'm working on. Also I see it uses PHP pretty much as standard so its clear what that is bringing to the app, without getting bogged down in libraries that handle command line options. Nice !
@@CodingWithPixelFix sound advice and if you want to learn the language, this is the way I did ther after look at something called laravel zero - cut down laravel for the tui / cli app. Mind blowing ! but for now, I will stick with the core libs as much as I can
Thanks for watching. One of the things you can use a PHP console application for in your project is to run and manage your database migrations. That is if you are using a custom framework or no framework at all. Established frameworks like Laravel already have such a console application called "artisan" and this tutorial shows how to create your own.
Want to know how to create a PHP framework from scratch? Checkout this video th-cam.com/video/86wsJgyf7G4/w-d-xo.html
thanks for this video and code in github. I like the pattern you use, well beyond just a single file script with a shebang at the top. I can see how this could be built out to become a very flexible cli app for things I'm working on. Also I see it uses PHP pretty much as standard so its clear what that is bringing to the app, without getting bogged down in libraries that handle command line options. Nice !
You're welcome and thanks for watching, I am glad you like it. I do try and use libraries as little as possible.
@@CodingWithPixelFix sound advice and if you want to learn the language, this is the way
I did ther after look at something called laravel zero - cut down laravel for the tui / cli app. Mind blowing ! but for now, I will stick with the core libs as much as I can
I would appreciate more explanation on what is "PHP Console App" all about and where it can used.
Thanks for watching. One of the things you can use a PHP console application for in your project is to run and manage your database migrations. That is if you are using a custom framework or no framework at all.
Established frameworks like Laravel already have such a console application called "artisan" and this tutorial shows how to create your own.