I am wanting to write a script in PHP to process text files. I know of a few ways to accomplish this, except the one way I would like to do this. I want to be able to pass a file name, like a traditional command-line application.
For example:
php script.php textfile.txt
or
script.php textfile.txt
I assume it can be done, because you pass arguments to composer. I just can't find how to do it in the docs or Google.
Can someone point me in the right direction? Or point me to a language that supports this(maybe Python or Groovy, if PHP is not an option).