PHP CLI: Create Command Line Interface Scripts with PHP
- Length: 62 pages
- Edition: 1st ed.
- Language: English
- Publisher: Apress
- Publication Date: 2016-10-07
- ISBN-10: 1484222377
- ISBN-13: 9781484222379
- Sales Rank: #4163336 (See Top 100 Books)
This compact, concise book shows you how to create PHP Command Line Interface (CLI) scripts, including SAPI and more. Learn to quickly create useful and effective Command Line software and scripts using the world’s most popular native 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 a full-stack service.
What you’ll learn
- What the PHP CLI SAPI is
- How to use it to run PHP scripts off-line
- How to deal with user input and console output
- How to work with helper libraries and software
- What the differences are between programming for the web and for the CLI
- and more
Who is this book for
This book is for experienced PHP programmers and web developers.
Table of Contents
Chapter 1: Introduction
Chapter 2: An Overview of CLI Programming in PHP
Chapter 3: Understanding and Using the CLI SAPI
Chapter 4: User-Facing Software
Chapter 5: PHP CLI Scripts and Your System
Chapter 6: Where to Now? (Or, Thanks and Feedback)
Appendix A: Compiling and Installing PHP, Extensions, and Libs
Appendix B: Sources of Help