This concise book shows you how to create PHP command line interface (CLI) scripts, including user interaction and scripts to automate and assist your workflow. Learn to quickly create useful and effective command line software and scripts using the world's most popular web scripting language, PHP. Enjoy the benefits of writing CLI scripts in PHP: save money by redeploying existing skills, not learning new ones. Save time and increase productivity by using a high-level language. Make money by providing your clients with a full-stack service.
What You'll Learn
Learn about the PHP CLI SAPI
Find out how to use it to run PHP scripts off-line
Easily deal with user input and console output
Work with helper libraries and software
Find out the differences between programming for the web and for the CLI
Who This Book Is For
Experienced PHP programmers and web developers.
Rob Aley has been programming commercially and academically in a variety of programming languages, with over 10 years of PHP experience, since graduating in Computer Science from the University of Leeds in 1999. Having had a varied career working in industries from coffee to condoms, as well as doing freelance software development, Rob is now a "Database Programmer" at the University of Oxford working in healthcare related data analysis. He uses PHP almost exclusively now, out of choice. When he's not working or writing books, he spends time with his wife, three young children, and most importantly his cat.