PHP CLI Create Command Line Interface Scripts with PHP

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,...

Descripción completa

Detalles Bibliográficos
Autor principal: Aley, Rob. author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Berkeley, CA : Apress 2016.
Edición:1st ed. 2016.
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009630335106719
Tabla de Contenidos:
  • 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