How to use PHP from the command-line?

PHP is mostly known to be used for writing web applications. But that is not the whole picture of PHP language.

You can use PHP to write command-line applications as well.

See also

Some useful libraries:

GitHub OctocatFound a typo? Something wrong with this content? Just fork and edit it.

Content of this work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license. Code snippets in examples are published under the CC0 1.0 Universal (CC0 1.0). Thanks to all the contributors.