Introduction
PHP is well known for its popularity with web applications and CMSs, but what many people don't know is that PHP is also a ...
For further actions, you may consider blocking this person and/or reporting abuse
Following this on Termux on my phone & can't get Composer to work.
So here's an autoloader for anyone who needs to do this without composer:
(Include this file into the minicli file.)
PHP as a general purpose tool? I'm intrigued.
Well, it isn't useful for building native graphical applications, for instance. Also it has some problems to manage serial port (I use Arduino boards a lot). So...about this aspect Php is far behind Python, I think
That's precisely why the post uses the therm CLI, because it's for the command line only: scripts. Surely, PHP can't solve all problems, but it is a very low barrier language that many people are already familiar with. I said all these things in the article's introduction by the way
Excellent article. Thank you!
Great tutorial Erika, it's really very helpful for my daily working. I just wanna mention that I've worked on Windows 10 and xampp, so, if you get those too, for running on a console, yo need, for example: #!C:\xampp\php\php.exe.
BTW, vim is my least favorite editor, hahahahaha!!
Nice, but what is the output of this in real life, is there is a demo or something to try?
Thanks
Well, you can do a lot with this, if you use to use Symfony or Laravel, for sure, at some point you die use the cli to generate new controller, entities/models, services, database and the tables... Your imagination is the limit
Hi! The idea is that we build together a little framework for creating PHP applications in the command line, we'll refactor a few things in the next posts of this series, but the way it is now it has two example commands that you can use as base to build something else. It's very versatile. You can find this code here: erikaheidi/minicli:0.1.0.
Following along using Termux on my phone, while camping. 😊
that's AMAZING!
I always found PHP appealing for CLI, your article demonstrate it! Very cool 😉 Looking forward the next parts!
Thank you! :-)
Great
This is really awesome.
Thank you!
Great article. Thanks!
Great tutorial! Thank you for it.
p-e-r-f-e-c-t
Thank you 🤗
Bravo! Words so sweet, bringing a tear of pure joy down my cheek. BRAVO