I found some more links that may be useful if you looking for documentation or tutorials:
Learn PHP in 1 week, then also BASH.
PHP gives you extreme ease of use, than any other scripting language.
Although I come from core systems network protocol development background (that is C/C++), still recently after learning PHP, for all user-space app. extensions + other automations, I use PHP. I code bash scripts within PHP. So that is my suggestion.