Git submodule foreach with selected or limiting submodule list
You can except submodules you do not want to process. It means that foreach will still enter the submodule but will skip the command execution:
git submodule foreach '[ "$path" = "library/PhpExcel" ] || git status'