PHP CLI [electronic resource] : Create Command Line Interface Scripts with PHP /
Aley, Rob.author.
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. With PHP CLI readers will: Learn about the PHP CLI SAPI Discover 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.
Contents at a Glance; Contents; About the Author; About the Technical Reviewer; Acknowledgments; Chapter 1: Introduction; "Use PHP? We're Not Building a Website, You Know!"; Further Reading; Are You New to PHP?; Further Reading; Reader Prerequisites; An Important Note About Operating Systems; About the Sample Code; External Resources; Further Reading; PHP 7; Chapter 2: An Overview of CLI Programming in PHP; Getting Away from the Web; PHP Without a Web Server; PHP Versions: What's Yours?; A Few Good Reasons Not to Do It in PHP; High-Performance Requirements
Don't (Necessarily) Re-invent the WheelKeeping the Source Closed; Thinking About Security; Further Reading; CLI-Specific Code Frameworks; Further Reading; Chapter 3: Understanding and Using the CLI SAPI; What's Different About the CLI SAPI?; Further Reading; CLI SAPI Installation; PHP Command-Line Options; Further Reading; Command-Line Arguments for Your Script; The Many Ways to Call PHP Scripts; From a File; From a String; From STDIN; As a Self-executing Script: Unix/Linux; Further Reading; As a Self-executing Script: Windows; Windows php-win.exe; Quitting Your Script; Further Reading
PHP REPLsChapter 4: User-Facing Software; Command-Line Interface Basics; Advanced Command-Line Input; Further Reading; Using STDIN, STOUT, and STDERR; CLI Helper Libraries; Chapter 5: PHP CLI Scripts and Your System; Starting External Processes from PHP, or "Shelling Out"; Further Reading; Further Reading; File Status and Realpath Caches; APC and Other Code Caches; Chapter 6: Where to Now? (Or, Thanks and Feedback); Giving Feedback and Getting Help and Support; Appendix A: Compiling and Installing PHP, Extensions, and Libs
Compiling and Installing PHP The process for compiling and installing PHP itself varies depending on the operating system you are deploying to. The following sections deal with the main OSes that PHP is available on.Windows; OS X; Linux/Unix; Compiling and Installing (Extra) Core Extensions; Installing Multiple Versions of PHP; Further Reading; PEAR and PECL; Composer; Symfony2 Bundles; Appendix B: Sources of Help; The PHP Manual; Official Mailing Lists; Stack Overflow; Other Books; Newsgroups; PHP Subredit; PHP on GitHub; PHP News Sites; Index
Includes index.
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. With PHP CLI readers will: Learn about the PHP CLI SAPI Discover 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.
Computer programming.
Programming languages (Electronic computers).
Web Development.
Programming Techniques.
Programming Languages, Compilers, Interpreters.