DrupalCamp NJ 2017

Why not use what you already know? - shell scripting with PHP

Developing complex shell scripts in bash and similar CLIs is often tedious as the syntax is rather arcane, and short on useful data types and built-in functions. Why not use the language you know and love --- PHP! Writing such scripts in PHP is a very productive alternative: easier to debug and easier to maintain. We will discuss and demonstrate PHP CLI scripts, their interaction with the shell, I/O and error handling. After that we will discuss the Symfony Console (which is the basis of Drupal Console) and how it makes writing scripts even easier and more robust.

 

Audience Level: 
Beginner (just starting, know basic terminology, content creation)
Intermediate (install and configure modules/themes)
Track: 
Development
Version: 
N/A
Prerequisites: 

Familiarity with the *nix shell. (Should work also on MS-Windows if everything is properly configured.) Basic PHP experience.

Diamond Sponsor

Platinum Sponsors

Gold Sponsors

Silver Sponsors